Skip to content
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

Open
Star9daisy opened this issue May 15, 2024 · 3 comments
Open

plot_model does not work for all models in keras.applications #19717

Star9daisy opened this issue May 15, 2024 · 3 comments
Assignees
Labels

Comments

@Star9daisy
Copy link

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

@sachinprasadhs
Copy link
Collaborator

I'm able to plot the model, you can set the dpi argument in plot_model to smaller number to fit into the frame.

Attached Gist here for reference https://colab.sandbox.google.com/gist/sachinprasadhs/79afe3e25aec48fa350700955ead74f0/transfer_learning.ipynb

@Star9daisy
Copy link
Author

Here's another related issue:
tensorflow/tensorflow#65331 (comment)

@grasskin
Copy link
Member

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.

@grasskin grasskin removed the keras-team-review-pending Pending review by a Keras team member. label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants