Skip to main content

Keras models as ASCII diagrams

Project description

Print ASCII diagrams of your Keras models to visualize the layers and their shapes:

   InputLayer (None, 50, 300)
      Reshape (None, 1, 50, 300)
Convolution2D (None, 250, 48, 1)
         Relu (None, 250, 48, 1)
 MaxPooling2D (None, 250, 1, 1)
      Flatten (None, 250)
      Dropout (None, 250)
        Dense (None, 7)
      Softmax (None, 7)

To install

pip install keras_diagram

To use

from keras_diagram import ascii

model = Sequential()
model.add(...)

print ascii(model)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keras_diagram-1.0.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distributions

keras_diagram-1.0.0-py2.py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 2 Python 3

keras_diagram-1.0.0-py2-none-any.whl (5.8 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page