Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def prepare_image(img_path):
|
|
17 |
heatmap_n_pose = draw_pose(heatmap_pil,body_keypoints,0.5) #PIL.Image
|
18 |
|
19 |
# area in bounding_box below head (rectangular)
|
20 |
-
face_y1, face_h = face_bboxes[0][1], face_bboxes[0][
|
21 |
face_y2 = face_y1 + face_h
|
22 |
body_box = body_bboxes.cpu().numpy().xyxy[0]
|
23 |
body_box[1] = face_y2 #shift below head
|
|
|
17 |
heatmap_n_pose = draw_pose(heatmap_pil,body_keypoints,0.5) #PIL.Image
|
18 |
|
19 |
# area in bounding_box below head (rectangular)
|
20 |
+
face_y1, face_h = face_bboxes[0][1], face_bboxes[0][3] #xywh of first face
|
21 |
face_y2 = face_y1 + face_h
|
22 |
body_box = body_bboxes.cpu().numpy().xyxy[0]
|
23 |
body_box[1] = face_y2 #shift below head
|