From 5e9bd14495c5e6954873a35a966edb7c519c2c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=A5=96=E6=B6=9B?= <1025494833@qq.com> Date: Thu, 28 Mar 2024 07:19:45 +0000 Subject: [PATCH 1/4] =?UTF-8?q?=E9=80=82=E9=85=8D310=E6=8E=A8=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 万祖涛 <1025494833@qq.com> --- Samples/DetectionRetrainingAndInfer/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Samples/DetectionRetrainingAndInfer/README.md b/Samples/DetectionRetrainingAndInfer/README.md index f35ccfe..8bf02d4 100644 --- a/Samples/DetectionRetrainingAndInfer/README.md +++ b/Samples/DetectionRetrainingAndInfer/README.md @@ -131,7 +131,7 @@ cp ../../mobilenet-ssd.onnx ./ # 获取AIPP配置文件 - wget https://obs-9be7.obs.cn-east-2.myhuaweicloud.com/wanzutao/detection/aipp.cfg + wget https://obs-9be7.obs.cn-east-2.myhuaweicloud.com/wanzutao/detection/aipp/aipp.cfg # 模型转换 atc --model=mobilenet-ssd.onnx --framework=5 --soc_version=Ascend310B4 --output=mobilenet-ssd --insert_op_conf=aipp.cfg -- Gitee From a4828d524eed29bd90fb17eb0977d6de66d4d017 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=A5=96=E6=B6=9B?= <1025494833@qq.com> Date: Thu, 28 Mar 2024 07:21:03 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E9=80=82=E9=85=8D310=E6=8E=A8=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 万祖涛 <1025494833@qq.com> --- Samples/HandWritingTrainAndInfer/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Samples/HandWritingTrainAndInfer/README.md b/Samples/HandWritingTrainAndInfer/README.md index 982334b..55c6d57 100644 --- a/Samples/HandWritingTrainAndInfer/README.md +++ b/Samples/HandWritingTrainAndInfer/README.md @@ -158,7 +158,7 @@ cp ../../mnist.onnx ./ # 获取AIPP配置文件 - wget https://obs-9be7.obs.cn-east-2.myhuaweicloud.com/wanzutao/mnist/aipp.cfg + wget https://obs-9be7.obs.cn-east-2.myhuaweicloud.com/wanzutao/mnist/ecs/aipp.cfg # 模型转换 atc --model=mnist.onnx --framework=5 --insert_op_conf=aipp.cfg --output=mnist --soc_version=Ascend310B4 -- Gitee From 39a2a50d3dee840db1a1e3bbdc4fd01ac5c74bbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=A5=96=E6=B6=9B?= <1025494833@qq.com> Date: Thu, 28 Mar 2024 08:46:58 +0000 Subject: [PATCH 3/4] update Samples/DetectionRetrainingAndInfer/omInfer/src/main.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 万祖涛 <1025494833@qq.com> --- Samples/DetectionRetrainingAndInfer/omInfer/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Samples/DetectionRetrainingAndInfer/omInfer/src/main.cpp b/Samples/DetectionRetrainingAndInfer/omInfer/src/main.cpp index f18a11a..d3224ed 100644 --- a/Samples/DetectionRetrainingAndInfer/omInfer/src/main.cpp +++ b/Samples/DetectionRetrainingAndInfer/omInfer/src/main.cpp @@ -50,7 +50,7 @@ int main() CHECK_RET(src.size, LOG_PRINT("[ERROR] ImRead image failed."); return 1); ImageData dst; - ImageSize dsize(300, 300); + ImageSize dsize(304, 300); imageProc.Resize(src, dst, dsize); ret = modelProc.CreateInput(static_cast(dst.data.get()), dst.size); -- Gitee From b761052afa2af7e2ce38a1bbdb8e7bcf459b190a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=A5=96=E6=B6=9B?= <1025494833@qq.com> Date: Thu, 28 Mar 2024 08:47:27 +0000 Subject: [PATCH 4/4] update Samples/HandWritingTrainAndInfer/omInfer/src/SampleMnist.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 万祖涛 <1025494833@qq.com> --- Samples/HandWritingTrainAndInfer/omInfer/src/SampleMnist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Samples/HandWritingTrainAndInfer/omInfer/src/SampleMnist.cpp b/Samples/HandWritingTrainAndInfer/omInfer/src/SampleMnist.cpp index 65e58dc..7d0e6d1 100644 --- a/Samples/HandWritingTrainAndInfer/omInfer/src/SampleMnist.cpp +++ b/Samples/HandWritingTrainAndInfer/omInfer/src/SampleMnist.cpp @@ -22,7 +22,7 @@ int main() CHECK_RET(src.size, LOG_PRINT("[ERROR] ImRead image failed."); return 1); ImageData dst; - ImageSize dsize(28, 28); + ImageSize dsize(32, 28); imageProc.Resize(src, dst, dsize); ret = modelProc.CreateInput(static_cast(dst.data.get()), dst.size); -- Gitee