-
Notifications
You must be signed in to change notification settings - Fork 69
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
[BUG] graph_view() does not work #79
Comments
On it |
This seems to be a compatability error between visualkeras and keras >= 3.0.0. The Tensorflow version you are using requires a version of keras greater than 3.0.0, and the Python version you are using cannot use a Tensorflow version lower than 2.16, meaning you'd have to downgrade Python to get graph_view working. I'll try and find the change that broke compatability past keras 3.0.0 for this function. For now, if possible, I'd recommend downgrading Tensorflow to a point where you can run Keras 2 without running into dependency conflicts so you can use graph_view. This will probably mean you'll have to downgrade your Python version too. I'll try to get this fixed today. Thank you for using visualkeras. |
@Soontosh, thank you for the prompt response. I will wait for your fix and would it be available on PyPI or from this repo? And for the suggestion, I should make new virtual environment that is able to run Keras 2, by downgrading any related modules including TensorFlow and Python, right? Other question, why there are more examples using |
@dudung Yes, I'd recommend you make a new venv that is able to run Keras version 2.12 by downgrading Python to version 3.11 and Tensorflow to version 2.12. 2.12 is the highest version currently supported. But there is no longer any need to do so. I am merging a fix to your issue (along with some other issues) right now. Thanks for helping me catch this, To answer your question: The library was originally made with just Once I merge the changes, run the following command to get the updates: pip install git+https://github.com/paulgavrikov/visualkeras |
Just made the merge. Let me know if you run into any issues. I'll add this plus a fix for #77 to Pypi once I'm done testing the changes. |
installationI am able to install it with
but only after uninstall version 0.1.3 first. resultI am expecting that the first layer is a layer with 6 neurons, and the boxes on the left and right are not required, right? It should be layers with (6 - 8 - 4 - 2) neurons. The expected result is as follow. code
The |
You have to set |
Yes, I meant This seems to be a new bug. Could you open up a new issue for this bug? With information about your environment and venv packages? |
I will do that. Thank you for the direction. |
Done in #82. |
Bug has been squashed as part of the latest release. Access it at: https://pypi.org/project/visualkeras/0.1.4/ Closing this issue now. Thank you so much for your help! |
Describe the bug
The use of
visualkeras.graph_view(model)
does not produce the graph.Minimal Code To Reproduce
Expected behavior
It should show the model in graph mode.
Screenshots
Environment:
Additional context
It works with
visualkeras.layered_view(model)
but not withvisualkeras.graph_view(model)
.Example in #67 have not worked anymore.
The text was updated successfully, but these errors were encountered: