lutzroeder / netron

Visualizer for neural network, deep learning and machine learning models
https://netron.app
MIT License
27.85k stars 2.77k forks source link

Model editing support #275

Open linkerzhang opened 5 years ago

linkerzhang commented 5 years ago

Is there any plan to have Netron support model editing please? This will be a very useful feature

mrgloom commented 5 years ago

Is it possible to edit names of input and output layers of onnx model?

linkerzhang commented 5 years ago

There's one more scenario happened frequently is, do some manual constant folding optimization. Say, it's known that a sub-graph can be constant-folded, and user would like to directly remove the sub-graph and replace it with an initializer.

lutzroeder commented 5 years ago

@linkerzhang could this be implemented as an ONNX Optimizer?

vfbsilva commented 5 years ago

@lutzroeder Editing would be great. I really would like to use it for training with yolo and darknet. In fact I found your tool googleing exactly for a way to edit the files with a gui

minrui-hust commented 3 years ago

does netron support editing now?

schegde commented 2 years ago

Editing feature in Netron itself would be very cool!! I love the Netron UI for ONNX model inspection and all information is presented in one integrated fashion!

chausner-audeering commented 2 years ago

Even just basic editing support would be amazing:

davids91 commented 2 years ago

Since models can be edited through the onnx python API e.g here, it would be a possible way of resolving this to introduce a way to run python script, and then the community could add their own scripts into the editor.

vjsrinivas commented 2 years ago

This could be helpful for anyone looking for something similar: https://github.com/ZhangGe6/onnx-modifier It builds on top of Netron.

weimingzha0 commented 2 years ago

Interested in this feature too and like to contribute. It involves 3 areas:

  1. side-bar attribute view need to be editable
  2. data changed in side-bar be accessiable by model
  3. serialization (protobuf, json, flatbuffer, xml...)

The current protoc.js and protobuf.js only have decoder/reader. Should we add encoder/writer by ourself? Or should we use existing project like https://github.com/protobufjs/protobuf.js/ ?

lutzroeder commented 2 years ago

Should we add encoder/writer by ourself?

Yes, extend the existing libraries instead of adding dependencies.

weimingzha0 commented 1 year ago

I have an initial implementation for protobuf encoding (https://github.com/lutzroeder/netron/pull/995)

Zireael07 commented 1 year ago

Bump! Any news?

KyotoSunshine commented 9 months ago

bump

jinguojie-alibaba commented 6 months ago

This work is still active and could be help

https://github.com/ZhangGe6/onnx-modifier