Fix gradient mask values range

This commit is contained in:
Sergey Borisov 2024-07-26 19:28:00 +03:00
parent e1509bcb45
commit 78f6850fc0

View File

@ -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