[ Error ]/CT Skin Segmentation

AttributeError: module 'tensorflow' has no attribute 'get_default_graph'

황찌옹 2022. 8. 4. 02:09

 

이것도 tensorflow가 2.0 버전이 되면서 나타나는 증상!

 

keras -> tensorflow.keras로 바꾸기

from keras.models import Sequential, Model이나 import keras와 같은 것들을 모두
from tensorflow.keras.models ~~로 바꿔주면 된다!

 

image