This repository contains the mapping from integer id's to actual label names (in HuggingFace Transformers typically called id2label) for several datasets.
Current datasets include:
ImageNet-1k
ImageNet-22k (also called ImageNet-21k as there are 21,843 classes)
COCO detection 2017
COCO panoptic 2017
ADE20k (actually, the MIT Scene Parsing benchmark, which is a subset of ADE20k)
Cityscapes
VQAv2
Kinetics-700
RVL-CDIP
PASCAL VOC
Kinetics-400
...
You can read in a label file as follows (using… See the full description on the dataset page:
https://huggingface.co/datasets/huggingface/label-files.