Machine Learning Datasets Machine Learning Datasets
  • GitHub
  • Slack
  • Documentation
Get Started
Machine Learning Datasets Machine Learning Datasets
Get Started
Machine Learning Datasets
  • GitHub
  • Slack
  • Documentation

Docy

Machine Learning Datasets

  • Folder icon closed Folder open iconDatasets
    • MNIST
    • ImageNet Dataset
    • COCO Dataset
    • CIFAR 10 Dataset
    • CIFAR 100 Dataset
    • FFHQ Dataset
    • Places205 Dataset
    • GTZAN Genre Dataset
    • GTZAN Music Speech Dataset
    • The Street View House Numbers (SVHN) Dataset
    • Caltech 101 Dataset
    • LibriSpeech Dataset
    • dSprites Dataset
    • PUCPR Dataset
    • RAVDESS Dataset
    • GTSRB Dataset
    • CSSD Dataset
    • ATIS Dataset
    • Free Spoken Digit Dataset (FSDD)
    • not-MNIST Dataset
    • ECSSD Dataset
    • COCO-Text Dataset
    • CoQA Dataset
    • FGNET Dataset
    • ESC-50 Dataset
    • GlaS Dataset
    • UTZappos50k Dataset
    • Pascal VOC 2012 Dataset
    • Pascal VOC 2007 Dataset
    • Omniglot Dataset
    • HMDB51 Dataset
    • Chest X-Ray Image Dataset
    • NIH Chest X-ray Dataset
    • Fashionpedia Dataset
    • DRIVE Dataset
    • Kaggle Cats & Dogs Dataset
    • Lincolnbeet Dataset
    • Sentiment-140 Dataset
    • MURA Dataset
    • LIAR Dataset
    • Stanford Cars Dataset
    • SWAG Dataset
    • HASYv2 Dataset
    • WFLW Dataset
    • Visdrone Dataset
    • 11k Hands Dataset
    • QuAC Dataset
    • LFW Deep Funneled Dataset
    • LFW Funneled Dataset
    • Office-Home Dataset
    • LFW Dataset
    • PlantVillage Dataset
    • Optical Handwritten Digits Dataset
    • UCI Seeds Dataset
    • STN-PLAD Dataset
    • FER2013 Dataset
    • Adience Dataset
    • PPM-100 Dataset
    • CelebA Dataset
    • Fashion MNIST Dataset
    • Google Objectron Dataset
    • CARPK Dataset
    • CACD Dataset
    • Flickr30k Dataset
    • Kuzushiji-Kanji (KKanji) dataset
    • KMNIST
    • EMNIST Dataset
    • USPS Dataset
    • MARS Dataset
    • HICO Classification Dataset
    • NSynth Dataset
    • RESIDE dataset
    • Electricity Dataset
    • DRD Dataset
    • Caltech 256 Dataset
    • AFW Dataset
    • PACS Dataset
    • TIMIT Dataset
    • KTH Actions Dataset
    • WIDER Face Dataset
    • WISDOM Dataset
    • DAISEE Dataset
    • WIDER Dataset
    • LSP Dataset
    • UCF Sports Action Dataset
    • Wiki Art Dataset
    • FIGRIM Dataset
    • ANIMAL (ANIMAL10N) Dataset
    • OPA Dataset
    • DomainNet Dataset
    • HAM10000 Dataset
    • Tiny ImageNet Dataset
    • Speech Commands Dataset
    • 300w Dataset
    • Food 101 Dataset
    • VCTK Dataset
    • LOL Dataset
    • AQUA Dataset
    • LFPW Dataset
    • ARID Video Action dataset
    • NABirds Dataset
    • SQuAD Dataset
    • ICDAR 2013 Dataset
    • Animal Pose Dataset
  • Folder icon closed Folder open iconDeep Lake Docs Home
  • Folder icon closed Folder open iconDataset Visualization
  • API Basics
  • Storage & Credentials
  • Getting Started
  • Tutorials (w Colab)
  • Playbooks
  • Data Layout
  • Folder icon closed Folder open iconShuffling in ds.pytorch()
  • Folder icon closed Folder open iconStorage Synchronization
  • Folder icon closed Folder open iconTensor Relationships
  • Folder icon closed Folder open iconQuickstart
  • Folder icon closed Folder open iconHow to Contribute

ImageNet Dataset

Estimated reading: 5 minutes

Visualization of the ImageNet Dataset in the Deep Lake UI

ImageNet dataset

What is ImageNet Dataset?

The ImageNet dataset contains over a million images with labels and bounding boxes. The dataset was created based on the Wordnet hierarchy. Every important concept in WordNet is called a “synonym set” or “synset”. The majority of synsets in ImageNet are nouns (80,000+) and there are more than 100,000 synsets in total. Each image in the dataset is annotated by humans and is quality controlled. ImageNet is one of the most benchmarked datasets in the history of computer vision.

Download ImageNet Dataset in Python

Instead of downloading the ImageNet dataset in Python, you can effortlessly load it in Python via our Deep Lake open source with just one line of code.

Load ImageNet Dataset Training Subset in Python

				
					import deeplake
ds = deeplake.load("hub://activeloop/imagenet-train")
				
			

Load ImageNet Dataset Validation Subset in Python

				
					import deeplake
ds = deeplake.load("hub://activeloop/imagenet-val")
				
			

Load ImageNet Dataset Testing Subset in Python

				
					import deeplake
ds = deeplake.load("hub://activeloop/imagenet-test")
				
			

ImageNet Dataset Structure

ImageNet Data Fields
  • images: tensor containing the images of the dataset.
  • labels: tensor containing the labels of the dataset.
  • boxes: tensor containing bounding boxes of the respective image.
ImageNet Data Splits
  • The ImageNet dataset training set comprises 1,281,167 images with 1000 object classes.
  • The ImageNet dataset validation set comprises 50,000 images with 1000 object classes.
  • The ImageNet dataset testing set comprised 100,000 images with 1000 object classes.

How to use ImageNet Dataset with PyTorch and TensorFlow in Python

Train a model on ImageNet dataset with PyTorch in Python

Let’s use Deep Lake built-in PyTorch one-line dataloader to connect the data to the compute:

				
					tform = transforms.Compose([
    transforms.ToPILImage(), # Must convert to PIL image for subsequent operations to run
    transforms.RandomRotation(20), # Image augmentation
    transforms.ToTensor(), # Must convert to pytorch tensor for subsequent operations to run
    transforms.Lambda(lambda x: x.repeat(int(3/x.shape[0]), 1, 1)), # Some images are grayscale, so we need to add channels
    transforms.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225]),
])


dataloader = ds.pytorch(num_workers=0, batch_size=4, transform = {'images': tform, 'labels': None}, shuffle = True)
				
			
Train a model on ImageNet dataset with TensorFlow in Python
				
					dataloader = ds.tensorflow()
				
			

Additional Information about ImageNet Dataset

ImageNet Dataset Description

  • Homepage:https://www.image-net.org/about.php
  • Paper: https://arxiv.org/pdf/1409.0575)
ImageNet Dataset Licensing Information
Deep Lake users may have access to a variety of publicly available datasets. We do not host or distribute these datasets, vouch for their quality or fairness, or claim that you have a license to use the datasets. It is your responsibility to determine whether you have permission to use the datasets under their license.
 
If you’re a dataset owner and do not want your dataset to be included in this library, please get in touch through a GitHub issue. Thank you for your contribution to the ML community!

Note: Deep Lake users will be prompted to sign ImageNet Terms of Access when trying to load the dataset.

ImageNet Dataset Citation Information
				
					@article{russakovsky2015imagenet,
  title={Imagenet large scale visual recognition challenge},
  author={Russakovsky, Olga and Deng, Jia and Su, Hao and Krause, Jonathan and Satheesh, Sanjeev and Ma, Sean and Huang, Zhiheng and Karpathy, Andrej and Khosla, Aditya and Bernstein, Michael and others},
  journal={International journal of computer vision},
  volume={115},
  number={3},
  pages={211--252},
  year={2015},
  publisher={Springer}
}
				
			

ImageNet Dataset FAQs

What is the ImageNet dataset for Python?

The ImageNet dataset played a large part in advancing deep learning and computer vision research. This dataset is an image database organized according to the WordNet hierarchy. In this hierarchy, each node is represented by thousands of images.

What is the ImageNet dataset used for?
The ImageNet dataset is a large dataset of annotated pictures. The objective of making the dataset was to create a resource to encourage the research and development of better methods for computer vision. This dataset is often used for computer vision research.
 
How to download the ImageNet dataset in Python?

The ImageNet dataset can quickly be loaded using the open-source package Active loop Deep Lake in Python with just one line of code. See detailed instructions on how to load the ImageNet dataset training subset, the ImageNet dataset validation subset, and the ImageNet dataset testing subset in Python.

How can I use ImageNet dataset in PyTorch or TensorFlow?

You are able to stream the ImageNet dataset while training a model in TensorFlow or PyTorch with a single line of code using the Activeloop Deep Lake open-source package in Python. See detailed instructions on how to train a model on the ImageNet dataset with PyTorch in Python or train a model on the ImageNet dataset with TensorFlow in Python.

Should I work with ImageNet dataset in CSV?

No. Especially for machine learning workflows, CSV is not optimized for working with image data. Instead of downloading the ImageNet dataset, you can easily load, version-control, query, and manipulate ImageNet for machine learning purposes using Active loop Deep Lake.

How to create an Image Dataset like ImageNet dataset?

Making image datasets like ImageNet is simple with Active loop Deep Lake. Simple datasets like ImageNet can be created automatically by allowing Deep Lake to parse the legacy files into Deep Lake dataset format. More complex datasets can be created manually.

Datasets - Previous COCO Dataset Next - Datasets CIFAR 10 Dataset
Leaf Illustration

© 2022 All Rights Reserved by Snark AI, inc dba Activeloop