-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconvert.py
39 lines (36 loc) · 1007 Bytes
/
convert.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
convert_label_to_description = {
"c0": "safe driving",
"c1": "texting - right",
"c2": "talking on the phone - right",
"c3": "texting - left",
"c4": "talking on the phone - left",
"c5": "operating the radio",
"c6": "drinking",
"c7": "reaching behind",
"c8": "hair and makeup",
"c9": "talking to passenger"
}
convert_description_to_label = {
"safe driving": "c0",
"texting - right": "c1",
"talking on the phone - right": "c2",
"texting - left": "c3",
"talking on the phone - left": "c4",
"operating the radio": "c5",
"drinking": "c6",
"reaching behind": "c7",
"hair and makeup": "c8",
"talking to passenger": "c9"
}
convert_index_to_label = {
0: "safe driving",
1: "texting - right",
2: "talking on the phone - right",
3: "texting - left",
4: "talking on the phone - left",
5: "operating the radio",
6: "drinking",
7: "reaching behind",
8: "hair and makeup",
9: "talking to passenger"
}