Skip to content

Conversation

@patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Dec 10, 2022

This PR removes the offset as it's never used actually.

init_timestep = min(init_timestep, num_inference_steps)
init_timestep = min(int(num_inference_steps * strength), num_inference_steps)

t_start = max(num_inference_steps - init_timestep + offset, 0)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

offset is never really used as it cancels itself out

@patrickvonplaten patrickvonplaten changed the title remove unnecessary offset in img2img Remove unnecessary offset in img2img Dec 10, 2022
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Dec 10, 2022

The documentation is not available anymore as the PR was closed or merged.

@patrickvonplaten patrickvonplaten merged commit fc94c60 into main Dec 10, 2022
@patrickvonplaten patrickvonplaten deleted the remove_offset_from_img2img branch December 10, 2022 18:26
tcapelle pushed a commit to tcapelle/diffusers that referenced this pull request Dec 12, 2022
remove unnecessary offset in img2img
sliard pushed a commit to sliard/diffusers that referenced this pull request Dec 21, 2022
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
remove unnecessary offset in img2img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants