File size: 1,419 Bytes
3ef85e9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# Copyright 2022-present NAVER Corp.
# CC BY-NC-SA 3.0
# Available only for non-commercial use
CODE_ROOT=`pwd`
if [ ! -e datasets ]; then
echo "Error: missing datasets/ folder"
echo "First, create a folder that can host (at least) 15 GB of data."
echo "Then, create a soft-link named 'data' that points to it."
exit -1
fi
# download some web images from the revisitop1m dataset
WEB_ROOT=datasets/revisitop1m
mkdir -p $WEB_ROOT
cd $WEB_ROOT
if [ ! -e 0d3 ]; then
for i in {1..5}; do
echo "Installing the web images dataset ($i/5)..."
if [ ! -f revisitop1m.$i.tar.gz ]; then
wget http://ptak.felk.cvut.cz/revisitop/revisitop1m/jpg/revisitop1m.$i.tar.gz
fi
tar -xzvf revisitop1m.$i.tar.gz
rm -f revisitop1m.$i.tar.gz
done
fi
cd $CODE_ROOT
# download SfM120k pairs
SFM_ROOT=datasets/sfm120k
mkdir -p $SFM_ROOT
cd $SFM_ROOT
if [ ! -e "ims" ]; then
echo "Downloading the SfM120k dataset..."
fname=ims.tar.gz
if [ ! -f $fname ]; then
wget http://cmp.felk.cvut.cz/cnnimageretrieval/data/train/ims/ims.tar.gz
fi
tar -xzvf $fname -C ims
rm -f $fname
fi
if [ ! -e "corres" ]; then
echo "Installing the SfM120k dataset..."
fname=corres.tar.gz
if [ ! -f $meta ]; then
wget https://download.europe.naverlabs.com/corres.tar.gz
fi
tar -xzvf $fname
rm -f $fname
fi
cd $CODE_ROOT
echo "Done!"
|