diff --git a/tests/release_task/cpp_run.sh b/tests/release_task/cpp_run.sh index 954a2a38e5..4d821ed7b9 100644 --- a/tests/release_task/cpp_run.sh +++ b/tests/release_task/cpp_run.sh @@ -40,6 +40,7 @@ elif [ "$DEVICE" = "cpu" ] && [ "$PLATFORM" = "linux-aarch64" ];then RUN_CASE=(${LINUX_AARCH_CPU_CASE[*]}) elif [ "$DEVICE" = "cpu" ] && [ "$PLATFORM" = "osx-x86_64" ];then RUN_CASE=(${MACOS_INTEL_CPU_CASE[*]}) + CONF_THRESHOLD=0.5 elif [ "$DEVICE" = "cpu" ] && [ "$PLATFORM" = "osx-arm64" ];then RUN_CASE=(${MACOS_ARM64_CPU_CASE[*]}) CONF_THRESHOLD=0.5 diff --git a/tests/release_task/py_run.sh b/tests/release_task/py_run.sh index 64e876747e..98ba53b5f4 100644 --- a/tests/release_task/py_run.sh +++ b/tests/release_task/py_run.sh @@ -54,7 +54,7 @@ do echo "Python Backend:" $backend if [ "$backend" != "trt" ];then python infer_ppyoloe.py --model_dir $MODEL_PATH --image $IMAGE_PATH --device cpu --backend $backend >> py_$backend\_cpu_result.txt - if [ "$PLATFORM" = "osx-arm64"] + if [ "$PLATFORM" = "osx-arm64" ] || [ "$PLATFORM" = "osx-x86_64" ];then python $COMPARE_SHELL --gt_path $GROUND_TRUTH_PATH --result_path py_$backend\_cpu_result.txt --platform $PLATFORM --device cpu --conf_threshold 0.5 check_ret else @@ -86,3 +86,4 @@ else cat $res_file exit -1 fi +