Skip to content

Commit

Permalink
HOTFIX: MaskingHelper throws error on "no detection"
Browse files Browse the repository at this point in the history
Issue #301
  • Loading branch information
Gourieff committed May 7, 2024
1 parent 1dc335c commit 272928f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,8 @@ def execute(self, image, swapped_image, bbox_model_name, bbox_threshold, bbox_di
target_height = max_y - min_y + 1

result = image_base.detach().clone()
face_segment = mask_image_final

for i in range(0, MB):
if is_empty[i]:
continue
Expand Down

0 comments on commit 272928f

Please sign in to comment.