explaingit

lutzroeder/netron

📈 Trending32,905JavaScriptAudience · developerComplexity · 2/5ActiveLicenseSetup · easy

TLDR

Interactive viewer for machine learning model files that visualizes layers, connections, and operation details across 20+ formats like ONNX, TensorFlow, PyTorch, and Core ML.

Mindmap

mindmap
  root((Netron))
    What it does
      Visualizes model graphs
      Shows layer connections
      Displays tensor shapes
      Lists operation parameters
    Supported formats
      ONNX
      TensorFlow variants
      PyTorch exports
      Core ML and Keras
      Caffe and scikit-learn
    How to use
      Open model file
      Click nodes for details
      Inspect architecture
      Verify exports
    Deployment options
      Desktop app
      Browser viewer
      Web component
      npm package

Things people build with this

USE CASE 1

Inspect a machine learning model's architecture and layer structure without manually parsing binary files.

USE CASE 2

Verify that a model export from one framework to another (e.g., PyTorch to ONNX) preserved all expected layers.

USE CASE 3

Debug mismatches or unexpected behavior by examining tensor shapes and operation parameters in a visual graph.

USE CASE 4

Understand an unfamiliar model file by exploring its computation graph interactively in the browser or desktop app.

Tech stack

JavaScriptElectronNode.jsWeb Components

Getting it running

Difficulty · easy Time to first run · 5min
MIT license allows free use for any purpose, including commercial, as long as you include the original copyright notice.

In plain English

Netron is a viewer for machine learning and deep learning model files. It reads model files in a wide range of formats and renders an interactive graph that shows the model layers, connections between them, and the properties of each operation such as input and output tensor shapes, data types, and operator parameters. The formats supported include ONNX, TensorFlow SavedModel and frozen graph, TensorFlow Lite, PyTorch exports, Core ML, Keras, Caffe, DarkNet, scikit-learn serialized models, and many others. This breadth makes it a useful inspection tool regardless of the framework a model was built in. Netron works in multiple environments. It is available as an Electron-based desktop application for macOS, Windows, and Linux. It also runs in the browser where users can drag and drop a model file directly, and it can be embedded as a web component in other applications. Using it is straightforward: open a model file, and Netron renders the computation graph. Clicking on any node shows its attribute details in a side panel. For large models this provides a practical way to understand the architecture without reading serialized binary formats by hand. When to use it: Netron is most useful for machine learning engineers and researchers who want to inspect a model structure quickly, verifying that an export preserved the expected layers, debugging mismatches between frameworks, or simply understanding an unfamiliar model file received from someone else. It is particularly handy when working with ONNX models during cross-framework conversions. The project is written in JavaScript and distributed as an npm package as well as standalone desktop installers for all major platforms.

Copy-paste prompts

Prompt 1
I have an ONNX model file. How do I use Netron to visualize its layers and check the tensor shapes at each step?
Prompt 2
Show me how to embed Netron as a web component in my own application so users can upload and inspect their models.
Prompt 3
I converted a PyTorch model to ONNX but something seems wrong. How can I use Netron to compare the layer structure and debug the export?
Prompt 4
What are all the model formats Netron supports, and how do I open each type in the desktop app or browser?
Prompt 5
I want to inspect a TensorFlow SavedModel file. Walk me through opening it in Netron and navigating the computation graph.
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.