nielsr HF staff Matthijs commited on
Commit
9852417
1 Parent(s): 91c2ebb

add PASCAL VOC labels (#1)

Browse files

- add PASCAL VOC labels (2b3b65f8c53f1722147cae068dc87fe98d607c32)
- also add to list in README (e2bf08d3990b41892f07669350ce76d0e95a3182)
- make json pretty (06f578b82d049d584335522058d6a66be3560bda)


Co-authored-by: Mathijs Hollemans <Matthijs@users.noreply.huggingface.co>

Files changed (2) hide show
  1. README.md +2 -1
  2. pascal-voc-id2label.json +23 -0
README.md CHANGED
@@ -9,6 +9,7 @@ Current datasets include:
9
  - VQAv2
10
  - Kinetics-700
11
  - RVL-CDIP
 
12
 
13
  You can read in a label file as follows (using the `huggingface_hub` library):
14
 
@@ -32,4 +33,4 @@ id2label = {0: 'cat', 1: 'dog'}
32
  with open('cats-and-dogs-id2label.json', 'w') as fp:
33
  json.dump(id2label, fp)
34
  ```
35
- You can then upload it to this repository (assuming you have write access).
 
9
  - VQAv2
10
  - Kinetics-700
11
  - RVL-CDIP
12
+ - PASCAL VOC
13
 
14
  You can read in a label file as follows (using the `huggingface_hub` library):
15
 
 
33
  with open('cats-and-dogs-id2label.json', 'w') as fp:
34
  json.dump(id2label, fp)
35
  ```
36
+ You can then upload it to this repository (assuming you have write access).
pascal-voc-id2label.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "0": "background",
3
+ "1": "aeroplane",
4
+ "2": "bicycle",
5
+ "3": "bird",
6
+ "4": "boat",
7
+ "5": "bottle",
8
+ "6": "bus",
9
+ "7": "car",
10
+ "8": "cat",
11
+ "9": "chair",
12
+ "10": "cow",
13
+ "11": "diningtable",
14
+ "12": "dog",
15
+ "13": "horse",
16
+ "14": "motorbike",
17
+ "15": "person",
18
+ "16": "pottedplant",
19
+ "17": "sheep",
20
+ "18": "sofa",
21
+ "19": "train",
22
+ "20": "tvmonitor"
23
+ }