This dataset has 10 food categories, with 5,000 images. For each class, 125 manually reviewed test images are provided as well as 375 training images. All images were rescaled to have a maximum side length of 512 pixels.
This data set consists of 10 food categories, with 5,000 images. For each class, 125 manually reviewed test images are provided as well as 375 training images. On purpose, the training images were not cleaned, and thus still contain some amount of noise. This comes mostly in the form of intense colors and sometimes wrong labels. All images were rescaled to have a maximum side length of 512 pixels.
food-MNIST/
images/
<class_name>/
<image_id>.jpg
meta/
classes.txt
test.json
test.txt
train.json
train.txt
Returns:
It returns two tuples
Returns: dictionary of labels
Example
(x_train, y_train), (x_test, y_test) = food_mnist.load_data()
labels_dict = food_mnist.labels()
git clone https://github.com/srohit0/food_mnist.git
import mnist_food
...
...
(x_train, y_train), (x_test, y_test) = food_mnist.load_data()
labels_dict = food_mnist.labels()
Original paper on Food-101 – Mining Discriminative Components with Random Forests
This dataset was created out of necessity to train food-samples on smaller machine with under 8GB RAM. Source of this dataset is Food-101 dataset
Credit:
All images can be found in the “images” folder and are organized per class. All image ids are unique and correspond to the foodspotting.com review ids. Thus the original articles can retrieved trough http://www.foodspotting.com/reviews/