Skip to content

Commit

Permalink
Hotswap: Handle noise==None
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasjansson committed Nov 27, 2024
1 parent a75571d commit 19c4ebc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flux/sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ def denoise(
compile_run,
image_latents,
mask,
noise[i]
None if noise is None else noise[i]
)
compile_run = False
output_imgs.append(denoised_img)

return torch.cat(output_imgs), model

def unpack(x: Tensor, height: int, width: int) -> Tensor:
Expand Down

0 comments on commit 19c4ebc

Please sign in to comment.