-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Updated lora inference instructions #6913
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
Conversation
examples/dreambooth/README.md
Outdated
| import os | ||
| from diffusers import StableDiffusionPipeline | ||
| pipe = StableDiffusionPipeline.from_pretrained(os.environ["MODEL_NAME"]).to("cuda") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not change these things please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can remove os, but I think it's better to switch it to StableDiffusionPipeline
It's a sd pipeline after all. And you don't need this wizardry with DPMSolverMultistepScheduler
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's okay to use DiffusionPipeline here since it's more generic. I am not sure how that is related to any wizardry.
sayakpaul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Left some comments.
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Co-authored-by: Sayak Paul <[email protected]>
|
@sayakpaul let me know if you want to keep it a Diffusion pipeline instead of StableDiffusion |
examples/dreambooth/README.md
Outdated
| pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config) | ||
| pipe.to("cuda") | ||
| from diffusers import StableDiffusionPipeline | ||
| pipe = StableDiffusionPipeline.from_pretrained("base-model-name").to("cuda") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| pipe = StableDiffusionPipeline.from_pretrained("base-model-name").to("cuda") | |
| pipe = DiffusionPipeline.from_pretrained("base-model-name").to("cuda") |
sayakpaul
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Single suggestion. After that we can merge.
|
Will merge once the CI is green. |
What does this PR do?
Fixes #6906
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
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.
@sayakpaul