Need help with GroceryStoreDataset?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

170 Stars 52 Forks MIT License 55 Commits 0 Opened issues


Grocery Store Dataset

Services available


Need anything else?

Contributors list

No Data

Grocery Store Dataset

This repository contains the dataset of natural images of grocery items. All natural images was taken with a smartphone camera in different grocery stores. We ended up with 5125 natural images from 81 different classes of fruits, vegetables, and carton items (e.g. juice, milk, yoghurt). The 81 classes are divided into 42 coarse-grained classes, where e.g. the fine-grained classes 'Royal Gala' and 'Granny Smith' belong to the same coarse-grained class 'Apple'. For each fine-grained class, we have downloaded an iconic image and a product description of the item, where some samples of these can be seen on this page below. The dataset was presented in the paper "A Hierarchical Grocery Store Image Dataset with Visual and Semantic Labels", which appeared at WACV 2019.

How to use the dataset

The files train.txt, val.txt and test.txt in the folder dataset includes the paths to the images in the training, validation and test set respectively. Each row in these two files consists of the path to an image and its fine-grained label followed by its coarse-grained label, where both labels are represented as integers.

The 81 fine-grained classes and their coarse-grained classes can be found in classes.csv in the folder dataset. The classes corresponding label (an integer) is also included in addition to the paths to their iconic image and the product description.

Feel free to download the dataset and apply it to your model. When time allows, I will upload code that is related to the paper above, such that the results in the paper can be reproduced.

Samples of natural images

Samples of iconic images

Samples of product descriptions

Granny Smith: Granny Smith is a green apple with white, firm pulp and a clear acidity in the flavor.

Red Bell Pepper: The red peppers are much sweeter than the green ones. It also contains more vitamins and antioxidants than the green. Peppers are good to eat raw in salads and as garnish, but are also good to fry, stew or gratinate, for example. with filling. Paprika also fits well in pots, gratins and pies.

Bravo Apple Juice: Ready to drink apple juice from concentrate. Fresh and sour taste. Fits the breakfast table, as quencher and meal drink.


  • 2019-11-07: Added validation set with 292 natural images from 59 classes.


If you use this dataset for your research, please cite our paper:

  title={A Hierarchical Grocery Store Image Dataset with Visual and Semantic Labels},
  author={Klasson, Marcus and Zhang, Cheng and Kjellstr{\"o}m, Hedvig},
  booktitle={IEEE Winter Conference on Applications of Computer Vision (WACV)},


This research was funded by Stiftelsen Promobilia in Stockholm, Sweden.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.