ZhangGe6 / onnx-modifier

A tool to modify ONNX models in a visualization fashion, based on Netron and Flask.
MIT License
1.28k stars 157 forks source link

Cannot modify the inputs #65

Closed ghost closed 1 year ago

ghost commented 1 year ago

While it is perfectly possible to create new nodes, outputs and other things, I have so far not seen any possibility to add inputs. This does not allow to make certain modifications, i.e. it's not possible to set weights of a layer as an input. Does it still have to be implemented, or did I miss something in the menu?

ZhangGe6 commented 1 year ago

@piotrwierzba-tplx Thanks for the feedback. Adding input is not supported currently. BTW, what does "set weights of a layer as an input" mean?

ghost commented 1 year ago

Hi there, thanks for clarifying that. I wanted to do a cross-correlation (aka convolution) of two inputs (it can theoretically be done by setting weights of a convolution layer to one image, and setting the other one as an input). It however is not the crux of this issue, so we can leave it at that.

ZhangGe6 commented 1 year ago

@piotrwierzba-tplx Sorry for the late response. Adding input may not be supported in the near future. Could you please try to use the Python API to do it?