Skip to main content

plot model

Project description

plot_model

GitHub:https://github.com/Qinbf/plot_model.git

plot_model is a API for model visualization reference to tensorflow.keras.utils.plot_model.


Installation

Before installing plot_model, please install one of its engines: TensorFlow, Keras.

You may also consider installing the following :

pip install pydot
pip install pydot_ng
pip install graphviz
  • Finally,download and install graphviz to plot model graphs.

Then, you can install plot_model itself. There are two ways to install plot_model:

  • Install plot_model from PyPI (recommended):

Note: These installation steps assume that you are on a Linux or Mac environment. If you are on Windows, you will need to remove sudo to run the commands below.

sudo pip install plot_model

If you are using a virtualenv, you may want to avoid using sudo:

pip install plot_model
  • Alternatively: install plot_model from the GitHub source:

First, clone plot_model using git:

git clone https://github.com/Qinbf/plot_model.git

Then, cd to the plot_model folder and run the install command:

cd plot_model
sudo python setup.py install

Getting started

API is similar to tensorflow.keras.utils.plot_model

from plot_model import plot_model
plot_model(model)

default parameters:

plot_model(model, to_file='model.png', show_shapes=True, show_layer_names=False, rankdir='TB', expand_nested=False, style=0, color=True, dpi=96)

color: whether to display color. Default True.

style: 0 new style. 1 original style. Default 0.


Examples

ResNet

Inception

ResNeXt

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

plot_model-0.20.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

plot_model-0.20-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file plot_model-0.20.tar.gz.

File metadata

  • Download URL: plot_model-0.20.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for plot_model-0.20.tar.gz
Algorithm Hash digest
SHA256 a26cdd488f720db2f6305ed113b8fa311df698056ae028fa1c6f367bdb359f0c
MD5 2b0505f06713a62dd7e32ebc05a47457
BLAKE2b-256 d0b5c2331a48f8d15cfedc44034ceda6d8a2872ed992f9ac37e0729bcd97f040

See more details on using hashes here.

File details

Details for the file plot_model-0.20-py3-none-any.whl.

File metadata

  • Download URL: plot_model-0.20-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.26.0 CPython/3.6.5

File hashes

Hashes for plot_model-0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 d712df4dbdd1970fe98ae7f21dfd129aebcae0fcca71ce99637a204c44f44b13
MD5 851ced21c809d04da62a36b0a7a0b671
BLAKE2b-256 62b80967e30391a7c07002c5e7bca868763dcfd26808dcb13aba052a737aa01d

See more details on using hashes here.

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