patrickligardes commited on
Commit
5a19f35
β€’
1 Parent(s): eb3df1e

Update utils_mask.py

Browse files
Files changed (1) hide show
  1. utils_mask.py +1 -1
utils_mask.py CHANGED
@@ -87,7 +87,7 @@ def get_mask_location(model_type, category, model_parse: Image.Image, keypoint:
87
  # Dilate the leg parts to fill gaps
88
  parse_mask_legs = (parse_array == label_map["left_leg"]).astype(np.float32) + \
89
  (parse_array == label_map["right_leg"]).astype(np.float32)
90
- parse_mask_legs_dilated = cv2.dilate(parse_mask_legs.astype(np.uint8), np.ones((5, 5), np.uint8), iterations=6)
91
 
92
  # Combine upper body and dilated lower body masks
93
  parse_mask_lower = np.maximum(parse_mask_lower, parse_mask_legs_dilated)
 
87
  # Dilate the leg parts to fill gaps
88
  parse_mask_legs = (parse_array == label_map["left_leg"]).astype(np.float32) + \
89
  (parse_array == label_map["right_leg"]).astype(np.float32)
90
+ parse_mask_legs_dilated = cv2.dilate(parse_mask_legs.astype(np.uint8), np.ones((6, 6), np.uint8), iterations=6)
91
 
92
  # Combine upper body and dilated lower body masks
93
  parse_mask_lower = np.maximum(parse_mask_lower, parse_mask_legs_dilated)