From 3e7a459990407ad1679f38d4027c19d50a9d36e3 Mon Sep 17 00:00:00 2001 From: spezialspezial <75758219+spezialspezial@users.noreply.github.com> Date: Tue, 1 Nov 2022 21:37:33 +0100 Subject: [PATCH] Update txt2mask.py --- ldm/invoke/txt2mask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldm/invoke/txt2mask.py b/ldm/invoke/txt2mask.py index 76120ebeae..a5deec277a 100644 --- a/ldm/invoke/txt2mask.py +++ b/ldm/invoke/txt2mask.py @@ -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