Skip to content

Commit e012102

Browse files
felixhjhroot
andauthored
[Bug Fix] Publish task scripts bug fix (#704)
* Fix release_task cpp_run.sh Author: felixhjh <852142024@qq.com> Date: Thu Nov 10 07:26:48 2022 +0000 * Add option for infer_ppyoloe.cc author: felixhjh <852142024@qq.com> * Fix bug in release task scripts * Add error check function * Format code * Add new download dir for release version * Fix precision diff for osx-arm64 * Update py_run.sh * Add threshold for osx-arm64 * Add osx-x86_64 threshold * Add error check function * Remove root commit author * Add error check function Co-authored-by: root <root@bjyz-sys-gpu-kongming2.bjyz.baidu.com>
1 parent d14828c commit e012102

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/release_task/cpp_run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ elif [ "$DEVICE" = "cpu" ] && [ "$PLATFORM" = "linux-aarch64" ];then
4040
RUN_CASE=(${LINUX_AARCH_CPU_CASE[*]})
4141
elif [ "$DEVICE" = "cpu" ] && [ "$PLATFORM" = "osx-x86_64" ];then
4242
RUN_CASE=(${MACOS_INTEL_CPU_CASE[*]})
43+
CONF_THRESHOLD=0.5
4344
elif [ "$DEVICE" = "cpu" ] && [ "$PLATFORM" = "osx-arm64" ];then
4445
RUN_CASE=(${MACOS_ARM64_CPU_CASE[*]})
4546
CONF_THRESHOLD=0.5

tests/release_task/py_run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ do
5454
echo "Python Backend:" $backend
5555
if [ "$backend" != "trt" ];then
5656
python infer_ppyoloe.py --model_dir $MODEL_PATH --image $IMAGE_PATH --device cpu --backend $backend >> py_$backend\_cpu_result.txt
57-
if [ "$PLATFORM" = "osx-arm64"]
57+
if [ "$PLATFORM" = "osx-arm64" ] || [ "$PLATFORM" = "osx-x86_64" ];then
5858
python $COMPARE_SHELL --gt_path $GROUND_TRUTH_PATH --result_path py_$backend\_cpu_result.txt --platform $PLATFORM --device cpu --conf_threshold 0.5
5959
check_ret
6060
else
@@ -86,3 +86,4 @@ else
8686
cat $res_file
8787
exit -1
8888
fi
89+

0 commit comments

Comments
 (0)