diff --git a/.gitignore b/.gitignore index b4dd87e..4ff1a99 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ __pycache__/ gym/ +*ppt +*pptx *.onnx \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..bbb2512 --- /dev/null +++ b/LICENSE @@ -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. \ No newline at end of file diff --git a/docs/onnx_modifier_delete.png b/docs/onnx_modifier_delete.png index f238536..ae26982 100644 Binary files a/docs/onnx_modifier_delete.png and b/docs/onnx_modifier_delete.png differ diff --git a/docs/onnx_modifier_logo.png b/docs/onnx_modifier_logo.png new file mode 100644 index 0000000..73e8c90 Binary files /dev/null and b/docs/onnx_modifier_logo.png differ diff --git a/readme.md b/readme.md index 4151cac..826dc04 100644 --- a/readme.md +++ b/readme.md @@ -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
top left buttons (Graph-level-operations)
sidebar buttons (Node-level-operations)
- +
+ 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: diff --git a/readme_zh-CN.md b/readme_zh-CN.md index 140df4f..0d30e53 100644 --- a/readme_zh-CN.md +++ b/readme_zh-CN.md @@ -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 @@
图结构层级操作
(界面左上角)
节点层级操作(节点属性栏)
- +