-
Notifications
You must be signed in to change notification settings - Fork 19.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plot_model
does not work for all models in keras.applications
#19717
Comments
I'm able to plot the model, you can set the Attached Gist here for reference https://colab.sandbox.google.com/gist/sachinprasadhs/79afe3e25aec48fa350700955ead74f0/transfer_learning.ipynb |
Here's another related issue: |
Hi @Star9daisy, can you confirm we can still reproduce the error messages after setting dpi? It sounds like the graphs do not fit and are overflowing. |
Hi @grasskin, thanks for your attention. I have tried setting the dpi to 100, 50 (200 by default). But the errors are the same. So I checked the error messages and found that there are some syntax error, for example:
After tracing back to the # pydot
# https://github.com/pydot/pydot/blob/4c1d710bd99efa8ceeb21defc21a1781fb43912e/src/pydot/core.py#L1588
self.obj_dict["name"] = quote_if_necessary("cluster_" + graph_name)
# pydot_ng
# https://github.com/pydot/pydot-ng/blob/16f39800b6f5dc28d291a4d7763bbac04b9efe72/pydot_ng/__init__.py#L1632
self.obj_dict['name'] = 'cluster_' + graph_name
# pydotplus
# https://github.com/carlos-jenkins/pydotplus/blob/e06552ea3989bfb998ef6920a07d6c966ff9b01b/lib/pydotplus/graphviz.py#L1765
self.obj_dict['name'] = 'cluster_' + graph_name The latter two packages do not quote the name of subgraph, which causes the error. Considering that Also, I have tested the following cases, 'cause I highly doubt that the error is due to a bug of
The colab lines for the first three columns are as follows:
You can see that using The existing errors are here:
Here are already closed issues related to the error:
However, I could still reproduce these errors on my local environment. So I think the errors shown in the Colab by calling |
Hi developers, I follow the tutorial of transfer learning here. After that, I use
keras.utils.plot_model
to show its structure. However, I find that it doesn't work for all provided models.Here's a colab notebook I create to show each case and the error message: https://colab.research.google.com/drive/1nTYEHGSXWixq6Bx_ubtgP12NOdXdVWzN?usp=sharing
The text was updated successfully, but these errors were encountered: