상세 컨텐츠

본문 제목

module 'tensorflow' has no attribute 'GraphDef'

AI

by cepiloth 2021. 3. 30. 15:23

본문

728x90
반응형

발생된 에러

예외가 발생했습니다. AttributeError
module 'tensorflow' has no attribute 'GraphDef'
  File "G:\office\enterprise_sdk_int_g_ui\develnote\deeplearning\cnn-colorize-master (1)\cnn-colorize-master\colorize.py", line 54, in main
    graph_def = tf.GraphDef()
  File "G:\office\enterprise_sdk_int_g_ui\develnote\deeplearning\cnn-colorize-master (1)\cnn-colorize-master\colorize.py", line 75, in <module>
    main()

 

원인은 tensorflow-gpu 가 설치되지 않아서 발생한다. pip 명령으로 tensorflow-gpu 를 설치한다.

 

또는 tensorflow 버전에 따라서 다를 수 있습니다.

 

tf.compat.v1.GraphDef()   # -> instead of tf.GraphDef()
tf.compat.v2.io.gfile.GFile()   # -> instead of tf.gfile.GFile()

tinyclouds.org/colorize/

 

Automatic Colorization

January 2016 Automatic Colorization Have you seen Reddit's /r/colorization sub? People use photoshop to add color to old black and white photos. This is a good problem to automate because perfect training data is easy to get: any color image can be desatur

tinyclouds.org

 

728x90
반응형

'AI' 카테고리의 다른 글

Colorization  (0) 2021.04.02
VGG-16-Gray  (0) 2021.03.30
Logistic Regression - 회귀  (0) 2016.01.26
의사결정트리(Decision Tree)  (0) 2016.01.26
Nearest Neighbor Classification  (0) 2016.01.19

관련글 더보기

댓글 영역