Update txt2mask.py

This commit is contained in:
spezialspezial 2022-11-01 21:37:33 +01:00 committed by Lincoln Stein
parent bbf4c03e50
commit 3e7a459990

View File

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