chu## plot_model报错
报错信息:
Traceback (most recent call last):
File "resent12_decay.py", line 87, in <module>
plot_model(model, to_file="resnet.png", show_shapes=True)
File "/home/ubuntu/.conda/envs/keras/lib/python3.7/site-packages/tensorflow/python/keras/utils/vis_utils.py", line 341, in plot_model
dot.write(to_file, format=extension)
File "/home/ubuntu/.conda/envs/keras/lib/python3.7/site-packages/pydot.py", line 1817, in write
s = self.create(prog, format, encoding=encoding)
File "/home/ubuntu/.conda/envs/keras/lib/python3.7/site-packages/pydot.py", line 1945, in create
assert process.returncode == 0, process.returncode
AssertionError: 1
解决办法安装:
注意第一个和第二个不是一个东西
pip install graphviz
sudo apt-get install graphviz
pip install pydot