From 167990fb0b229a219d729bbb4d109efc46ca319f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Mon, 26 Jul 2021 02:53:46 +0000 Subject: [PATCH 1/2] =?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 32130d0..d8d85af 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" @@ -59,7 +59,7 @@ 首先在github上找到PyTorch实现的引用多包含预训练的模型代码仓,参考代码仓预处理模型加载的代码加载pth并转换为onnx模型,再由onnx模型转换为om模型,参考代码仓预训练模型数据预处理代码对用来评价模型精度的数据集进行预处理,使用昇腾benchmark工具执行om模型的离线推理,最后参考代码仓数据后处理代码进行后处理,统计出om模型的推理精度。使用benchmark工具测试om推理性能,对性能不达标的om模型,使用profiling工具分析,通过模型调优,算子开发与算子融合等方法实现达标 Ascend PyTorch模型离线推理流程: -![](figures/pyotrch_offline_infer.png) +![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/figures/pyotrch_offline_infer.png) ### 1.3 环境搭建 -- Gitee From 90574251464849f20c83f76f4d02b88791992d19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E4=B8=9A=E5=BA=86?= Date: Mon, 26 Jul 2021 02:55:56 +0000 Subject: [PATCH 2/2] =?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 d8d85af..9f16d8b 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" @@ -59,7 +59,7 @@ 首先在github上找到PyTorch实现的引用多包含预训练的模型代码仓,参考代码仓预处理模型加载的代码加载pth并转换为onnx模型,再由onnx模型转换为om模型,参考代码仓预训练模型数据预处理代码对用来评价模型精度的数据集进行预处理,使用昇腾benchmark工具执行om模型的离线推理,最后参考代码仓数据后处理代码进行后处理,统计出om模型的推理精度。使用benchmark工具测试om推理性能,对性能不达标的om模型,使用profiling工具分析,通过模型调优,算子开发与算子融合等方法实现达标 Ascend PyTorch模型离线推理流程: -![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/blob/master/figures/pyotrch_offline_infer.png) +![](https://gitee.com/wangjiangben_hw/ascend-pytorch-crowdintelligence-doc/raw/master/figures/pyotrch_offline_infer.png) ### 1.3 环境搭建 -- Gitee