Skip to content

Commit f36818d

Browse files
authored
"windows testing easier" (#12739)
1 parent 4069262 commit f36818d

File tree

1 file changed

+9
-3
lines changed
  • paddle/fluid/inference/api/demo_ci

1 file changed

+9
-3
lines changed

paddle/fluid/inference/api/demo_ci/run.sh

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,22 @@ else
1313
use_gpu_list='false'
1414
fi
1515

16+
PREFIX=inference-vis-demos%2F
17+
URL_ROOT=http://paddlemodels.bj.bcebos.com/${PREFIX}
18+
1619
# download vis_demo data
1720
function download() {
1821
dir_name=$1
1922
mkdir -p $dir_name
2023
cd $dir_name
21-
wget -q ${URL_ROOT}$dir_name.tar.gz
22-
tar xzf *.tar.gz
24+
if [[ -e "${PREFIX}${dir_name}.tar.gz" ]]; then
25+
echo "${PREFIX}{dir_name}.tar.gz has been downloaded."
26+
else
27+
wget -q ${URL_ROOT}$dir_name.tar.gz
28+
tar xzf *.tar.gz
29+
fi
2330
cd ..
2431
}
25-
URL_ROOT=http://paddlemodels.bj.bcebos.com/inference-vis-demos%2F
2632
mkdir -p data
2733
cd data
2834
vis_demo_list='se_resnext50 ocr mobilenet'

0 commit comments

Comments
 (0)