How to Install Datasets

May 5, 2025 · View on GitHub

$DATA denotes the location where datasets are installed, e.g.

$DATA/
|–– office31/
|–– office_home/
|–– visda17/

ImageNet

  • Download the dataset from the official website
  • Create a folder named imagenet/ under $DATA.
  • Extract the validation sets to $DATA/imagenet/val. The directory structure should look like
.
├── ...
├── data                    
│   ├── imagenet            
│   │   ├── val             
│   └── ...                 
└── ...

ImageNetV2

.
├── ...
├── data                    
│   ├── imagenetv2            
│   │   ├── ImageNetV2-matched-frequency/  
│   └── ...                 
└── ...

ImageNet-R

The directory structure should look like

.
├── ...
├── data
│   ├── imagenet-r
│   │   ├── n01443537/
│   │   ├── ...
│   └── ...
└── ...

ImageNet-A

The directory structure should look like

.
├── ...
├── data
│   ├── imagenet-a
│   │   ├── n01498041
│   │   ├── ...
│   └── ...
└── ...

ImageNet-S

The directory structure should look like

.
├── ...
├── data
│   ├── imagenet-s
│   │   ├── n01440764/
│   │   ├── ...
│   └── ...
└── ...

CUB-200-2011

The directory structure should look like

.
├── ...
├── data                    
│   ├── CUB-200-2011            
│   └── ...                 
└── ...

Describable Textures Dataset

The directory structure should look like

.
├── ...
├── data                    
│   ├── dtd     
│   │   ├── images/        
│   │   ├── imdb/        
│   │   ├── labels/        
│   │   ├── ...         
│   └── ...                 
└── ...

Food-101

The directory structure should look like

.
├── ...
├── data                    
│   ├── food-101     
│   │   ├── images/        
│   │   ├── meta/              
│   │   ├── ...         
│   └── ...                 
└── ...

oxford-iiit-pet

The directory structure should look like

.
├── ...
├── data
│   ├── oxford-iiit-pet
│   │   ├── images/
│   │   ├── annotations/
│   │   ├── ...
│   └── ...
└── ...