Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
e96031413 opened this issue Jan 23, 2021 · 3 comments
Open

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

e96031413 opened this issue Jan 23, 2021 · 3 comments

Comments

@e96031413
Copy link

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
Copy link
Owner

What's the error message for your commands?

@e96031413
Copy link
Author

e96031413 commented Jan 24, 2021

$ 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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants