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