Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files
pose.py
CHANGED
@@ -14,21 +14,23 @@ half = device=='cuda'
|
|
14 |
connection_color_map = {
|
15 |
(0, 1): 'lightgreen', # Nose to Left Eye
|
16 |
(0, 2): 'lightgreen', # Nose to Right Eye
|
17 |
-
(1,
|
18 |
-
(
|
19 |
-
(
|
20 |
-
(
|
|
|
|
|
21 |
(5, 7): 'blue', # Left Shoulder to Left Elbow
|
22 |
(7, 9): 'blue', # Left Elbow to Left Wrist
|
23 |
(6, 8): 'red', # Right Shoulder to Right Elbow
|
24 |
(8, 10): 'red', # Right Elbow to Right Wrist
|
25 |
(5, 11): 'purple', # Left Shoulder to Left Hip
|
26 |
(6, 12): 'purple', # Right Shoulder to Right Hip
|
27 |
-
(
|
28 |
-
(
|
29 |
-
(
|
30 |
-
(
|
31 |
-
(
|
32 |
}
|
33 |
|
34 |
|
|
|
14 |
connection_color_map = {
|
15 |
(0, 1): 'lightgreen', # Nose to Left Eye
|
16 |
(0, 2): 'lightgreen', # Nose to Right Eye
|
17 |
+
(1, 2): 'lightgreen', # Left Eye to Right Eye
|
18 |
+
(1, 3): 'magenta', # Left Eye to Left Ear
|
19 |
+
(2, 4): 'magenta', # Right Eye to Right Ear
|
20 |
+
(3, 5): 'lightblue', # Left Ear to Left Shoulder
|
21 |
+
(4, 6): 'lightblue', # Right Ear to Right Shoulder
|
22 |
+
(5, 6): 'purple', # Left Shoulder to Right Shoulder
|
23 |
(5, 7): 'blue', # Left Shoulder to Left Elbow
|
24 |
(7, 9): 'blue', # Left Elbow to Left Wrist
|
25 |
(6, 8): 'red', # Right Shoulder to Right Elbow
|
26 |
(8, 10): 'red', # Right Elbow to Right Wrist
|
27 |
(5, 11): 'purple', # Left Shoulder to Left Hip
|
28 |
(6, 12): 'purple', # Right Shoulder to Right Hip
|
29 |
+
(6, 12): 'purple', # Left Hip to Right Hip
|
30 |
+
(11, 13): 'orange', # Left Hip to Left Knee
|
31 |
+
(13, 15): 'orange', # Left Knee to Left Ankle
|
32 |
+
(12, 14): 'orange', # Right Hip to Right Knee
|
33 |
+
(14, 16): 'orange', # Right Knee to Right Ankle
|
34 |
}
|
35 |
|
36 |
|