Skip to content

Commit f551723

Browse files
fix
1 parent 223872a commit f551723

6 files changed

+10
-10
lines changed

test_tipc/prepare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ fi
208208
if [[ ${MODE} = "serving_infer" ]]; then
209209
# prepare serving env
210210
python_name=$(func_parser_value "${lines[2]}")
211-
if [[ ${model_name} =~ "ShiTu" ]]; then
211+
if [[ ${model_name} = "PPShiTu" ]]; then
212212
cls_inference_model_url=$(func_parser_value "${lines[3]}")
213213
cls_tar_name=$(func_get_url_file_name "${cls_inference_model_url}")
214214
det_inference_model_url=$(func_parser_value "${lines[4]}")

test_tipc/test_inference_cpp.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,14 @@ echo "################### build PaddleClas demo finished ###################"
237237

238238

239239
# set cuda device
240-
# GPUID=$2
241-
# if [ ${#GPUID} -le 0 ];then
242-
# env="export CUDA_VISIBLE_DEVICES=0"
243-
# else
244-
# env="export CUDA_VISIBLE_DEVICES=${GPUID}"
245-
# fi
246-
# set CUDA_VISIBLE_DEVICES
247-
# eval $env
240+
GPUID=$3
241+
if [ ${#GPUID} -le 0 ];then
242+
env="export CUDA_VISIBLE_DEVICES=0"
243+
else
244+
env="export CUDA_VISIBLE_DEVICES=${GPUID}"
245+
fi
246+
set CUDA_VISIBLE_DEVICES
247+
eval $env
248248

249249

250250
echo "################### run test ###################"

test_tipc/test_serving_infer_python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ echo "################### run test ###################"
310310

311311
export Count=0
312312
IFS="|"
313-
if [[ ${model_name} =~ "ShiTu" ]]; then
313+
if [[ ${model_name} = "PPShiTu" ]]; then
314314
func_serving_rec
315315
else
316316
func_serving_cls

0 commit comments

Comments
 (0)