keras model visualization problems

Today, the following error when running the program with jupyter notebook:

Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.
Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work.

Under win10 environment, tf2.0 version

Solution:

Find information and found that a call should not be installed graphviz things, so do not hesitate to download it!
Download
If this address is too slow, I have uploaded,

After installation, you also need to install pydot-ng

pip install pydot-ng

problem solved!

PS: After you install graphviz need to install the files in the bin directory folder path into the system environment variables you may also need to restart the computer

Released seven original articles · won praise 0 · Views 200

Guess you like

Origin blog.csdn.net/weixin_43939952/article/details/104089182