xwcoder / netron

Visualizer for neural network, deep learning, and machine learning models

Home Page:https://netron.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Netron

The original document is here.

Project Introduction

netron-node.js

You can use this Node.js tool to parse model and serialize the parsing result to JSON. Then you can use the serialized JSON for visualization in the browser.

Usage

node source/node.js -d ./input/models -o ./dist/
  • -d: The directory that contains the model files. This tool will search the specified directory and subdirectories recursively.
  • -o: The output directory.

The outpu JSON file is in gzip format.

View

You can start a web server to serve the resources in the source directory. Then load the index.html with the url param to specify the JSON file that is in gzip format.

Example:

cd source && python -m http.server

Open the url http://localhost:8000/?url=/model.onnx.json.gz

Release branch

The release branch will follow the latest tag of upstream.

About

Visualizer for neural network, deep learning, and machine learning models

https://netron.app

License:MIT License


Languages

Language:JavaScript 96.5%Language:Python 1.9%Language:HTML 0.8%Language:Shell 0.7%Language:CSS 0.1%