From 5eccfe346bd293fbbd9cf0a9e19d6cc90f73c967 Mon Sep 17 00:00:00 2001 From: anan505 <1204828624@qq.com> Date: Tue, 26 Nov 2024 09:29:17 +0000 Subject: [PATCH 1/3] update mxVision/PPYOLOEPlusDetection/README.md. Signed-off-by: anan505 <1204828624@qq.com> --- mxVision/PPYOLOEPlusDetection/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mxVision/PPYOLOEPlusDetection/README.md b/mxVision/PPYOLOEPlusDetection/README.md index f6c274e24..474dab0f4 100644 --- a/mxVision/PPYOLOEPlusDetection/README.md +++ b/mxVision/PPYOLOEPlusDetection/README.md @@ -110,7 +110,7 @@ vim prune_paddle_model.py 执行脚本 参考命令: ``` -python prune_paddle_model.py --model_dir ${input_model_dir} --model_filename ${pdmodel_file_name} --params_filename ${pdiparams_file_name} --output_names tmp_20 concat_14.tmp_0 --save_dir ${new_model_dir} +python3 prune_paddle_model.py --model_dir ${input_model_dir} --model_filename ${pdmodel_file_name} --params_filename ${pdiparams_file_name} --output_names tmp_20 concat_14.tmp_0 --save_dir ${new_model_dir} ``` 对于PP-YOLOE+_l(w/nms)模型而言,建议输出端口为"tmp20"和"concat_14.tmp_0"。 其中: @@ -198,6 +198,7 @@ mkdir build cd build cmake .. make +make install ``` **步骤2:** 放入待测图片 @@ -215,7 +216,7 @@ bash run.sh -m ${model_path} -c ${model_config_path} -l ${model_label_path} -i $ ```${model_path}``` 代表.om模型路径,例如 ```./model/ppyoloe.om``` ```${model_config_path}``` 代表ppyoloe模型的配置文件路径,例如 ``` ./model/ppyoloe.cfg``` ```${model_label_path}``` ,`coco.names`的路径,可全局搜索这个文件, ``` path/to/coco.names``` -```${image_path}``` 代表待测图片的路径, 例如 ``` ./test.jpg``` +```${image_path}``` 代表待测图片的路径, 例如 ``` ./test.jpg```。 ```[-y]``` 添加`-y`表示模型使用的YUVSP420照片格式输入,不添加则表示模型使用的RGB输入。 **步骤5:** 运行结果 -- Gitee From c8daaac2b22d5a47a8efe4bfbc8c8c98ddc2fbbd Mon Sep 17 00:00:00 2001 From: anan505 <1204828624@qq.com> Date: Tue, 26 Nov 2024 09:29:57 +0000 Subject: [PATCH 2/3] update mxVision/PPYOLOEPlusDetection/README.md. Signed-off-by: anan505 <1204828624@qq.com> --- mxVision/PPYOLOEPlusDetection/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mxVision/PPYOLOEPlusDetection/README.md b/mxVision/PPYOLOEPlusDetection/README.md index 474dab0f4..6a55bc262 100644 --- a/mxVision/PPYOLOEPlusDetection/README.md +++ b/mxVision/PPYOLOEPlusDetection/README.md @@ -60,7 +60,7 @@ paddlepaddle框架的ppyoloe模型推理时,前处理方案包括解码为BGR- 注:coco.names文件源于[链接](https://gitee.com/ascend/mindxsdk-referenceapps/blob/master/contrib/Collision/model/coco.names)的coco2014.names文件,下载之后,放到models目录下。 -## 2. 设置环境变量 +## 2 设置环境变量 MindSDK 环境变量: @@ -216,7 +216,8 @@ bash run.sh -m ${model_path} -c ${model_config_path} -l ${model_label_path} -i $ ```${model_path}``` 代表.om模型路径,例如 ```./model/ppyoloe.om``` ```${model_config_path}``` 代表ppyoloe模型的配置文件路径,例如 ``` ./model/ppyoloe.cfg``` ```${model_label_path}``` ,`coco.names`的路径,可全局搜索这个文件, ``` path/to/coco.names``` -```${image_path}``` 代表待测图片的路径, 例如 ``` ./test.jpg```。 +```${image_path}``` 代表待测图片的路径, 例如 ``` ./test.jpg``` + ```[-y]``` 添加`-y`表示模型使用的YUVSP420照片格式输入,不添加则表示模型使用的RGB输入。 **步骤5:** 运行结果 -- Gitee From ca6e1ab5c7960aebaaa5fdf8e407b900c36031c7 Mon Sep 17 00:00:00 2001 From: anan505 <1204828624@qq.com> Date: Tue, 26 Nov 2024 11:18:32 +0000 Subject: [PATCH 3/3] update mxVision/PPYOLOEPlusDetection/plugin/CMakeLists.txt. Signed-off-by: anan505 <1204828624@qq.com> --- mxVision/PPYOLOEPlusDetection/plugin/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxVision/PPYOLOEPlusDetection/plugin/CMakeLists.txt b/mxVision/PPYOLOEPlusDetection/plugin/CMakeLists.txt index 79e11247f..11b595a07 100644 --- a/mxVision/PPYOLOEPlusDetection/plugin/CMakeLists.txt +++ b/mxVision/PPYOLOEPlusDetection/plugin/CMakeLists.txt @@ -27,4 +27,4 @@ target_link_libraries(${TARGET_LIBRARY} glib-2.0 gstreamer-1.0 gobject-2.0 gstba target_link_libraries(${TARGET_LIBRARY} plugintoolkit mxpidatatype mxbase) target_link_libraries(${TARGET_LIBRARY} -Wl,-z,relro,-z,now,-z,noexecstack -s) -install(TARGETS ${TARGET_LIBRARY} PERMISSIONS OWNER_READ GROUP_READ LIBRARY DESTINATION ${PROJECT_SOURCE_DIR}/../../lib/modelpostprocessors) \ No newline at end of file +install(TARGETS ${TARGET_LIBRARY} PERMISSIONS OWNER_READ GROUP_READ LIBRARY DESTINATION ${MX_SDK_HOME}/lib/modelpostprocessors) \ No newline at end of file -- Gitee