This repository was archived by the owner on Nov 19, 2024. It is now read-only.
File tree 3 files changed +21
-2
lines changed
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"
60
60
url_start=" https://download.01.org/opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1"
61
61
62
62
for i in " ${models[@]} " ; do
63
+ # if no such file
63
64
if [ ! -f $i ]; then
65
+ # download
64
66
wget " ${url_start} /${i% .* } /FP32/${i} "
65
67
else
68
+ # checksum
66
69
sha256sum -c " ${i} .sha256sum"
67
70
fi
68
71
done
69
72
73
+
70
74
# 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
73
90
74
91
green " RUN TESTS with ./venv_t/bin/python ./tests.py"
75
92
./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