Netron

raw JSON →
9.0.5 verified Fri May 01 auth: no python

Netron is a visualizer for neural network, deep learning, and machine learning models. It supports a wide range of model formats (ONNX, TensorFlow, PyTorch, Keras, CoreML, etc.) and runs in the browser or as a local server. Current version is 9.0.5, with irregular releases.

pip install netron
error ModuleNotFoundError: No module named 'netron'
cause netron is not installed.
fix
Run 'pip install netron'.
error OSError: [Errno 98] Address already in use
cause Default port 8080 is already occupied.
fix
Specify a different port: netron.start('model.onnx', port=5000).
gotcha Netron does not support all model formats; some exotic or custom layers may fail to visualize.
fix Check the official list of supported formats; convert model to ONNX or supported format.
gotcha The `start()` function blocks execution; it runs a Flask server until manually stopped.
fix Use `netron.start('model.onnx', host='0.0.0.0', port=8080)` and run in a separate thread if needed.

Launches a local web server to visualize a model file.

import netron
# Start Netron to view a specific model file
netron.start('model.onnx')