This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tkDNN/scripts/download_validation.sh
2020-04-24 12:39:57 +02:00

27 lines
640 B
Bash

#!/bin/bash
function elaborate_testset {
wget $1 -O $2.zip
unzip -d $2 $2.zip
rm $2.zip
cd $2/
realpath labels/* > all_labels.txt
realpath images/* > all_images.txt
cd ..
}
cd demo
for valset in $@
do
if [ $valset = "COCO" ]; then
echo "Downloading $valset validation set in demo"
elaborate_testset "https://cloud.hipert.unimore.it/s/LNxBDk4wzqXPL8c/download" "COCO_val2017"
elif [ $valset = "BDD" ]; then
echo "Downloading $valset validation set in demo"
elaborate_testset "https://cloud.hipert.unimore.it/s/bikqk3FzCq2tg4D/download" "BDD100K_val"
fi
done