download_validation.sh 640 Bytes
Newer Older
xavier's avatar
xavier committed
1
2
#!/bin/bash

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

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