Merge pull request #50 from deggua/automatic_master

Fix for fill latent zeros/noise in masking mode
This commit is contained in:
AUTOMATIC1111 2022-09-02 14:45:14 +03:00 committed by GitHub
commit b743ac0ecf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1578,7 +1578,6 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
elif self.inpainting_fill == 3: elif self.inpainting_fill == 3:
self.init_latent = self.init_latent * self.mask self.init_latent = self.init_latent * self.mask
def sample(self, x, conditioning, unconditional_conditioning): def sample(self, x, conditioning, unconditional_conditioning):
samples = self.sampler.sample_img2img(self, self.init_latent, x, conditioning, unconditional_conditioning) samples = self.sampler.sample_img2img(self, self.init_latent, x, conditioning, unconditional_conditioning)