Skip to content

Commit

Permalink
[Bug Fix] Publish task scripts bug fix (#704)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
felixhjh and root authored Nov 25, 2022
1 parent d14828c commit e012102
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tests/release_task/cpp_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion tests/release_task/py_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -86,3 +86,4 @@ else
cat $res_file
exit -1
fi

0 comments on commit e012102

Please sign in to comment.