mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix create gradient mask node output
This commit is contained in:
parent
87eb018380
commit
9d1fcba415
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user