From 272928fe84200c51c1607b2fcf56f925dcf722ef Mon Sep 17 00:00:00 2001 From: Art Gourieff <85128026+Gourieff@users.noreply.github.com> Date: Wed, 8 May 2024 02:14:03 +0700 Subject: [PATCH] HOTFIX: MaskingHelper throws error on "no detection" Issue #301 --- nodes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nodes.py b/nodes.py index a220865..5d194a5 100644 --- a/nodes.py +++ b/nodes.py @@ -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