MCPcopy Create free account
hub / github.com/NVlabs/SPADE / id2label

Function id2label

util/coco.py:7–199  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

5
6
7def id2label(id):
8 if id == 182:
9 id = 0
10 else:
11 id = id + 1
12 labelmap = \
13 {0: 'unlabeled',
14 1: 'person',
15 2: 'bicycle',
16 3: 'car',
17 4: 'motorcycle',
18 5: 'airplane',
19 6: 'bus',
20 7: 'train',
21 8: 'truck',
22 9: 'boat',
23 10: 'traffic light',
24 11: 'fire hydrant',
25 12: 'street sign',
26 13: 'stop sign',
27 14: 'parking meter',
28 15: 'bench',
29 16: 'bird',
30 17: 'cat',
31 18: 'dog',
32 19: 'horse',
33 20: 'sheep',
34 21: 'cow',
35 22: 'elephant',
36 23: 'bear',
37 24: 'zebra',
38 25: 'giraffe',
39 26: 'hat',
40 27: 'backpack',
41 28: 'umbrella',
42 29: 'shoe',
43 30: 'eye glasses',
44 31: 'handbag',
45 32: 'tie',
46 33: 'suitcase',
47 34: 'frisbee',
48 35: 'skis',
49 36: 'snowboard',
50 37: 'sports ball',
51 38: 'kite',
52 39: 'baseball bat',
53 40: 'baseball glove',
54 41: 'skateboard',
55 42: 'surfboard',
56 43: 'tennis racket',
57 44: 'bottle',
58 45: 'plate',
59 46: 'wine glass',
60 47: 'cup',
61 48: 'fork',
62 49: 'knife',
63 50: 'spoon',
64 51: 'bowl',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected