v2.5.0
Datasets ⭐
EXAMPLE CODE
Caltech 101 Dataset
Load Caltech 101 in Python fast. 101 categories of objects for recognition algorithms. Stream Caltech 101 while training models in PyTorch and TensorFlow.
Visualization of Caltech 101 Dataset on the Activeloop Platform

Caltech 101 Dataset

What is Caltech 101 Dataset?

The Caltech 101 dataset contains 101 categories of objects for recognition algorithms. Each category has about 40 to 800 images. The dataset contains 50 categories on average per category. The images in this dataset are roughly 300 x 200 pixels.

Downloading Caltech 101 Dataset in Python

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

Load Caltech 101 Dataset Subset in Python

1
import hub
2
ds = hub.load('hub://activeloop/caltech101')
Copied!

Caltech 101 Dataset Structure

Data Fields

  • images: tensor containing the image
  • labels: tensor containing labels of an corresponding image

How to use Caltech 101 Dataset with PyTorch and TensorFlow in Python

Train a model on Caltech 101 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 Caltech 101 dataset with TensorFlow in Python

1
dataloader = ds.tensorflow()
Copied!

Additional Information about STN-PLAD Dataset

Caltech 101 Dataset Description

Caltech 101 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!

Caltech 101 Dataset Citation Information

1
@inproceedings{fei2004learning,
2
title={Learning generative visual models from few training examples: An incremental bayesian approach tested on 101 object categories},
3
author={Fei-Fei, Li and Fergus, Rob and Perona, Pietro},
4
booktitle={2004 conference on computer vision and pattern recognition workshop},
5
pages={178--178},
6
year={2004},
7
organization={IEEE}
8
}
Copied!

Caltech 101 Dataset FAQs

What is the Caltech 101 dataset for Python?

The Caltech-101 dataset comprises of images of objects belonging to 101 classes, plus one background clutter class. Each image has a labelled with a single object. Each class contains roughly 40 to 800 images, totalling around 9k images. Images are of variable sizes, with typical edge lengths of 200-300 pixels.

What is the Caltech 101 dataset used for?

The Caltech 101 dataset is commonly used to train and test computer vision recognition and classification algorithms. Using the Caltech 101 dataset comes with several advantages over other similar datasets as almost all the images within each category are uniform in image size. Caltech 101 also contains detailed image annotations.

How to download the Caltech 101 dataset in Python?

You can load the Caltech 101 dataset quickly with one line of code using Activeloop Hub the open-source package made in Python. Check out detailed instructions on how to load the Caltech 101 dataset subset in Python.

How can I use Caltech 101 dataset in PyTorch or TensorFlow?

You can train a model on the Caltech 101 dataset with PyTorch in Python or train a model on Caltech 101 dataset with TensorFlow in Python. You can stream the Caltech 101 dataset while training a model in PyTorch or TensorFlow with one line of code using the open-source package Activeloop Hub in Python.