andro-flock commited on
Commit
b535d9f
·
verified ·
1 Parent(s): fdb72e1

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. pose.py +11 -9
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, 3): 'lightgreen', # Left Eye to Left Ear
18
- (2, 4): 'lightgreen', # Right Eye to Right Ear
19
- (0, 5): 'lightblue', # Nose to Left Shoulder
20
- (0, 6): 'lightblue', # Nose to Right Shoulder
 
 
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
- (11, 13): 'purple', # Left Hip to Left Knee
28
- (13, 15): 'purple', # Left Knee to Left Ankle
29
- (12, 14): 'purple', # Right Hip to Right Knee
30
- (14, 16): 'purple', # Right Knee to Right Ankle
31
- (11, 12): 'orange' # Left Hip to Right Hip
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