Skip to main content

This package help you visualize the ONNX model graph. Client-Server based architecture lets you share the model, using just a url instead of sharing the entire model.

Project description

ONNX Visualizer

This package help you visualize the ONNX model graph. Client-Server based architecture lets you share the model, using just a url instead of sharing the entire model.

Why not netron?

Netron is a viewer for neural network, deep learning and machine learning models. Netron also supports more formats than just ONNX.

But the problem with netron, you can't visualize the models in remote / virtual machines environments, where most of the time GUI is not given. So the only way is you need to download and run the netron locally or use the web app, where model parsing happens in the web browser, which is super slow.

This package parses the onnx model and serves only required data, using the server-client model, which is highly bandwidth effecient.

Usage

Install

pip install onnx-vis

Visualizing

Run the following command to visualize the model

python3 -m onnx_vis <path to the onnx file> -p <port to run the server>

Example:

 python3 -m onnx_vis resnet18.onnx -p 63325

you can access the visualization on http://127.0.0.1:63325/static/index.html

TODO

  • Make Visualization graph of ONNX Nodes
  • Add node attributes like kernels shape, bias shape to node metadata
  • Add Sidebar to get more detailed information about nodes
  • Add search and span to node feature

Contribution & Issues

Contirbution of any kind PR's, Discussions etc. is very much appreciated :). If you face any issues feel free to open a issue.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

onnx_vis-0.0.1-py3.10.egg (540.6 kB view details)

Uploaded Egg

onnx_vis-0.0.1-py3.9.egg (540.6 kB view details)

Uploaded Egg

File details

Details for the file onnx_vis-0.0.1-py3.10.egg.

File metadata

  • Download URL: onnx_vis-0.0.1-py3.10.egg
  • Upload date:
  • Size: 540.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for onnx_vis-0.0.1-py3.10.egg
Algorithm Hash digest
SHA256 b9776faa14d29c88ced9aa71b9d18b29c4a45b5b785c442e8499d1b9a205d300
MD5 2e2fcfd827867ce6760b40c8fcf8bc6d
BLAKE2b-256 50df0c3fa01dff20856e1605c60e6a61a32f55c0a2c4d4cfbda010dd08cdd7db

See more details on using hashes here.

File details

Details for the file onnx_vis-0.0.1-py3.9.egg.

File metadata

  • Download URL: onnx_vis-0.0.1-py3.9.egg
  • Upload date:
  • Size: 540.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for onnx_vis-0.0.1-py3.9.egg
Algorithm Hash digest
SHA256 cb2ad744eaaa5ef23a2652debffc1b7459d80792411f86002907ba2bc1c72035
MD5 819f51bc09091770acaaf27752199007
BLAKE2b-256 972dbf734d34055f91ddb1abda9eb5d3e16c8038385c30e333f88fc192adf16b

See more details on using hashes here.

Supported by

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