update readme

1123
ZhangGe6 4 years ago
parent 4ac2912042
commit 2d35c81e37

2
.gitignore vendored

@ -1,4 +1,6 @@
__pycache__/
gym/
*ppt
*pptx
*.onnx

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 ZhangGe
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 KiB

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

@ -6,7 +6,7 @@ English | [简体中文](readme_zh-CN.md)
To edit an ONNX model, One common way is to visualize the model graph, and edit it using ONNX Python API. This works fine. However, we have to code to edit, then visualize to check. The two processes may iterate for many times, which is time-consuming. :wave:
What if we have a tool, which allow us **edit and preview the editing effect in a totally visualization fashion**?
What if we have a tool, which allow us to **edit and preview the editing effect in a totally visualization fashion**?
Then `onnx-modifier` comes. With it, we can focus on editing the model graph in the visualization pannel. All the editing information will be summarized and processed by Python ONNX automatically at last. Then our time can be saved! :rocket:
@ -50,7 +50,8 @@ Click `Open Model...` to upload the ONNX model to edit. The model will be parsed
<td ><center><img src="./docs/top_left_buttons.png"> <b>top left buttons (Graph-level-operations)</b></center></td>
<td ><center><img src="./docs/node_prop_buttos.png" ><b>sidebar buttons (Node-level-operations)</b></center></td>
</tr>
<table>
</table>
Graph-level-operation elements are placed on the left-top of the page. Currently, there are three buttons: `Preview``Reset` and `Download`. They can do:

@ -2,11 +2,11 @@
简体中文 | [English](readme.md)
`ONNX `(Open Neural Network Exchange) 是一种针对机器学习所设计的开放式的文件格式经常作为不同框架模型转化的中间文件。有时我们拿到ONNX文件想将它进行一些修改比如
`ONNX`(Open Neural Network Exchange) 是一种针对机器学习所设计的开放式的文件格式经常作为不同框架模型转化的中间文件。有时我们拿到ONNX文件想将它进行一些修改比如
- **删除部分节点。** 比如,`ONNX`文件中一些前后处理的算子节点。
- **增加节点**
- **修改节点属性。**比如修改某一节点的输入输出名称。
- **增加节点**
- **修改节点属性。** 比如修改某一节点的输入输出名称。
目前常用的方法是,先可视化模型图结构,然后基于`ONNX`的Python API编写脚本对模型图结构进行编辑。但这可能需要我们在可视化-脚本-可视化-...之间反复横跳。而且在一张庞大的图上搜集想要修改的节点,也比较花时间。
@ -41,7 +41,7 @@
<td ><center><img src="./docs/top_left_buttons.png"> <b>图结构层级操作<br>(界面左上角)</b></center></td>
<td ><center><img src="./docs/node_prop_buttos.png" ><b>节点层级操作(节点属性栏)</b></center></td>
</tr>
<table>
</table>

Loading…
Cancel
Save