Fix create gradient mask node output

This commit is contained in:
Sergey Borisov 2024-07-23 23:29:28 +03:00
parent 87eb018380
commit 9d1fcba415

View File

@ -93,6 +93,7 @@ class CreateGradientMaskInvocation(BaseInvocation):
# redistribute blur so that the original edges are 0 and blur outwards to 1 # 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.5) * 2
blur_tensor[blur_tensor < 0] = 0.0
threshold = 1 - self.minimum_denoise threshold = 1 - self.minimum_denoise