mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-18 01:11:20 -05:00
Update txt2mask.py
This commit is contained in:
committed by
Lincoln Stein
parent
bbf4c03e50
commit
3e7a459990
@@ -54,7 +54,7 @@ class SegmentedGrayscale(object):
|
||||
transparent_image = self.image.copy()
|
||||
# For img2img, we want the selected regions to be transparent,
|
||||
# but to_grayscale() returns the opposite. Thus invert.
|
||||
gs = self.to_grayscale(invert)
|
||||
gs = self.to_grayscale(not invert)
|
||||
transparent_image.putalpha(gs)
|
||||
return transparent_image
|
||||
|
||||
|
||||
Reference in New Issue
Block a user