Closed pniaz20 closed 4 months ago
Yes I am also having the same issue.
First remove currently installed visualkeras library:
pip uninstall visualkeras
or
!pip uninstall visualkeras
for Jupyter Notebook and Colab,
Again install visualkeras library using below command:
pip install git+https://github.com/paulgavrikov/visualkeras
or
!pip install git+https://github.com/paulgavrikov/visualkeras
for Jupyter Notebook and Colab.
I hope it can solve your problem.
I've the same issue, looks like the Conv-1D layer gives rise to it.
@amitsingha tried your trick, but it doesn't work for me.
- First remove currently installed visualkeras library:
pip uninstall visualkeras
or!pip uninstall visualkeras
for Jupyter Notebook and Colab,- Again install visualkeras library using below command:
pip install git+https://github.com/paulgavrikov/visualkeras
or!pip install git+https://github.com/paulgavrikov/visualkeras
for Jupyter Notebook and Colab.I hope it can solve your problem.
Tried your suggestion still have the same error
1.pip uninstall visualkeras 2.pip install git+https://github.com/paulgavrikov/visualkeras and it works!
1.pip uninstall visualkeras 2.pip install git+https://github.com/paulgavrikov/visualkeras and it works!
It does work, however, it seems to visualize the number of filters on the y-axis. I.e., it appears as if the layer size (first dimension) would expand during convolution instead of shrinking.
Stale issue message
Describe the bug This package does not appear to support CNNs that work on 1D images. The
layered_view
function does not work with 1D images (times series), which use Conv1D, MaxPooling1D, etc. layers. This happens because thelayered.py
file throws an error at line 100, which in turn happens because it does not understand that, e.g., a Conv1D layer would havelen(layer.output_shape)==3
, which would result in the wrong code being executed. Line 100 has a statement such asmax(z)
which is faulty becausez
is a scalar and cannot be iterated over in themax()
function.Minimal Code To Reproduce
Expected behavior A picture should be shown just like any other CNN, but perhaps with only x instead of y, or just simply a normal cube as in a dense layer.
Screenshots
Environment (please complete the following information):