paulgavrikov / visualkeras

Visualkeras is a Python package to help visualize Keras (either standalone or included in TensorFlow) neural network architectures. It allows easy styling to fit most needs. This module supports layered style architecture generation which is great for CNNs (Convolutional Neural Networks), and a graph style architecture, which works great for most models including plain feed-forward networks.
MIT License
582 stars 67 forks source link

AttributeError: 'str' object has no attribute 'layers' #21

Closed prothej227 closed 2 years ago

prothej227 commented 2 years ago

\Python\Python37\lib\site-packages\visualkeras\layered.py", line 65, in layered_view for index, layer in enumerate(model.layers): AttributeError: 'str' object has no attribute 'layers'

paulgavrikov commented 2 years ago

You need to pass a valid keras model to visualkeras, not a string.