Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
speed test added
Browse files Browse the repository at this point in the history
  • Loading branch information
banderlog committed Apr 25, 2020
1 parent 11e004e commit c85a3fc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
21 changes: 19 additions & 2 deletions tests/prepare_and_run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,33 @@ declare -a models=("text-detection-0004.xml"
url_start="https://download.01.org/opencv/2020/openvinotoolkit/2020.1/open_model_zoo/models_bin/1"

for i in "${models[@]}"; do
# if no such file
if [ ! -f $i ]; then
# download
wget "${url_start}/${i%.*}/FP32/${i}"
else
# checksum
sha256sum -c "${i}.sha256sum"
fi
done


# for speed test
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1vbonFjVyleGRSd_wR-Khc1htsZybiHCG' -O se_net.bin
wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1Bz3EQwnes_iZ14iKAV6H__JZ2lynLmQz' -O se_net.xml
# {filename: file_google_drive_id}
declare -A se_net=(["se_net.bin"]="1vbonFjVyleGRSd_wR-Khc1htsZybiHCG"
["se_net.xml"]="1Bz3EQwnes_iZ14iKAV6H__JZ2lynLmQz")

# for each key
for i in "${!se_net[@]}"; do
# if file exist
if [ -f $i ]; then
# checksum
sha256sum -c "${i}.sha256sum"
else
# get fileid from associative array and download file
wget --no-check-certificate "https://docs.google.com/uc?export=download&id=${se_net[$i]}" -O $i
fi
done

green "RUN TESTS with ./venv_t/bin/python ./tests.py"
./venv_t/bin/python ./tests.py
Expand Down
1 change: 1 addition & 0 deletions tests/se_net.bin.sha256sum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7fd18d134598c3a633d5d9348e2c88557ce4ca0f26cdfd6cda2bbb986ea4a326 se_net.bin
1 change: 1 addition & 0 deletions tests/se_net.xml.sha256sum
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ca11477240915f94b2d686677662517cf8c8e046c285afc09760c7af076300be se_net.xml

0 comments on commit c85a3fc

Please sign in to comment.