From 4e2cc78e5241f15f7550eab08d62720252f3397b Mon Sep 17 00:00:00 2001 From: deggua <26562606+deggua@users.noreply.github.com> Date: Fri, 2 Sep 2022 07:41:10 -0400 Subject: [PATCH] Removed unnecessary condition check for masking --- webui.py | 1 - 1 file changed, 1 deletion(-) diff --git a/webui.py b/webui.py index 2c15be2f2..c1af452f8 100644 --- a/webui.py +++ b/webui.py @@ -1573,7 +1573,6 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing): self.mask = torch.asarray(1.0 - latmask).to(device).type(sd_model.dtype) self.nmask = torch.asarray(latmask).to(device).type(sd_model.dtype) - if self.mask is not None: if self.inpainting_fill == 2: self.init_latent = self.init_latent * self.mask + create_random_tensors(self.init_latent.shape[1:], [self.seed + x + 1 for x in range(self.init_latent.shape[0])]) * self.nmask elif self.inpainting_fill == 3: