[TOC]
Most of the datasets, including PACS, OfficeHome, Terra Incognita, and WILDSCamelyon, can be downloaded with this script. Other datasets are also publicly available but need to be downloaded manually.
Make sure that the directory structure of each dataset is arranged as follows:
Datasets in Domainbed
PACS
├── art_painting
├── dog
├── elephant
├── ...
├── cartoon
├── photo
└── sketch
VLCS
├── Caltech101
├── bird
├── car
├── ...
├── LabelMe
├── SUN09
└── VOC2007
office_home
├── Art
├── Alarm_Clock
├── Backpack
├── ...
├── Clipart
├── Product
└── Real World
terra_incognita
├── location_38
├── bird
├── bobcat
├── ...
├── location_43
├── location_46
└── location_100
camelyon17_v1.0
├── patches
└── metadata.csv
domain_net
├── clipart
├── infograph
├── painting
├── quickdraw
├── real
└── sketch
domain_net
├── source
├── normal
├── pneumonia
├── target
├── normal
├── pneumonia
├── COVID19
run To_image_assay.py with drugood_assay.txt in data to get DrugOOD_assay
DrugOOD_assay
├── domain01
├── inactive
├── active
├── ...
└── domain80
run To_image_scaffold.py with drugood_assay.txt in data to get DrugOOD_scaffold
DrugOOD_scaffold
├── domain01
├── inactive
├── active
├── ...
└── domain12542
run add_gaussion.py in data to get PACS_gaussion
PACS_gaussion
├── art_painting
├── dog
├── elephant
├── ...
├── cartoon
├── photo
└── sketch
run gradio_seg2imag_offline.py in data with ControlNet to get PACS_unseen
PACS_unseen
├── art_painting
├── dog
├── elephant
├── ...
├── cartoon
├── photo
└── sketch
Datasets in CLIP
# download from https://huggingface.co/datasets/vaishaal/ImageNetV2/tree/main
imagenetv2-matched-frequency-format-val
├── 118
└── ...
# official website: https://github.com/hendrycks/imagenet-r
# download: https://people.eecs.berkeley.edu/~hendrycks/imagenet-r.tar
imagenet-r
├── n01616318
└── ...
# download from https://github.com/HaohanWang/ImageNet-Sketch
imagenet-sketch
├── n01498041
└── ...
# download from https://github.com/hendrycks/natural-adv-examples
imagenet-a
├── n01498041
└── ...
celeba
├── img_align_celeba
└── blond_split
├── tr_env1_df.csv
├── tr_env2_df.csv
└── te_env_df.csv
NICO
├── animal
├── vehicle
└── mixed_split_corrected
├── env_train1.csv
├── env_train2.csv
├── env_val.csv
└── env_test.csv
Reference: