From de8160a319937718f5cd8d2e3bf55745fb6708d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:38:02 +0000 Subject: [PATCH 01/25] =?UTF-8?q?add=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cv/ReID/ReID-strong-baseline/tmp.md" | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 "Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" new file mode 100644 index 0000000..a871b34 --- /dev/null +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -0,0 +1,19 @@ +代码交付件checklist参考: + ``` + Nested_UNet #模型名称命名的文件夹 + ├── env.sh #环境变量 + ├── gen_dataset_info.py #生成数据集info文件 + ├── LICENSE #选用Apache LICENCE + ├── nested_unet.diff #以补丁形式修改开源模型代码 + ├── nested_unet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False,通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 + ├── nested_unet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 + ├── nested_unet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,数据集路径要通过输入参数传递给脚本而不是直接写在脚本里 + ├── README.md #模型离线推理说明README + ├── requirements.txt #模型离线推理用到的所有依赖库与版本,不要写入实际没有依赖的库,pytorch版本优先1.5.0,特殊情况选用1.8.0,其它库具体版本是离线推理时使用的具体版本 + └── test + ├── eval_acc_perf.sh + ├── parse.py + ├── perf_g.sh + ├── pth2om.sh + └── README.md + ``` \ No newline at end of file -- Gitee From df54e41536e2dca3be5bfccd7f21a768aa291adb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:38:38 +0000 Subject: [PATCH 02/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index a871b34..2a0d28e 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -1,5 +1,5 @@ 代码交付件checklist参考: - ``` +``` Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 ├── gen_dataset_info.py #生成数据集info文件 @@ -16,4 +16,4 @@ ├── perf_g.sh ├── pth2om.sh └── README.md - ``` \ No newline at end of file + ``` \ No newline at end of file -- Gitee From 2ee4a899f41a13e668c3104bed1f50d95d6a83b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:38:50 +0000 Subject: [PATCH 03/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index 2a0d28e..d51c9d7 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -5,7 +5,8 @@ ├── gen_dataset_info.py #生成数据集info文件 ├── LICENSE #选用Apache LICENCE ├── nested_unet.diff #以补丁形式修改开源模型代码 - ├── nested_unet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False,通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 + ├── nested_unet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False, +通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 ├── nested_unet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 ├── nested_unet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,数据集路径要通过输入参数传递给脚本而不是直接写在脚本里 ├── README.md #模型离线推理说明README -- Gitee From cc26657197a1ea8648030c174afe5e0eba838c2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:39:11 +0000 Subject: [PATCH 04/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index d51c9d7..18606cb 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -6,7 +6,7 @@ ├── LICENSE #选用Apache LICENCE ├── nested_unet.diff #以补丁形式修改开源模型代码 ├── nested_unet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False, -通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 + 通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 ├── nested_unet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 ├── nested_unet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,数据集路径要通过输入参数传递给脚本而不是直接写在脚本里 ├── README.md #模型离线推理说明README -- Gitee From 02764a73749f3d591babcbc7f7c97eea7bfe9fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:39:37 +0000 Subject: [PATCH 05/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index 18606cb..f5f93b8 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -1,5 +1,5 @@ 代码交付件checklist参考: -``` + Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 ├── gen_dataset_info.py #生成数据集info文件 @@ -17,4 +17,3 @@ ├── perf_g.sh ├── pth2om.sh └── README.md - ``` \ No newline at end of file -- Gitee From 3d65faf257100f3cd1d4e120079967d64eb0a28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:39:53 +0000 Subject: [PATCH 06/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index f5f93b8..b4baa4c 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -1,5 +1,4 @@ 代码交付件checklist参考: - Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 ├── gen_dataset_info.py #生成数据集info文件 @@ -16,4 +15,4 @@ ├── parse.py ├── perf_g.sh ├── pth2om.sh - └── README.md + └── README.md \ No newline at end of file -- Gitee From 7de11ff0260f2636307fb31b9e16f346f2b0a207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:40:22 +0000 Subject: [PATCH 07/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index b4baa4c..f5f93b8 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -1,4 +1,5 @@ 代码交付件checklist参考: + Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 ├── gen_dataset_info.py #生成数据集info文件 @@ -15,4 +16,4 @@ ├── parse.py ├── perf_g.sh ├── pth2om.sh - └── README.md \ No newline at end of file + └── README.md -- Gitee From 21318b08d69db4d053aaea13f741adeb4dd4f6fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:41:19 +0000 Subject: [PATCH 08/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index f5f93b8..380f13a 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -1,13 +1,15 @@ 代码交付件checklist参考: - +``` Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 ├── gen_dataset_info.py #生成数据集info文件 ├── LICENSE #选用Apache LICENCE ├── nested_unet.diff #以补丁形式修改开源模型代码 ├── nested_unet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False, - 通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 - ├── nested_unet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 + 通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码, + 如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 + ├── nested_unet_postprocess.py #模型后处理脚本,尽量不import开源模型代码, + 但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 ├── nested_unet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,数据集路径要通过输入参数传递给脚本而不是直接写在脚本里 ├── README.md #模型离线推理说明README ├── requirements.txt #模型离线推理用到的所有依赖库与版本,不要写入实际没有依赖的库,pytorch版本优先1.5.0,特殊情况选用1.8.0,其它库具体版本是离线推理时使用的具体版本 @@ -17,3 +19,4 @@ ├── perf_g.sh ├── pth2om.sh └── README.md + ``` \ No newline at end of file -- Gitee From c71305799cd8aa9b8125b848562846c0911b366f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:43:32 +0000 Subject: [PATCH 09/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index 380f13a..e0f8f08 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -1,15 +1,12 @@ 代码交付件checklist参考: -``` + ``` Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 ├── gen_dataset_info.py #生成数据集info文件 ├── LICENSE #选用Apache LICENCE ├── nested_unet.diff #以补丁形式修改开源模型代码 - ├── nested_unet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False, - 通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码, - 如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 - ├── nested_unet_postprocess.py #模型后处理脚本,尽量不import开源模型代码, - 但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 + ├── nested_unet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False + ├── nested_unet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 ├── nested_unet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,数据集路径要通过输入参数传递给脚本而不是直接写在脚本里 ├── README.md #模型离线推理说明README ├── requirements.txt #模型离线推理用到的所有依赖库与版本,不要写入实际没有依赖的库,pytorch版本优先1.5.0,特殊情况选用1.8.0,其它库具体版本是离线推理时使用的具体版本 @@ -19,4 +16,5 @@ ├── perf_g.sh ├── pth2om.sh └── README.md - ``` \ No newline at end of file + ``` +- 通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 \ No newline at end of file -- Gitee From a9f0b687f0e5b9f764629aba67c23228f19ca7cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:43:46 +0000 Subject: [PATCH 10/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index e0f8f08..b67f0de 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -1,5 +1,5 @@ 代码交付件checklist参考: - ``` + ``` Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 ├── gen_dataset_info.py #生成数据集info文件 @@ -16,5 +16,5 @@ ├── perf_g.sh ├── pth2om.sh └── README.md - ``` + ``` - 通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 \ No newline at end of file -- Gitee From d7dfdc28f095dc5ce4d4ead2ac25c11b44771604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:44:51 +0000 Subject: [PATCH 11/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index b67f0de..f3d90e5 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -17,4 +17,9 @@ ├── pth2om.sh └── README.md ``` -- 通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 \ No newline at end of file +>![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/raw/master/public_sys-resources/icon-note.gif) +**说明:** +> 通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 +> 如上导出的onnx模型使用netron查看其输入节点image的shape是(-1,3,224,224),-1代表onnx模型是动态batch的,当用tensorrt在t4上测onnx的性能时可以指定任意batch的输入(batch,3,224,224),dynamic_axes是动态batch参数,'image': {0: '-1'}表示输入image的第一维是-1即batch维为-1表示动态。 +> 当然像少数模型如shufflenetv1即使设置dynamic_axes实际上导出的onnx也是固定batch的,转换为om时指定的batch size要和onnx的固定batch一样才不会报错 +> 导出onnx出现如下错误Exporting the operator eye to ONNX opset version 11 is not supported,可以参考[issue](https://github.com/pytorch/pytorch/pull/41357)进行修改 \ No newline at end of file -- Gitee From 8a4fa416ac3274df2f8257f5fa4b44bbad6832ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:48:52 +0000 Subject: [PATCH 12/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cv/ReID/ReID-strong-baseline/tmp.md" | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index f3d90e5..5ca7453 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -1,13 +1,13 @@ -代码交付件checklist参考: +代码交付件checklist,以Nested_UNet模型为例: ``` Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 ├── gen_dataset_info.py #生成数据集info文件 ├── LICENSE #选用Apache LICENCE - ├── nested_unet.diff #以补丁形式修改开源模型代码 - ├── nested_unet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False - ├── nested_unet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 - ├── nested_unet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,数据集路径要通过输入参数传递给脚本而不是直接写在脚本里 + ├── Nested_UNet.diff #以补丁形式修改开源模型代码 + ├── Nested_UNet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False + ├── Nested_UNet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 + ├── Nested_UNet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,数据集路径要通过输入参数传递给脚本而不是直接写在脚本里 ├── README.md #模型离线推理说明README ├── requirements.txt #模型离线推理用到的所有依赖库与版本,不要写入实际没有依赖的库,pytorch版本优先1.5.0,特殊情况选用1.8.0,其它库具体版本是离线推理时使用的具体版本 └── test @@ -19,7 +19,5 @@ ``` >![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/raw/master/public_sys-resources/icon-note.gif) **说明:** -> 通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 -> 如上导出的onnx模型使用netron查看其输入节点image的shape是(-1,3,224,224),-1代表onnx模型是动态batch的,当用tensorrt在t4上测onnx的性能时可以指定任意batch的输入(batch,3,224,224),dynamic_axes是动态batch参数,'image': {0: '-1'}表示输入image的第一维是-1即batch维为-1表示动态。 -> 当然像少数模型如shufflenetv1即使设置dynamic_axes实际上导出的onnx也是固定batch的,转换为om时指定的batch size要和onnx的固定batch一样才不会报错 -> 导出onnx出现如下错误Exporting the operator eye to ONNX opset version 11 is not supported,可以参考[issue](https://github.com/pytorch/pytorch/pull/41357)进行修改 \ No newline at end of file +> Nested_UNet_pth2onnx.py通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 +> \ No newline at end of file -- Gitee From 90553bc21e59b867ded22bb407a0662274b0f25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 08:49:09 +0000 Subject: [PATCH 13/25] =?UTF-8?q?update=20Ascend-PyTorch=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A8=E7=90=86=E6=8C=87=E5=AF=BC/official/cv/ReID/ReID-stro?= =?UTF-8?q?ng-baseline/tmp.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../official/cv/ReID/ReID-strong-baseline/tmp.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" index 5ca7453..a7f5461 100644 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" @@ -19,5 +19,5 @@ ``` >![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/raw/master/public_sys-resources/icon-note.gif) **说明:** -> Nested_UNet_pth2onnx.py通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 +> Nested_UNet_pth2onnx.py:通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 > \ No newline at end of file -- Gitee From f790beda9cbcfa24f75b8b78d2dadb4adb89e761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 10:07:30 +0000 Subject: [PATCH 14/25] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20As?= =?UTF-8?q?cend-PyTorch=E7=A6=BB=E7=BA=BF=E6=8E=A8=E7=90=86=E6=8C=87?= =?UTF-8?q?=E5=AF=BC/ONNX=E6=A8=A1=E5=9E=8B=E6=8E=A8=E7=90=86=E6=8C=87?= =?UTF-8?q?=E5=AF=BC/official/cv/ReID/ReID-strong-baseline/tmp.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cv/ReID/ReID-strong-baseline/tmp.md" | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 "Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" diff --git "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" "b/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" deleted file mode 100644 index a7f5461..0000000 --- "a/Ascend-PyTorch\347\246\273\347\272\277\346\216\250\347\220\206\346\214\207\345\257\274/ONNX\346\250\241\345\236\213\346\216\250\347\220\206\346\214\207\345\257\274/official/cv/ReID/ReID-strong-baseline/tmp.md" +++ /dev/null @@ -1,23 +0,0 @@ -代码交付件checklist,以Nested_UNet模型为例: - ``` - Nested_UNet #模型名称命名的文件夹 - ├── env.sh #环境变量 - ├── gen_dataset_info.py #生成数据集info文件 - ├── LICENSE #选用Apache LICENCE - ├── Nested_UNet.diff #以补丁形式修改开源模型代码 - ├── Nested_UNet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False - ├── Nested_UNet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 - ├── Nested_UNet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,数据集路径要通过输入参数传递给脚本而不是直接写在脚本里 - ├── README.md #模型离线推理说明README - ├── requirements.txt #模型离线推理用到的所有依赖库与版本,不要写入实际没有依赖的库,pytorch版本优先1.5.0,特殊情况选用1.8.0,其它库具体版本是离线推理时使用的具体版本 - └── test - ├── eval_acc_perf.sh - ├── parse.py - ├── perf_g.sh - ├── pth2om.sh - └── README.md - ``` ->![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/raw/master/public_sys-resources/icon-note.gif) -**说明:** -> Nested_UNet_pth2onnx.py:通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 -> \ No newline at end of file -- Gitee From 28da855b1538bc182978bda91e5186eb65d5a882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 10:29:46 +0000 Subject: [PATCH 15/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...73\347\272\277\346\216\250\347\220\206.md" | 38 ++++++++++++------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index 4958fbe..303d71c 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1357,35 +1357,45 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe 对于batch1与batch16,npu性能均高于T4性能1.2倍的模型,放在Benchmark目录下,1-1.2倍对应Official目录,低于1倍放在Research目录,目前都放在contrib/ACL_PyTorch/Research下即可 - 交付件参考 - 代码交付件checklist参考: + 代码交付件checklist,以Nested_UNet模型为例: ``` Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 - ├── gen_dataset_info.py #生成数据集info文件 - ├── LICENSE #选用Apache LICENCE - ├── nested_unet.diff #以补丁形式修改开源模型代码 - ├── nested_unet_pth2onnx.py #模型转换脚本,避免脚本下载权重加载模型时有pretrained参数的话设置为False,通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码,如果开源模型代码仓提供了pth2onnx脚本,则不需要提交该文件 - ├── nested_unet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果脚本直接复制了大量开源模型代码的函数而不是自己写的,为求精简,也可以import开源模型代码的类或函数 - ├── nested_unet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,数据集路径要通过输入参数传递给脚本而不是直接写在脚本里 + ├── Nested_UNet.patch #以补丁形式修改开源模型代码 + ├── Nested_UNet_pth2onnx.py #模型转换脚本,通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码 + ├── Nested_UNet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,输入的数据集路径要以参数形式传递给脚本而不是将其写在脚本里 + ├── gen_dataset_info.py #生成数据集info文件 + ├── Nested_UNet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果因此脚本直接复制了大量开源模型代码的评测函数,为求精简,也可以import开源模型代码的类或函数 + ├── requirements.txt #模型离线推理用到的所有且必须的依赖库,PyTorch优选开源1.5.0版本,特殊情况选用1.8.0,若对其它库具体版本没有特殊要求可不写版本 ├── README.md #模型离线推理说明README - ├── requirements.txt #模型离线推理用到的所有依赖库与版本,不要写入实际没有依赖的库,pytorch版本优先1.5.0,特殊情况选用1.8.0,其它库具体版本是离线推理时使用的具体版本 + ├── LICENSE #统一选用Apache LICENCE + ├── aipp_Nested_UNet_pth.config #aipp输入时的配置,图片类模型才需要提供该文件 + ├── modelzoo_level.txt #模型精度性能结果 └── test + ├── pth2om.sh ├── eval_acc_perf.sh ├── parse.py ├── perf_g.sh - ├── pth2om.sh - └── README.md + └── aipp_Nested_UNet_test.sh ``` + >![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/raw/master/public_sys-resources/icon-note.gif) +**说明:** + > Nested_UNet:严格以模型名称命名文件夹等 + > Xxx_pth2onnx.py:避免脚本从网上下载权重,加载模型时有pretrained之类的参数的话设置为False;pth2onnx脚本是要在cpu上运行的,因此涉及device相关的参数选为cpu,并且torch.load加载权重时参数map_location='cpu';如果模型支持导出动态batch的onnx,torch.onnx.export导出onnx文件时需要通过参数dynamic_axes设置动态batch,动态batch的onnx文件可以测试不同batch输入时的性能;脚本应尽量精简,少import不需要的库,少复制开源代码,少设置没有用到的模型参数,通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码;输入的权重文件应以参数形式传递给脚本而不是将权重路径写在脚本里;如果是开源模型代码仓提供的pth2onnx脚本,则不需要提交该文件 + > Xxx_preprocess.py:不要import没有用到的库,类或函数;图片预处理一般是缩放,裁剪,均值方差归一化,加pad,通道转换,调用cv2或Pillow接口参考开源模型代码预处理部分实现,不应将开源模型代码预处理相关的dataloader框架也复制过来,代码要精简;输入的数据集路径要以参数形式传递给脚本而不是将其写在脚本里 + > Xxx_postprocess.py:尽量不import开源模型代码,但是如果因此脚本直接复制了大量开源模型代码的评测函数,为求精简,也可以import开源模型代码的类或函数;不应将开源模型代码评测相关的框架代码也复制过来,只需要引用实际实现评测的函数,代码要精简 + > requirements.txt:模型离线推理用到的所有依赖库与版本,开源模型代码依赖的第三方库模型离线推理时可能并没有依赖,不要写入实际没有依赖的库,常用的是torch,torchvision,onnx,numpy,Pilow,opencv-python;PyTorch优选开源1.5.0版本,特殊情况可选用1.8.0但是需写明具体原因,tochvision版本与torch是配套的,onnx版本默认选用1.7.0,其它库具体版本是离线推理时使用的具体版本,如果对这些库的具体版本没有特殊要求,这些库版本可以不写 - 模型目录结构与pth2onnx基本操作: + pth2onnx与模型目录结构基本操作: ``` cd Nested_UNet git clone https://github.com/4uiiurz1/pytorch-nested-unet cd pytorch-nested-unet - patch -p1 < ../nested_unet.diff #以补丁形式修改模型代码,其中补丁是通过git diff > ./nested_unet.diff生成的 + patch -p1 < ../Nested_UNet.patch #以补丁形式修改模型代码,其中补丁是通过git diff > ./Nested_UNet.patch生成的 cd .. - python3.7 nested_unet_pth2onnx.py nested_unet.pth nested_unet.onnx #pth2onnx脚本sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet加载NestedUNet模型结构 - 注意目录结构,模型转换与前后处理脚本和开源模型代码尽量处于同一层,执行脚本命令时要依据目录结构确定路径 + python3.7 Nested_UNet_pth2onnx.py nested_unet.pth nested_unet.onnx + #pth2onnx脚本通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用NestedUNet模型结构 + #工作目录可以选为模型目录或者开源模型代码目录,模型转换与前后处理脚本和开源模型代码尽量处于同一层,执行脚本命令时要根据工作目录确定路径 ``` 性能不达标的模型非代码交付件: -- Gitee From cf0ab1c0fc251224c893d54f3490196280bc98da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 10:34:57 +0000 Subject: [PATCH 16/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...347\246\273\347\272\277\346\216\250\347\220\206.md" | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index 303d71c..8c19833 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1365,8 +1365,8 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe ├── Nested_UNet_pth2onnx.py #模型转换脚本,通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码 ├── Nested_UNet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,输入的数据集路径要以参数形式传递给脚本而不是将其写在脚本里 ├── gen_dataset_info.py #生成数据集info文件 - ├── Nested_UNet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,但是如果因此脚本直接复制了大量开源模型代码的评测函数,为求精简,也可以import开源模型代码的类或函数 - ├── requirements.txt #模型离线推理用到的所有且必须的依赖库,PyTorch优选开源1.5.0版本,特殊情况选用1.8.0,若对其它库具体版本没有特殊要求可不写版本 + ├── Nested_UNet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,若因此复制大量开源模型代码的评测函数,为求精简,也可import开源模型代码的函数 + ├── requirements.txt #模型离线推理用到的所有且必要的依赖库,PyTorch优选开源1.5.0版本,特殊情况选用1.8.0,若其它库具体版本无要求可不写版本 ├── README.md #模型离线推理说明README ├── LICENSE #统一选用Apache LICENCE ├── aipp_Nested_UNet_pth.config #aipp输入时的配置,图片类模型才需要提供该文件 @@ -1380,10 +1380,14 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe ``` >![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/raw/master/public_sys-resources/icon-note.gif) **说明:** - > Nested_UNet:严格以模型名称命名文件夹等 + > Nested_UNet:严格以模型名称命名文件夹等 + > > Xxx_pth2onnx.py:避免脚本从网上下载权重,加载模型时有pretrained之类的参数的话设置为False;pth2onnx脚本是要在cpu上运行的,因此涉及device相关的参数选为cpu,并且torch.load加载权重时参数map_location='cpu';如果模型支持导出动态batch的onnx,torch.onnx.export导出onnx文件时需要通过参数dynamic_axes设置动态batch,动态batch的onnx文件可以测试不同batch输入时的性能;脚本应尽量精简,少import不需要的库,少复制开源代码,少设置没有用到的模型参数,通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码;输入的权重文件应以参数形式传递给脚本而不是将权重路径写在脚本里;如果是开源模型代码仓提供的pth2onnx脚本,则不需要提交该文件 + > > Xxx_preprocess.py:不要import没有用到的库,类或函数;图片预处理一般是缩放,裁剪,均值方差归一化,加pad,通道转换,调用cv2或Pillow接口参考开源模型代码预处理部分实现,不应将开源模型代码预处理相关的dataloader框架也复制过来,代码要精简;输入的数据集路径要以参数形式传递给脚本而不是将其写在脚本里 + > > Xxx_postprocess.py:尽量不import开源模型代码,但是如果因此脚本直接复制了大量开源模型代码的评测函数,为求精简,也可以import开源模型代码的类或函数;不应将开源模型代码评测相关的框架代码也复制过来,只需要引用实际实现评测的函数,代码要精简 + > > requirements.txt:模型离线推理用到的所有依赖库与版本,开源模型代码依赖的第三方库模型离线推理时可能并没有依赖,不要写入实际没有依赖的库,常用的是torch,torchvision,onnx,numpy,Pilow,opencv-python;PyTorch优选开源1.5.0版本,特殊情况可选用1.8.0但是需写明具体原因,tochvision版本与torch是配套的,onnx版本默认选用1.7.0,其它库具体版本是离线推理时使用的具体版本,如果对这些库的具体版本没有特殊要求,这些库版本可以不写 pth2onnx与模型目录结构基本操作: -- Gitee From 703733f577acc83133803430ae65488bb6fe108a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 10:37:46 +0000 Subject: [PATCH 17/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...1\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index 8c19833..4d90529 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1362,10 +1362,10 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe Nested_UNet #模型名称命名的文件夹 ├── env.sh #环境变量 ├── Nested_UNet.patch #以补丁形式修改开源模型代码 - ├── Nested_UNet_pth2onnx.py #模型转换脚本,通常通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码 + ├── Nested_UNet_pth2onnx.py #模型转换脚本,通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用开源模型代码 ├── Nested_UNet_preprocess.py #模型前处理脚本,不要import该脚本没有用到的库,类或函数,输入的数据集路径要以参数形式传递给脚本而不是将其写在脚本里 ├── gen_dataset_info.py #生成数据集info文件 - ├── Nested_UNet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,若因此复制大量开源模型代码的评测函数,为求精简,也可import开源模型代码的函数 + ├── Nested_UNet_postprocess.py #模型后处理脚本,尽量不import开源模型代码,若因此复制大量开源代码的评测函数,为求精简,也可import开源模型代码的函数 ├── requirements.txt #模型离线推理用到的所有且必要的依赖库,PyTorch优选开源1.5.0版本,特殊情况选用1.8.0,若其它库具体版本无要求可不写版本 ├── README.md #模型离线推理说明README ├── LICENSE #统一选用Apache LICENCE -- Gitee From 048728503f93e2063b1bc498c114b62e7083444e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 11:02:47 +0000 Subject: [PATCH 18/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...73\347\272\277\346\216\250\347\220\206.md" | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index 4d90529..6fc2cc8 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1402,15 +1402,24 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe #工作目录可以选为模型目录或者开源模型代码目录,模型转换与前后处理脚本和开源模型代码尽量处于同一层,执行脚本命令时要根据工作目录确定路径 ``` - 性能不达标的模型非代码交付件: + 非代码交付件: ``` - icnet性能不达标初步优化 + [PyTorch离线推理-Xxx模型测试报告.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx) + [PyTorch离线推理-Xxx模型推理指导书.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC%E4%B9%A6.docx) + ``` + 算子问题导致精度不达标或性能不达标时的其它交付件: + ``` + 1.模型性能不达标初步优化压缩包 + PyTorch离线推理-ICNet性能不达标初步优化 + ├── PyTorch离线推理-ICNet模型测试报告.docx + ├── 优化前的profiling ├── icnet_bs16.om ├── icnet.onnx - ├── icnet模型性能不达标测试报告.docx - ├── 优化前的profiling └── 优化后的profiling - [xxx模型性能不达标测试报告.docx](https://gitee.com/pengyeqing/ascend-pytorch-crowdintelligence-doc/blob/master/docs/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-xxx%E6%A8%A1%E5%9E%8B%E6%80%A7%E8%83%BD%E4%B8%8D%E8%BE%BE%E6%A0%87%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx) + [PyTorch离线推理-Xxx模型测试报告.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx)模板中含性能不达标时的优化案例与测试项 + 2.在modelzoo提issue + [[高校贡献-PyTorch离线推理][问题求助] - ICNet模型transdata与双线性resize单算子耗时过长](https://gitee.com/ascend/modelzoo/issues/I3W5Y3?from=project-issue) + [issue模板](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-issue%E6%A8%A1%E6%9D%BF.md) ``` -- Gitee From 64f14df8c9d8fb0f13472d66d021fe6ac4e0b462 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 11:05:09 +0000 Subject: [PATCH 19/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index 6fc2cc8..06aa6f9 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1408,19 +1408,20 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe [PyTorch离线推理-Xxx模型推理指导书.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC%E4%B9%A6.docx) ``` 算子问题导致精度不达标或性能不达标时的其它交付件: - ``` 1.模型性能不达标初步优化压缩包 + ``` PyTorch离线推理-ICNet性能不达标初步优化 ├── PyTorch离线推理-ICNet模型测试报告.docx ├── 优化前的profiling ├── icnet_bs16.om ├── icnet.onnx └── 优化后的profiling + ``` [PyTorch离线推理-Xxx模型测试报告.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx)模板中含性能不达标时的优化案例与测试项 2.在modelzoo提issue [[高校贡献-PyTorch离线推理][问题求助] - ICNet模型transdata与双线性resize单算子耗时过长](https://gitee.com/ascend/modelzoo/issues/I3W5Y3?from=project-issue) [issue模板](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-issue%E6%A8%A1%E6%9D%BF.md) - ``` + 如果使用补丁文件修改了模型代码则将补丁打入模型代码,如果需要引用模型代码仓的类或函数通过sys.path.append(r"./pytorch-nested-unet")添加搜索路径 -- Gitee From 48303ae6f9b3301ecda1b409d371928699e0bc77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 11:06:25 +0000 Subject: [PATCH 20/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" | 1 - 1 file changed, 1 deletion(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index 06aa6f9..141f6e2 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1421,7 +1421,6 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe 2.在modelzoo提issue [[高校贡献-PyTorch离线推理][问题求助] - ICNet模型transdata与双线性resize单算子耗时过长](https://gitee.com/ascend/modelzoo/issues/I3W5Y3?from=project-issue) [issue模板](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-issue%E6%A8%A1%E6%9D%BF.md) - 如果使用补丁文件修改了模型代码则将补丁打入模型代码,如果需要引用模型代码仓的类或函数通过sys.path.append(r"./pytorch-nested-unet")添加搜索路径 -- Gitee From 9b9062a281e2e0afe4586a440e9ac812c203fd19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 11:11:05 +0000 Subject: [PATCH 21/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...47\246\273\347\272\277\346\216\250\347\220\206.md" | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index 141f6e2..f732b23 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1407,8 +1407,9 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe [PyTorch离线推理-Xxx模型测试报告.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx) [PyTorch离线推理-Xxx模型推理指导书.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC%E4%B9%A6.docx) ``` - 算子问题导致精度不达标或性能不达标时的其它交付件: - 1.模型性能不达标初步优化压缩包 + 算子问题导致精度不达标或性能不达标时的其它交付件: + 1.如果使用autotune模型性能可以达标,需要交付知识库 + 2.模型性能不达标初步优化压缩包 ``` PyTorch离线推理-ICNet性能不达标初步优化 ├── PyTorch离线推理-ICNet模型测试报告.docx @@ -1418,9 +1419,9 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe └── 优化后的profiling ``` [PyTorch离线推理-Xxx模型测试报告.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx)模板中含性能不达标时的优化案例与测试项 - 2.在modelzoo提issue - [[高校贡献-PyTorch离线推理][问题求助] - ICNet模型transdata与双线性resize单算子耗时过长](https://gitee.com/ascend/modelzoo/issues/I3W5Y3?from=project-issue) - [issue模板](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-issue%E6%A8%A1%E6%9D%BF.md) + 3.在modelzoo提issue + [[高校贡献-PyTorch离线推理][问题求助] - ICNet模型transdata与双线性resize单算子耗时过长](https://gitee.com/ascend/modelzoo/issues/I3W5Y3?from=project-issue) + [issue模板](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-issue%E6%A8%A1%E6%9D%BF.md) 如果使用补丁文件修改了模型代码则将补丁打入模型代码,如果需要引用模型代码仓的类或函数通过sys.path.append(r"./pytorch-nested-unet")添加搜索路径 -- Gitee From 5fd00dccce990db8bd06f1f0fa826889d4cdd464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 11:13:51 +0000 Subject: [PATCH 22/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...43-\347\246\273\347\272\277\346\216\250\347\220\206.md" | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index f732b23..102f0d5 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1403,10 +1403,9 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe ``` 非代码交付件: - ``` [PyTorch离线推理-Xxx模型测试报告.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx) - [PyTorch离线推理-Xxx模型推理指导书.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC%E4%B9%A6.docx) - ``` + [PyTorch离线推理-Xxx模型推理指导书.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC%E4%B9%A6.docx) + 算子问题导致精度不达标或性能不达标时的其它交付件: 1.如果使用autotune模型性能可以达标,需要交付知识库 2.模型性能不达标初步优化压缩包 @@ -1420,8 +1419,8 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe ``` [PyTorch离线推理-Xxx模型测试报告.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx)模板中含性能不达标时的优化案例与测试项 3.在modelzoo提issue - [[高校贡献-PyTorch离线推理][问题求助] - ICNet模型transdata与双线性resize单算子耗时过长](https://gitee.com/ascend/modelzoo/issues/I3W5Y3?from=project-issue) [issue模板](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-issue%E6%A8%A1%E6%9D%BF.md) + [issue示例](https://gitee.com/ascend/modelzoo/issues/I3W5Y3?from=project-issue) 如果使用补丁文件修改了模型代码则将补丁打入模型代码,如果需要引用模型代码仓的类或函数通过sys.path.append(r"./pytorch-nested-unet")添加搜索路径 -- Gitee From 5114469cfe95aa67a1e8870bbfa94c88aa094aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 11:17:43 +0000 Subject: [PATCH 23/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" | 1 + 1 file changed, 1 insertion(+) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index 102f0d5..a31583a 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1401,6 +1401,7 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe #pth2onnx脚本通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用NestedUNet模型结构 #工作目录可以选为模型目录或者开源模型代码目录,模型转换与前后处理脚本和开源模型代码尽量处于同一层,执行脚本命令时要根据工作目录确定路径 ``` + [代码交付件模板](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/tree/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/ONNX%E6%A8%A1%E5%9E%8B%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/official/cv/ReID/ReID-strong-baseline) 非代码交付件: [PyTorch离线推理-Xxx模型测试报告.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx) -- Gitee From 28b66e3feacfdb14cefa1008b703a3edadf2c585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 11:21:42 +0000 Subject: [PATCH 24/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...43-\347\246\273\347\272\277\346\216\250\347\220\206.md" | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index a31583a..7f9cc97 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1401,7 +1401,12 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe #pth2onnx脚本通过sys.path.append(r"./pytorch-nested-unet") from archs import NestedUNet的方式引用NestedUNet模型结构 #工作目录可以选为模型目录或者开源模型代码目录,模型转换与前后处理脚本和开源模型代码尽量处于同一层,执行脚本命令时要根据工作目录确定路径 ``` - [代码交付件模板](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/tree/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/ONNX%E6%A8%A1%E5%9E%8B%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/official/cv/ReID/ReID-strong-baseline) + [代码交付件模板](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/tree/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/ONNX%E6%A8%A1%E5%9E%8B%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/official/cv/ReID/ReID-strong-baseline) + + gitee网址:https://gitee.com/ascend/modelzoo/tree/master/contrib/ACL_PyTorch/Research + commit信息格式:[学校学院名称][高校贡献][PyTorch离线推理][模型名称]-PR内容摘要 + 模型命名风格为大驼峰,模型名含多个字符串时使用横杠或下划线连接,当上下文用横杠时模型名用下划线连接,否则用横杠连接 + 对于batch1与batch16,npu性能均高于T4性能1.2倍的模型,放在Benchmark目录下,1-1.2倍对应Official目录,低于1倍放在Research目录,目前都放在contrib/ACL_PyTorch/Research下即可 非代码交付件: [PyTorch离线推理-Xxx模型测试报告.docx](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/Ascend-PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86%E6%8C%87%E5%AF%BC/PyTorch%E7%A6%BB%E7%BA%BF%E6%8E%A8%E7%90%86-Xxx%E6%A8%A1%E5%9E%8B%E6%B5%8B%E8%AF%95%E6%8A%A5%E5%91%8A.docx) -- Gitee From 068cb6d6477bd92615becf5df571f398ac04eefd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Sun, 25 Jul 2021 11:24:10 +0000 Subject: [PATCH 25/25] =?UTF-8?q?update=20AscendPyTorch=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=BC=97=E6=99=BA=E6=96=87=E6=A1=A3-=E7=A6=BB=E7=BA=BF?= =?UTF-8?q?=E6=8E=A8=E7=90=86.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" index 7f9cc97..5de7ac5 100644 --- "a/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" +++ "b/AscendPyTorch\346\250\241\345\236\213\344\274\227\346\231\272\346\226\207\346\241\243-\347\246\273\347\272\277\346\216\250\347\220\206.md" @@ -1405,7 +1405,7 @@ python3 ssd_pth_postprocess.py /root/dataset/VOCdevkit/VOC2007/ ./voc-model-labe gitee网址:https://gitee.com/ascend/modelzoo/tree/master/contrib/ACL_PyTorch/Research commit信息格式:[学校学院名称][高校贡献][PyTorch离线推理][模型名称]-PR内容摘要 - 模型命名风格为大驼峰,模型名含多个字符串时使用横杠或下划线连接,当上下文用横杠时模型名用下划线连接,否则用横杠连接 + 模型名称风格为大驼峰,模型名含多个字符串时使用横杠或下划线连接,当上下文用横杠时模型名用下划线连接,否则用横杠连接 对于batch1与batch16,npu性能均高于T4性能1.2倍的模型,放在Benchmark目录下,1-1.2倍对应Official目录,低于1倍放在Research目录,目前都放在contrib/ACL_PyTorch/Research下即可 非代码交付件: -- Gitee