-
Notifications
You must be signed in to change notification settings - Fork 2
/
constants.py
66 lines (64 loc) · 1.12 KB
/
constants.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
CLASSES = [
"finger-1",
"finger-2",
"finger-3",
"finger-4",
"finger-5",
"finger-6",
"finger-7",
"finger-8",
"finger-9",
"finger-10",
"finger-11",
"finger-12",
"finger-13",
"finger-14",
"finger-15",
"finger-16",
"finger-17",
"finger-18",
"finger-19",
"Trapezium",
"Trapezoid",
"Capitate",
"Hamate",
"Scaphoid",
"Lunate",
"Triquetrum",
"Pisiform",
"Radius",
"Ulna",
]
CLASS2IND = {v: i for i, v in enumerate(CLASSES)}
IND2CLASS = {v: k for k, v in CLASS2IND.items()}
PALETTE = [
(220, 20, 60),
(119, 11, 32),
(0, 0, 142),
(0, 0, 230),
(106, 0, 228),
(0, 60, 100),
(0, 80, 100),
(0, 0, 70),
(0, 0, 192),
(250, 170, 30),
(100, 170, 30),
(220, 220, 0),
(175, 116, 175),
(250, 0, 30),
(165, 42, 42),
(255, 77, 255),
(0, 226, 252),
(182, 182, 255),
(0, 82, 0),
(120, 166, 157),
(110, 76, 0),
(174, 57, 255),
(199, 100, 0),
(72, 0, 118),
(255, 179, 240),
(0, 125, 92),
(209, 0, 151),
(188, 208, 182),
(0, 220, 176),
]