andro-flock commited on
Commit
36380f6
·
verified ·
1 Parent(s): c9861e0

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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][2] #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
 
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