
Netron is a viewer for [ONNX](http://onnx.ai) neural network models.

## Install
**macOS**
[**Download**](https://github.com/lutzroeder/Netron/releases/latest) the `.dmg` file or with [Homebrew](https://caskroom.github.io) run `brew cask install netron`
**Linux**
[**Download**](https://github.com/lutzroeder/Netron/releases/latest) the `.AppImage` or `.deb` file. The `.AppImage` needs to be made [executable](http://discourse.appimage.org/t/how-to-make-an-appimage-executable/80) after download.
**Windows**
[**Download**](https://github.com/lutzroeder/Netron/releases/latest) the `.exe` file.
## Download Models
Below are a few model files you can download and open:
**ONNX Models**
* [Inception v1](https://github.com/onnx/models/blob/master/inception_v1)
* [Inception v2](https://github.com/onnx/models/blob/master/inception_v2)
* [ResNet-50](https://github.com/onnx/models/blob/master/resnet50)
* [ShuffleNet](https://github.com/onnx/models/blob/master/shufflenet)
* [SqueezeNet](https://github.com/onnx/models/blob/master/squeezenet)
* [VGG-19](https://github.com/onnx/models/blob/master/vgg19)
* [BVLC AlexNet](https://github.com/onnx/models/blob/master/bvlc_alexnet)
**TensorFlow Lite Models**
* [Smart Reply 1.0 ](https://storage.googleapis.com/download.tensorflow.org/models/tflite/smartreply_1.0_2017_11_01.zip)
* [Mobilenet 1.0 224 Float](https://storage.googleapis.com/download.tensorflow.org/models/tflite/mobilenet_v1_1.0_224_float_2017_11_08.zip)
* [Inception v3 2015](https://storage.googleapis.com/download.tensorflow.org/models/tflite/inception_v3_2015_2017_11_10.zip)
* [Inception v3 2016 Slim](https://storage.googleapis.com/download.tensorflow.org/models/tflite/inception_v3_slim_2016_android_2017_11_10.zip)
## Install Python Model Server
To run Netron in a web browser, install the Python web server using pip:
```
pip install netron
```
Launch the model server:
```
netron my_model.onnx
```
To serve a model from Python code:
```
import netron
netron.serve_file('my_model.onnx')
```