Skip to content

Commit f23e5ce

Browse files
committed
revert changed inpainting mask conditioning calculation after #12311
1 parent e56b7c8 commit f23e5ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/processing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ def init(self, all_prompts, all_seeds, all_subseeds):
14991499
elif self.inpainting_fill == 3:
15001500
self.init_latent = self.init_latent * self.mask
15011501

1502-
self.image_conditioning = self.img2img_image_conditioning(image, self.init_latent, image_mask)
1502+
self.image_conditioning = self.img2img_image_conditioning(image * 2 - 1, self.init_latent, image_mask)
15031503

15041504
def sample(self, conditioning, unconditional_conditioning, seeds, subseeds, subseed_strength, prompts):
15051505
x = self.rng.next()

0 commit comments

Comments
 (0)