Registry / ai-ml / netron

netron

JSON →
library9.1.1pypypi✓ verified 84d ago

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
INSTALL
IMPORT
SIG · NETRON
N
netron
ai-mlpythonv9.1.1
Install
1.7s avg
Import
209ms
Disk
42MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v9.1.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.220s · 44.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.198s · 45MB
42MB installed
● package 42MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

netron
import netron
Correct import for the library.

Launches a local web server to visualize a model file.

import netron # Start Netron to view a specific model file netron.start('model.onnx')
netron --version
Debug
Known issues
gotchaNetron 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.
affects: all
gotchaThe `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.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'netron'
netron is not installed.
fix
Run 'pip install netron'.
OSError: [Errno 98] Address already in use
Default port 8080 is already occupied.
fix
Specify a different port: netron.start('model.onnx', port=5000).
Upgrade
Version history
9.1.1latest on PyPI · released Jun 5, 2026
Audit
Dependencies
flaskoptionalRequired for web server functionality.
Agent activity
4 hits · last 30 days
node
4
Resources
netron — pip install netron · libregistry