From 9d1fcba415d29c7f3d29c55a8f9ba1c5f9274193 Mon Sep 17 00:00:00 2001 From: Sergey Borisov Date: Tue, 23 Jul 2024 23:29:28 +0300 Subject: [PATCH] Fix create gradient mask node output --- invokeai/app/invocations/create_gradient_mask.py | 1 + 1 file changed, 1 insertion(+) diff --git a/invokeai/app/invocations/create_gradient_mask.py b/invokeai/app/invocations/create_gradient_mask.py index 089313463b..3b0afec197 100644 --- a/invokeai/app/invocations/create_gradient_mask.py +++ b/invokeai/app/invocations/create_gradient_mask.py @@ -93,6 +93,7 @@ class CreateGradientMaskInvocation(BaseInvocation): # redistribute blur so that the original edges are 0 and blur outwards to 1 blur_tensor = (blur_tensor - 0.5) * 2 + blur_tensor[blur_tensor < 0] = 0.0 threshold = 1 - self.minimum_denoise