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.
Download tar files for train and val set for imagenet. If using wget in terminal:
wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_img_train.tar --no-check-certificate
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With