Skip to content

Commit

Permalink
bugfix for schedule (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
daanelson authored Dec 21, 2024
1 parent 7807dd3 commit 2610fcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,8 @@ def bf16_predict(
)
timesteps = get_schedule(
num_inference_steps,
x.shape[1],
# equivalent to inp["img"].shape[1], needs to be here for prompt strength in img2img
(x.shape[-1] * x.shape[-2]) // 4,
shift=self.shift,
)

Expand Down

0 comments on commit 2610fcc

Please sign in to comment.