v2.5.0
Datasets ⭐
EXAMPLE CODE
Food 101 Dataset
Load Food 101 with one line of code. Stream Food 101 while training models in PyTorch & TensorFlow. Food 101 includes over 101 food classifications.
Visualization of the Food 101 dataset on the Activeloop Platform

Food 101 Dataset dataset

What is Food 101 Dataset Dataset?

Food 101 dataset comprises of 101 food classifications, with 101,000 pictures. For each class, 250 physically assessed test pictures are given as well as 750 preparation pictures. The labels for the test images have been manually cleaned, while the training set contains some intentional noise.

Download Food 101 Dataset Dataset in Python

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

Load Food 101 Dataset Dataset Training Subset in Python

1
import hub
2
ds = hub.load('hub://activeloop/food-101-dataset-train')
Copied!

Food 101 Dataset Dataset Structure

Food 101 Data Fields

  • images: tensor containing the various food image.
  • labels: tensor contains different categories of foods.
  • classes: tensor to various classes of food.

Food 101 Data Splits

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

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

1
dataloader = ds.tensorflow()
Copied!

Additional Information about Food 101 Dataset

Food 101 Dataset Description

Food 101 Dataset Curators

Bossard, Lukas and Guillaumin, Matthieu and Van Gool, Luc

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

Food 101 Dataset Citation Information

1
@inproceedings{bossard14,
2
title = {Food-101 -- Mining Discriminative Components with Random Forests},
3
author = {Bossard, Lukas and Guillaumin, Matthieu and Van Gool, Luc},
4
booktitle = {European Conference on Computer Vision},
5
year = {2014}
6
}
Copied!

Food 101 Dataset FAQs

What is the Food 101 dataset for Python?

The Food 101 dataset has 101 food classifications, with 101,000 pictures. The labels for the test images have been manually cleaned, while the training set images have intentional noise.
How to download the Food 101 dataset in Python?
You can load Food 101 dataset fast with one line of code using the open-source package Activeloop Hub in Python. See detailed instructions on how to load Food 101 dataset training subset in Python.

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

You can stream Food 101 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 Food 101 dataset with PyTorch in Python or train a model on Food 101 dataset with TensorFlow in Python.