博主Ubuntu系統,利用plot_model輸出圖網絡時報錯:
Failed to import pydot. You must install pydot and graphviz for `pydotprint`
解決方法:
#安裝包
conda install pydotplus
conda install graphviz
import pydotplus
from keras.utils import plot_model
keras.utils.vis_utils.pydot = pydotplus
plot_model(your_model_name, to_file='model.png', show_shapes=True)