Spaces:
Build error
Build error
parokshsaxena commited on
Commit ยท
6e68a36
1
Parent(s): 19ca9bb
fix
Browse files155 unmodified lines1561571581591591601611622 unmodified lines165166167168168169170171155 unmodified lines keypoints = openpose_model(human_img.resize((POSE_WIDTH, POSE_HEIGHT))) model_parse, _ = parsing_model(human_img.resize((POSE_WIDTH, POSE_HEIGHT))) mask, mask_gray = get_mask_location('hd', "upper_body", model_parse, keypoints) mask = mask.resize((WIDTH,HEIGHT)) mask = mask.resize((WIDTH, HEIGHT)) else: mask = pil_to_binary_mask(dict['layers'][0].convert("RGB").resize((WIDTH, HEIGHT))) # mask = transforms.ToTensor()(mask)2 unmodified lines mask_gray = to_pil_image((mask_gray+1.0)/2.0)
human_img_arg = _apply_exif_orientation(human_img.resize((WIDTH/2, HEIGHT/2))) human_img_arg = _apply_exif_orientation(human_img.resize((POSE_WIDTH,POSE_HEIGHT))) human_img_arg = convert_PIL_to_numpy(human_img_arg, format="BGR") app.py+2-2