'Failed to import pydot. You must `pip install pydot` and install graphviz
tf.keras.utils.plot_model(model,to_file='model.png', show_shapes=True,show_layer_names=False)
모델을 시각화 하는 방법 중에 plot_model()을 이용하는 방법이 있다.
이런식으로 결과가 나와서 파일로 저장할 수 있다.
실행시키는 과정에서 pydot과 graphviz를 install 해줬음에도 불구하고
'Failed to import pydot. You must `pip install pydot` and install graphviz ...
이라는 에러메세지가 계속해서 발생했다.
찾아보니,
pydotplus 도 같이 install 해주면 된다고해 깔아주니 작동 했다.
In addition to pydot and graphviz install pydotplus. This should solve your problem.
pip install pydot
pip install pydotplus
pip install graphviz
아래 순서대로 install 하라고 한다.
- pydot
- pydotplus
- graphviz
github.com/XifengGuo/CapsNet-Keras/issues/69
ImportError: Failed to import `pydot`. Please install `pydot`. For example with `pip install pydot`. · Issue #69 · XifengGuo/C
from keras.utils import plot_model plot_model(model) Showing this error. ImportError: Failed to import pydot. Please install pydot. For example with pip install pydot. I installed -- (base) C:\User...
github.com
'AI > Others' 카테고리의 다른 글
[OpenCV] 2개의 이미지를 하나의 윈도우로 보여주는 방법 (0) | 2021.07.02 |
---|---|
Detectron2 로 Mask R-CNN 학습하기 (0) | 2021.06.29 |
AttributeError: 'tqdm_notebook' object has no attribute 'disp' (0) | 2021.04.26 |
Multi GPU로 학습하기 - 리눅스 / Pytorch (0) | 2021.04.12 |
RTX 3090 Ubuntu 18.04 CUDA, cuDNN (딥러닝 환경 구축) (0) | 2021.03.22 |
댓글
이 글 공유하기
다른 글
-
[OpenCV] 2개의 이미지를 하나의 윈도우로 보여주는 방법
[OpenCV] 2개의 이미지를 하나의 윈도우로 보여주는 방법
2021.07.02 -
Detectron2 로 Mask R-CNN 학습하기
Detectron2 로 Mask R-CNN 학습하기
2021.06.29 -
AttributeError: 'tqdm_notebook' object has no attribute 'disp'
AttributeError: 'tqdm_notebook' object has no attribute 'disp'
2021.04.26 -
Multi GPU로 학습하기 - 리눅스 / Pytorch
Multi GPU로 학습하기 - 리눅스 / Pytorch
2021.04.12