Skip to content

Commit

Permalink
improve fallback mask
Browse files Browse the repository at this point in the history
  • Loading branch information
ototadana committed Jul 8, 2023
1 parent c558363 commit 2c4dd17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/inferencers/bisenet_mask_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def generate_mask(
mask = cv2.resize(mask, dsize=(w, h))

if MaskGenerator.calculate_mask_coverage(mask) < fallback_ratio:
mask = self.fallback_mask_generator.generate_mask(face_image, face_area_on_image, use_minimal_area)
mask = self.fallback_mask_generator.generate_mask(face_image, face_area_on_image, use_minimal_area=True)

return mask

Expand Down

0 comments on commit 2c4dd17

Please sign in to comment.