Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def predict(img):
|
|
59 |
keypoints = person['keypoints']
|
60 |
|
61 |
# draw lines between keypoints to form a skeleton
|
62 |
-
skeleton = [(0,1), (1,2), (2,3), (3,4), (1,5), (5,6), (6,7), (1,8), (8,9), (9,10), (10,11), (8,12), (12,13), (13,14), (0,15), (15,
|
63 |
for i, j in skeleton:
|
64 |
if keypoints[i][2] < 0.1 or keypoints[j][2] < 0.1:
|
65 |
continue
|
|
|
59 |
keypoints = person['keypoints']
|
60 |
|
61 |
# draw lines between keypoints to form a skeleton
|
62 |
+
skeleton = [(0,1), (1,2), (2,3), (3,4), (1,5), (5,6), (6,7), (1,8), (8,9), (9,10), (10,11), (8,12), (12,13), (13,14), (0,15), (15,16)]
|
63 |
for i, j in skeleton:
|
64 |
if keypoints[i][2] < 0.1 or keypoints[j][2] < 0.1:
|
65 |
continue
|