v2.5.0
Datasets ⭐
EXAMPLE CODE
Tiny ImageNet Dataset
Load Tiny ImageNet with one line of code. Stream the Tiny ImageNet dataset while training ML models. Visualize the classification dataset of 100K images.
Visualization of the TinyimageNet dataset on the Activeloop Platform

Tiny ImageNet dataset

What is Tiny ImageNet Dataset?

In Tiny ImageNet, there are 100,000 images divided up into 200 classes. Every image in the dataset is downsized to a 64×64 colored image. For every class, there are 500 training images, 50 validating images and 50 test images.

Download Tiny ImageNet Dataset in Python

Instead of downloading the TinyImageNet dataset in Python, you can effortlessly load it in Python via our open-source package Hub with just one line of code.

Load Tiny ImageNet Dataset Training Subset in Python

1
import hub
2
ds = hub.load("hub://activeloop/tiny-imagenet-train")
Copied!

Load Tiny ImageNet Dataset Testing Subset in Python

1
import hub
2
ds = hub.load("hub://activeloop/tiny-imagenet-test")
Copied!

Load Tiny ImageNet Dataset Validation Subset in Python

1
import hub
2
ds = hub.load("hub://activeloop/tiny-imagenet-validation")
Copied!

Tiny ImageNet Dataset Structure

Tiny ImageNetData Fields

  • images: tensor containing the image.
  • labels: tensor to identify object in the image
  • boxes: tensor to identify the object using bounding boxes.

Tiny ImageNet Data Splits

How to use Tiny ImageNet Dataset with PyTorch and TensorFlow in Python

Train a model on Tiny ImageNet dataset with PyTorch in Python

Let's use Hub's built-in PyTorch one-line dataloader to connect the data to the compute:
1
dataloader = ds.pytorch(num_workers=0, batch_size=4, shuffle=False)
Copied!

Train a model on Tiny ImageNet dataset with TensorFlow in Python

1
dataloader = ds.tensorflow()
Copied!

Additional Information about Tiny ImageNet Dataset

Tiny ImageNet Dataset Description

Tiny ImageNet Dataset Curators

Ya Le and Xuan S. Yang

Tiny ImageNet Dataset Licensing Information

Hub 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!

Tiny ImageNet Dataset Citation Information

1
@inproceedings{Le2015TinyIV,
2
title={Tiny ImageNet Visual Recognition Challenge},
3
author={Ya Le and Xuan S. Yang},
4
year={2015}
5
}
Copied!

Tiny ImageNet Dataset FAQs

What is the Tiny ImageNet dataset for Python?

The Tiny ImageNet dataset is a visual database often used in visual object recognition software research. The Tiny ImageNet dataset is a modified subset of the original ImageNet dataset. The Tiny ImageNet dataset has 800 fewer classes than the ImageNet dataset, with 100,000 training examples and 10,000 validation examples.

How can I use Tiny ImageNet dataset in PyTorch or TensorFlow?

You can stream the Tiny ImageNet dataset while training a model in PyTorch or TensorFlow with one line of code using the open-source package Activeloop Hub in Python. See detailed instructions on how to train a model on tinyimagenet dataset with PyTorch in Python or train a model on tinyimagenet dataset with TensorFlow in Python.