Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Valid URL for downloading Imagenet dataset?

does anyone know where I can find a valid URL where I can download the ImageNet dataset? The official webpage http://www.image-net.org/index states that the dataset is no longer publicly available.

like image 637
Danii Kilian Avatar asked Oct 15 '25 18:10

Danii Kilian


1 Answers

Download tar files for train and val set for imagenet. If using wget in terminal:

  1. wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_train.tar --no-check-certificate
  2. wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_val.tar --no-check-certificate

After you have two tar files, in the same directory, download official Pytorch example script and run it.

  • . ./extract_ILSVRC.sh

You will have a new folder called imagenet/ with proper folders hierarchy. It will be recognized by Pytorch ImageFolder dataloader as something like:

from torchvision import datasets

train_dataset = datasets.ImageFolder('imagenet/train', transform=transform)
val_dataset = datasets.ImageFolder('imagenet/val', transform=transform)
like image 158
Sushil Thapa Avatar answered Oct 19 '25 15:10

Sushil Thapa