mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Update txt2mask.py
This commit is contained in:
parent
bbf4c03e50
commit
3e7a459990
@ -54,7 +54,7 @@ class SegmentedGrayscale(object):
|
|||||||
transparent_image = self.image.copy()
|
transparent_image = self.image.copy()
|
||||||
# For img2img, we want the selected regions to be transparent,
|
# For img2img, we want the selected regions to be transparent,
|
||||||
# but to_grayscale() returns the opposite. Thus invert.
|
# but to_grayscale() returns the opposite. Thus invert.
|
||||||
gs = self.to_grayscale(invert)
|
gs = self.to_grayscale(not invert)
|
||||||
transparent_image.putalpha(gs)
|
transparent_image.putalpha(gs)
|
||||||
return transparent_image
|
return transparent_image
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user