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

Commit 2dc5266

Browse files
committed
remove speed test due to problems with downloading from google drive
1 parent d64760d commit 2dc5266

5 files changed

Lines changed: 1 addition & 49 deletions

File tree

tests/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ cd tests
1919

2020
Something like below. The general idea is to test only inference speed, without preprocessing and decoding.
2121
Also, 1st inference must not count, because it will load all stuff into memory.
22-
I prefer to do such things in `ipython` or `jupyter` with `%timeit`.
2322

2423
**NB:** be strict about Backend and Target
2524

tests/prepare_and_run_tests.sh

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -68,30 +68,10 @@ for i in "${models[@]}"; do
6868
wget "${url_start}/${i%.*}/FP32/${i}"
6969
else
7070
# checksum
71-
sha256sum -c "${i}.sha256sum"
72-
fi
73-
done
74-
75-
76-
# for speed test
77-
# {filename: file_google_drive_id}
78-
declare -A se_net=(["se_net.bin"]="1vbonFjVyleGRSd_wR-Khc1htsZybiHCG"
79-
["se_net.xml"]="1Bz3EQwnes_iZ14iKAV6H__JZ2lynLmQz")
80-
81-
# for each key
82-
for i in "${!se_net[@]}"; do
83-
# if file exist
84-
if [ -f $i ]; then
85-
# checksum
86-
sha256sum -c "${i}.sha256sum"
87-
else
88-
# get fileid from associative array and download file
89-
wget --no-check-certificate "https://docs.google.com/uc?export=download&id=${se_net[$i]}" -O $i
71+
sha256sum -c "${i}.sha256sum" || red "PROBLEMS ^^^"
9072
fi
9173
done
9274

9375
green "For \"$WHEEL\""
9476
green "RUN TESTS with ./venv_t/bin/python ./tests.py"
9577
./venv_t/bin/python ./tests.py
96-
green "RUN TESTS with ./venv_t/bin/python ./speed_test.py"
97-
./venv_t/bin/python ./speed_test.py

tests/se_net.bin.sha256sum

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/se_net.xml.sha256sum

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/speed_test.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)