diff --git a/Samples/DetectionRetrainingAndInfer/README.md b/Samples/DetectionRetrainingAndInfer/README.md index f35ccfec1ff9cce6e1f6a266aed812c98ccbb5a6..8bf02d4e72871c838e1e39c550da5d4010781815 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 diff --git a/Samples/DetectionRetrainingAndInfer/omInfer/src/main.cpp b/Samples/DetectionRetrainingAndInfer/omInfer/src/main.cpp index f18a11a11a6c90d41cd1f1fc9659d0182ed2e3b7..d3224edd4b409107d45dba7ee491ae422ba83f2e 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); diff --git a/Samples/HandWritingTrainAndInfer/README.md b/Samples/HandWritingTrainAndInfer/README.md index 982334b8457e1259066fcde80088beea00c03dc2..55c6d57f93ffd27b1c5f19b134c492d0af8ec3a2 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 diff --git a/Samples/HandWritingTrainAndInfer/omInfer/src/SampleMnist.cpp b/Samples/HandWritingTrainAndInfer/omInfer/src/SampleMnist.cpp index 65e58dcfc2a343bf923d088ce3d23bab7c2fe6db..7d0e6d1592d543a79431fec2faf163382f325b19 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);