This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -60,16 +60,33 @@ declare -a models=("text-detection-0004.xml"
6060url_start=" https://download.01.org/opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1"
6161
6262for i in " ${models[@]} " ; do
63+ # if no such file
6364 if [ ! -f $i ]; then
65+ # download
6466 wget " ${url_start} /${i% .* } /FP32/${i} "
6567 else
68+ # checksum
6669 sha256sum -c " ${i} .sha256sum"
6770 fi
6871done
6972
73+
7074# for speed test
71- wget --no-check-certificate ' https://docs.google.com/uc?export=download&id=1vbonFjVyleGRSd_wR-Khc1htsZybiHCG' -O se_net.bin
72- wget --no-check-certificate ' https://docs.google.com/uc?export=download&id=1Bz3EQwnes_iZ14iKAV6H__JZ2lynLmQz' -O se_net.xml
75+ # {filename: file_google_drive_id}
76+ declare -A se_net=([" se_net.bin" ]=" 1vbonFjVyleGRSd_wR-Khc1htsZybiHCG"
77+ [" se_net.xml" ]=" 1Bz3EQwnes_iZ14iKAV6H__JZ2lynLmQz" )
78+
79+ # for each key
80+ for i in " ${! se_net[@]} " ; do
81+ # if file exist
82+ if [ -f $i ]; then
83+ # checksum
84+ sha256sum -c " ${i} .sha256sum"
85+ else
86+ # get fileid from associative array and download file
87+ wget --no-check-certificate " https://docs.google.com/uc?export=download&id=${se_net[$i]} " -O $i
88+ fi
89+ done
7390
7491green " RUN TESTS with ./venv_t/bin/python ./tests.py"
7592./venv_t/bin/python ./tests.py
Original file line number Diff line number Diff line change 1+ 7fd18d134598c3a633d5d9348e2c88557ce4ca0f26cdfd6cda2bbb986ea4a326 se_net.bin
Original file line number Diff line number Diff line change 1+ ca11477240915f94b2d686677662517cf8c8e046c285afc09760c7af076300be se_net.xml
You can’t perform that action at this time.
0 commit comments