Netron can run as both an Electron app or a Python web server.
To start the Electron app, install Node.js and run:
git clone https://github.com/lutzroeder/netron.git
cd netron
npm install
npx electron .
To debug the Electron app, open the folder in Visual Studio Code and press F5. To attach the debugger to a render process select the Debug tab and Electron View before launching.
To build and launch the Python server run:
git clone https://github.com/lutzroeder/netron.git
cd netron
python publish/python.py build start --browse
To validate changes run:
npm run -s lint
npm run -s test <format> # e.g. npm run -s test onnx