Model Explorer ONNX Adapter
ONNX Adapter for google-ai-edge/model-explorer
🌟 Use it on HuggingFace Spaces
https://huggingface.co/spaces/justinchuby/model-explorer
Installation
pip install --upgrade model-explorer-onnx
Usage
model-explorer --extensions=model_explorer_onnx
# Or as a shortcut
onnxvis
# Supply model path
onnxvis model.onnx
Read more on the Model Explorer User Guide.
Notes on representation
Graph input/output/initializers in ONNX are values (edges), not nodes. A node is displayed here for visualization. Graph inputs that are initialized by initializers are displayed as InitializedInput, and are displayed closer to nodes that use them.
Nodes that implicitly capture values for their sub-graphs (Loop, Scan, etc.) will have an additional (Capture) node as input that connects all of the implicitly captured values with itself. As a special case, the subgraphs of an If node are flattened. The outputs of the two branches of an If node will be gathered by a (Phi) node to show connectivity. This modification in the graph ensures that all value dependencies are shown in the visualization.
Color Themes
Get node color themes here
Visualizing PyTorch ONNX exporter (dynamo=True) accuracy results
import torch
from torch.onnx.verification import verify_onnx_program
from model_explorer_onnx.torch_utils import save_node_data_from_verification_info
# Export the and save model
onnx_program = torch.onnx.export(model, args, dynamo=True)
onnx_program.save("model.onnx")
verification_infos = verify_onnx_program(onnx_program, compare_intermediates=True)
# Produce node data for Model Explorer for visualization
save_node_data_from_verification_info(
verification_infos, onnx_program.model, model_name="model"
)
You can then use Model Explorer to visualize the results by loading the generated node data files:
onnxvis model.onnx --node_data_paths=model_max_abs_diff.json,model_max_rel_diff.json
Screenshots
Metadata
Release files for model-explorer-onnx 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| model_explorer_onnx-0.4.2.tar.gz | 18.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| model_explorer_onnx-0.4.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.8 kB
Release files / model_explorer_onnx-0.4.2.tar.gz
| Download URL | model_explorer_onnx-0.4.2.tar.gz |
|---|---|
| Size | 18.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eb40d4df8637a81211a1b12f2cac1a8c26d8b9737304b8173efc91e167e8ec19
|
|
BLAKE2b-256 checksum How to use checksums |
3f401a138d3653ae1050ab979b6022b56aa32da6e6b6150a5c758413dba28150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency logRelease files / model_explorer_onnx-0.4.2-py3-none-any.whl
| Download URL | model_explorer_onnx-0.4.2-py3-none-any.whl |
|---|---|
| Size | 15.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb2da48ca8da37e024a3793bf31c3e08842f871f9ef60e70a24cb7c557dbcdf5
|
|
BLAKE2b-256 checksum How to use checksums |
df0b66fecc462be89bc5e014b2f44935b0f958c2aa02ba66fe0ce1dc32289e6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 19, 2026.
Transparency log