DATASETS.md
March 4, 2026 Β· View on GitHub
Dataset Preparation
-
Download all 11 prompt-tuning datasets with foreground views on [π€HuggingFace].
(This dataset is fully compatible with other prompt tuning methods that do not use foreground views!)
If you need a separate mask data that does not contain raw images, please download it from the following links: Mask-Only-Data -
We suggest putting all datasets under the same folder (say
$DATA) to ease management and following the instructions below to organize datasets to avoid modifying the source code.
The file structure should be organized as:-
ImageNet: (Please first prepare raw ImageNet dataset from: [Raw Images] [annoations] [val conversion script] )
$DATA/ |ββ imagenet-1k/ | |ββ imagenet/ | | |-- images/ | | | |-- train/ | | | | |-- n01440764/ | | | | |-- n01443537/ | | | | |-- ... | | | |-- val/ | | | | |-- n01440764/ | | | | |-- n01443537/ | | | | |-- ... | | | |-- test/ | | | | |-- ILSVRC2012_test_00000001.JPEG | | | | |-- ILSVRC2012_test_00000002.JPEG | | | | |-- ... | | |ββ classnames.txt | | |ββ command.txt | |ββ mask/ -
Caltech101:
$DATA/ |ββ caltech-101/ | |ββ caltech-101/ | | |-- 101_ObjectCategories/ | | |-- Annoations/ | | |-- ... | |ββ mask/ -
Food101:
$DATA/ |ββ food101/ | |ββ food-101/ | | |-- images/ | | |-- meta/ | | |-- ... | |ββ mask/ -
StanfordCars:
$DATA/ |ββ stanford_cars/ | |ββ stanford_cars/ | | |-- cars_train/ | | |-- cars_test/ | | |-- ... | |ββ mask/ -
OxfordPets:
$DATA/ |ββ oxford_pets/ | |ββ oxford_pets/ | | |-- annoations/ | | |-- images/ | | |-- ... | |ββ mask/ -
Flowers102:
$DATA/ |ββ flowers-102/ | |ββ oxford_flowers/ | | |-- jpg/ | | |-- cat_to_name.json | | |-- ... | |ββ mask/ -
DTD:
$DATA/ |ββ dtd/ | |ββdtd/ | | |-- dtd/ | | | |-- images/ | | | |-- imdb/ | | | |-- ... | | |ββ mask/ -
EuroSAT:
$DATA/ |ββ eurosat/ | |ββ eurosat/ | | |-- 2750/ | | |-- split_zhou_EuroSAT.json | |ββ mask/ -
FGVC_Aircraft:
$DATA/ |ββ fgvc_aircraft/ | |ββ fgvc-aircraft-2013b/ | | |-- fgvc_aircraft | | | |-- images/ | | | |-- families.txt | | | |-- ... | | |ββ mask/ | | |ββ ... -
SUN397:
$DATA/ |ββ sun-397/ | |ββ sun397/ | | |-- sun397/ | | | |-- a/ | | | |-- b/ | | | |-- ... | | |-- classnames.txt | | |-- split_zhou_SUN397.json | | |-- ... | |ββ mask/ -
UCF101:
$DATA/ |ββ ucf101/ | |ββ ucf101/ | | |-- UCF-101-midframes/ | | |-- ucfTrainTestlist/ | | |-- split_zhou_UCF101.json | |ββ mask/
-