Skip to content

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

License

Notifications You must be signed in to change notification settings

saten-private/imagenet-1k-image-folder-preprocessing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

5 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

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

  1. Create a train folder under the repository.
  2. Download train_images_X.tar.gz from here.
  3. Extract the images from train_images_X.tar.gz into the train folder.
  4. Run python train_preprocessing.py. The process divides the train folder into folders with class names and relocates them.

val

  1. Create a val folder under the repository.
  2. Download val_images.tar.gz from here.
  3. Extract the images from val_images.tar.gz into the val folder.
  4. Run python val_preprocessing.py. The process divides the val folder into folders with class names and relocates them.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages