-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapping.py
50 lines (48 loc) · 1.12 KB
/
mapping.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
CLASSES = {
'airplane', 'bathtub', 'bed', 'bench', 'bookshelf', 'bottle', 'bowl', 'car', 'chair', 'cone', 'cup', 'curtain', 'desk',
'door', 'dresser', 'flower_pot', 'glass_box', 'guitar', 'keyboard', 'lamp', 'laptop', 'mantel', 'monitor',
'night_stand', 'person', 'piano', 'plant', 'radio', 'range_hood', 'sink', 'sofa', 'stairs', 'stool', 'table', 'tent',
}
class2index = {
'airplane': 0,
'bathtub': 1,
'bed': 2,
'bench': 3,
'bookshelf': 4,
'bottle': 5,
'bowl': 6,
'car': 7,
'chair': 8,
'cone': 9,
'cup': 10,
'curtain': 11,
'desk': 12,
'door': 13,
'dresser': 14,
'flower_pot': 15,
'glass_box': 16,
'guitar': 17,
'keyboard': 18,
'lamp': 19,
'laptop': 20,
'mantel': 21,
'monitor': 22,
'night_stand': 23,
'person': 24,
'piano': 25,
'plant': 26,
'radio': 27,
'range_hood': 28,
'sink': 29,
'sofa': 30,
'stairs': 31,
'stool': 32,
'table': 33,
'tent': 34,
'toilet': 35,
'tv_stand': 36,
'vase': 37,
'wardrobe': 38,
'xbox': 39
}
index2class = {v: k for k, v in class2index.items()}