hytseng0509 / CrossDomainFewShot

Cross-Domain Few-Shot Classification via Learned Feature-Wise Transformation (ICLR 2020 spotlight)
329 stars 62 forks source link

Cannot get CUB_200_2011 dataset from "python3 process.py cub" #26

Open e96031413 opened 3 years ago

e96031413 commented 3 years ago

As mentioned in the title

Since Caltech move the dataset to Google drive, we can't use the command wget http://www.vision.caltech.edu/visipedia-data/CUB-200-2011/CUB_200_2011.tgz to get the dataset

So I use the following method to download the dataset and manually unzip the file and then run write_cub_filelist.py

$ wget --load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies /tmp/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1hbzc_P1FuxMkcabkgn9ZKinBwW683j45' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1hbzc_P1FuxMkcabkgn9ZKinBwW683j45" -O CUB_200_2011.tgz && rm -rf /tmp/cookies.txt
$ tar -zxf CUB_200_2011.tgz
$ python3 write_cub_filelist.py

Do you have any idea on handle this problem?

hytseng0509 commented 3 years ago

What's the error message for your commands?

e96031413 commented 3 years ago
$ wget http://www.vision.caltech.edu/visipedia-data/CUB-200-2011/CUB_200_2011.tgz

--2021-01-24 09:14:33--  http://www.vision.caltech.edu/visipedia-data/CUB-200-2011/CUB_200_2011.tgz
Resolving www.vision.caltech.edu (www.vision.caltech.edu)... 34.208.54.77
Connecting to www.vision.caltech.edu (www.vision.caltech.edu)|34.208.54.77|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://drive.google.com/file/d/1hbzc_P1FuxMkcabkgn9ZKinBwW683j45/view [following]
--2021-01-24 09:14:33--  https://drive.google.com/file/d/1hbzc_P1FuxMkcabkgn9ZKinBwW683j45/view
Resolving drive.google.com (drive.google.com)... 172.217.27.142, 2404:6800:4012:1::200e
Connecting to drive.google.com (drive.google.com)|172.217.27.142|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘CUB_200_2011.tgz’

CUB_200_2011.tgz                                [ <=>             ]  68.44K  --.-KB/s    in 0.001s  

2021-01-24 09:15:07 (46.7 MB/s) - ‘CUB_200_2011.tgz’ saved [70083]

Only get 68.44K file with the above command

machingwen commented 3 years ago

The following two commands work for me. They might work for you too. pip install gdown gdown https://drive.google.com/uc?id=1hbzc_P1FuxMkcabkgn9ZKinBwW683j45