Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autopipeline.md #10586

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

noelmateng
Copy link

Fixed incorrect reference to pipeline. The correct reference should be pipe_img2img.

What does this PR do?

Fix variable name inconsistency in Image-to-Image tutorial

In the Image-to-Image pipeline tutorial, there was a variable name mismatch that could cause confusion for users. The code was using pipeline instead of the previously defined pipe_img2img variable.

Changed:

  • image = pipeline(prompt, image=init_image, generator=generator).images[0]

To:

  • image = pipe_img2img(prompt, image=init_image, generator=generator).images[0]

This change ensures consistency with the pipeline initialization on the previous line:
pipe_img2img = AutoPipelineForImage2Image.from_pipe(pipe_txt2img).to("cuda")

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

Fixed incorrect reference to `pipeline`. The correct reference should be `pipe_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.

1 participant