Skip to content

Commit

Permalink
Don't round noise mask.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Jan 11, 2024
1 parent 10f2609 commit 977eda1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion comfy/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def prepare_noise(latent_image, seed, noise_inds=None):
def prepare_mask(noise_mask, shape, device):
"""ensures noise mask is of proper dimensions"""
noise_mask = torch.nn.functional.interpolate(noise_mask.reshape((-1, 1, noise_mask.shape[-2], noise_mask.shape[-1])), size=(shape[2], shape[3]), mode="bilinear")
noise_mask = noise_mask.round()
noise_mask = torch.cat([noise_mask] * shape[1], dim=1)
noise_mask = comfy.utils.repeat_to_batch_size(noise_mask, shape[0])
noise_mask = noise_mask.to(device)
Expand Down

0 comments on commit 977eda1

Please sign in to comment.