Skip to content

Commit

Permalink
feature: update refiners
Browse files Browse the repository at this point in the history
better handles img2img (partial diffusion runs)
  • Loading branch information
brycedrennan committed Jan 20, 2024
1 parent 68795c0 commit 6691967
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imaginairy/api/generate_refiners.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def latent_logger(latents):

if init_latent is not None:
noise_step = noise_step if noise_step is not None else first_step
if first_step >= len(sd.steps):
if first_step >= len(sd.scheduler.all_steps):
noised_latent = init_latent
else:
noised_latent = sd.scheduler.add_noise(
Expand Down
Binary file modified tests/expected_output/test_large_image_.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6691967

Please sign in to comment.