ann-visualizer icon indicating copy to clipboard operation
ann-visualizer copied to clipboard

ANN Visualizer: Layer not supported for visualizing

Open alieskici opened this issue 5 years ago • 2 comments

I've tried tons of code to run this visualizer. I determined that this tool works only for 'Sequental' models. You should write this into info.

Details

  • Not working if layer sequence start with an 'input' tensor.
inp = Input((3,))
L1 = Dense(6)(inp)

THROWN► ^ ANN Visualizer: Layer not supported for visualizing

Hope you will improve this tool. Because this is beautiful and can't find any other tool to draw as neuron by neuron.

alieskici avatar Oct 14 '20 14:10 alieskici

I got the same error, and I checked there's not much of an issue with the code. Keras actually removed it's support for all other backends. See here

To use this package you can either downgrade your Keras and Tensorflow installation or change the imports of Keras layers in the code.

kushaangupta avatar Oct 16 '20 16:10 kushaangupta

@tudorog seems to be inactive. Until then, if you want to visualize ANN with models created via tensorflow.keras install my modification of the code. This works for me.

After removing existing ann_visualizer installation, run the following:

pip install git+https://github.com/kushaangupta/ann-visualizer.git@feature/tensorflow-2-support

kushaangupta avatar Oct 16 '20 17:10 kushaangupta