Home

Awesome

ImageNet subset generator

Generate a subsets from the original ImageNet1K dataset. Some commonly used subsets:

Usage

Generate subset

For example: python main_subset.py --in1k_path /data/imagenet1k --out_path /data/imagenet1k_10percent_simclrv2 --version in1k_10percent_simclrv2

You can find all supported versions here or via python main_subset.py --help.

Check classes/samples of dataset

python main_statistics.py <path>

train n_classes: 1000
valid n_classes: 1000
train n_samples: 1282169
valid n_samples: 50000
train classes: ['n01440764', ...]
valid classes: ['n01440764', ...]