From 917118ae8ee8e88a0fbca2cca32700c986704311 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Tue, 6 Jul 2021 15:12:15 +0800 Subject: [PATCH] set env --- test/test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test.sh b/test/test.sh index a75aed42..601708cc 100644 --- a/test/test.sh +++ b/test/test.sh @@ -136,6 +136,7 @@ for gpu in ${gpu_list[*]}; do env="" elif [ ${#gpu} -le 1 ];then env="export CUDA_VISIBLE_DEVICES=${gpu}" + eval ${env} elif [ ${#gpu} -le 15 ];then IFS="," array=(${gpu}) @@ -215,7 +216,7 @@ for gpu in ${gpu_list[*]}; do status_check $? "${export_cmd}" "${status_log}" #run inference - echo $env + eval $env save_infer_path="${save_log}" func_inference "${python}" "${inference_py}" "${save_infer_path}" "${LOG_PATH}" "${infer_img_dir}" done -- GitLab