Zhang Ge
Zhang Ge
你好,添加含Initializer的节点已在计划中,但主要针对一些含有简单参数的节点,比如`reshape` (节点`shape`值以Tensor的形式保存在图的initializer中)。 请问修改像是Conv节点的weight, bias这样复杂的参数,是碰到了实际的需求么?
reshape节点的维度信息,在ONNX模型中是以Tensor的形式保存在图的initializer中的。 增加包含initializer的节点,**在目前版本是暂不支持的**,不过这项功能已经加入了[to do list](https://github.com/ZhangGe6/onnx-modifier/blob/master/docs/todo_list.md),会争取尽快完善。谢谢反馈!
你好,这个问题最近我在用的时候也发现了,正尝试修复,谢谢详细的反馈和提供备选解决方案!
@ganleiboy 你好,我更新了一个版本来尝试解决这个问题,如果方便的话,请使用新版做修改试试,如果仍然存在问题,欢迎继续讨论~
@alimagic 你好,上面的这张图片不能正常显示,可否重新上传一下?
将`ConstantOfShape`后面`Gather`节点的输入名,改为`ConstantOfShape`前面的`Concat`节点的输出名,然后点击`ConstantOfShape`节点,将其删除即可。具体操作方法可参见readme的rename the name of node inputs/outputs [link](https://github.com/ZhangGe6/onnx-modifier#rename-the-name-of-node-inputsoutputs)和delete/recover-nodes [link](https://github.com/ZhangGe6/onnx-modifier#deleterecover-nodes)。
@MAhaitao999 哈喽你好,修改Initializer的功能(终于)开始支持了,详见[readme](https://github.com/ZhangGe6/onnx-modifier#edit-model-initializers),支持编辑一些简单的参数(比如`Reshape`节点的`shape`值),也支持编辑一些复杂的参数(比如`Conv`节点的`weight`和`bias`)。欢迎使用,如果出现问题,欢迎继续交流~
@qq1628qq ,哈喽你好,修改reshape节点的维度信息(终于)开始支持了,详见[readme](https://github.com/ZhangGe6/onnx-modifier#edit-model-initializers)。欢迎使用,如果出现问题,欢迎继续交流~
@piotrwierzba-tplx Thanks for reporting. It IS a problem that the current version cannot handle well. I am thinking about how to fix it. Could you try to add some ONNX...
@KONGYOUYL Hi, Sorry for the late response. Can you explain the failure with more info? It is suggested to share the error log in the console. Thanks.