Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Dec 8, 2023
1 parent a4ec54a commit 97015b6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions comfy/samplers.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,7 @@ def forward(self, x, sigma, uncond, cond, cond_scale, denoise_mask, model_option
x = x * denoise_mask + (self.latent_image + self.noise * sigma.reshape([sigma.shape[0]] + [1] * (len(self.noise.shape) - 1))) * latent_mask
out = self.inner_model(x, sigma, cond=cond, uncond=uncond, cond_scale=cond_scale, model_options=model_options, seed=seed)
if denoise_mask is not None:
out *= denoise_mask

if denoise_mask is not None:
out += self.latent_image * latent_mask
out = out * denoise_mask + self.latent_image * latent_mask
return out

def simple_scheduler(model, steps):
Expand Down

0 comments on commit 97015b6

Please sign in to comment.