Instructions for downloading datasets (modified from https://github.com/mlfoundations/wise-ft)
export DATA_LOCATION=~/data # feel free to change.
cd $DATA_LOCATION
wget https://people.eecs.berkeley.edu/~hendrycks/imagenet-a.tar
tar xvf imagenet-a.tar
rm imagenet-a.tar
wget https://people.eecs.berkeley.edu/~hendrycks/imagenet-r.tar
tar xvf imagenet-r.tar
rm imagenet-r.tar
Download links:
- from Google Drive
- from Kaggle
wget https://s3-us-west-2.amazonaws.com/imagenetv2public/imagenetv2-matched-frequency.tar.gz
tar -xvf imagenetv2-matched-frequency.tar.gz
rm imagenetv2-matched-frequency.tar.gz
wget https://objectnet.dev/downloads/objectnet-1.0.zip
unzip objectnet-1.0.zip
rm objectnet-1.0.zip
Can be downloaded via https://www.image-net.org/download.php. Please format for PyTorch, e.g., via https://github.com/pytorch/examples/blob/main/imagenet/extract_ILSVRC.sh.
When running:
cd $DATA_LOCATION
ls
you should see (at least):
imagenet # containing train and val subfolders
imagenetv2-matched-frequency-format-val
imagenet-r
imagenet-a
sketch # imagenet-sketch
objectnet-1.0