Repository
imagenet-1k-image-folder-preprocessing
Pre-processing to convert imagenet-1k to PyTorch's ImageFolder arrangement https://huggingface.co/datasets/ILSVRC/imagenet-1k I modified it a bit to work with the following code. Thanks so much for the following code👍 https://stackoverflow.com/a/78633633
README
Pre-processing to convert imagenet-1k to PyTorch's ImageFolder arrangement
https://huggingface.co/datasets/ILSVRC/imagenet-1k
I modified it a bit to work with the following code.
Thanks so much for the following code👍
https://stackoverflow.com/a/78633633
Setup
git clone https://github.com/saten-private/imagenet-1k-image-folder-preprocessing.git
Procedure
train
- Create a
trainfolder under the repository. - Download
train_images_X.tar.gzfrom here. - Extract the images from
train_images_X.tar.gzinto thetrainfolder. - Run
python train_preprocessing.py. The process divides thetrainfolder into folders with class names and relocates them.
val
- Create a
valfolder under the repository. - Download
val_images.tar.gzfrom here. - Extract the images from
val_images.tar.gzinto thevalfolder. - Run
python val_preprocessing.py. The process divides thevalfolder into folders with class names and relocates them.