-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Saving Image Locally #6310
Saving Image Locally #6310
Conversation
…standing other developers what are doing and where it's using.
This changes suggest by maintener. Co-authored-by: Sayak Paul <[email protected]>
Add suggested text Co-authored-by: Sayak Paul <[email protected]>
I changed the Parameter to Args text.
proper indentation set in this file.
a little bit of change in the act_fun argument line.
Doc string
similar doc-string add to have in the original diffusion repository.
…t images directly to your computer, so you can cherish them forever!
We don't need this parameter as saving an image is just a one-liner. |
But it's usefull to save generated output locally.
|
And also it's small line of code. |
That is exactly the point. prompt = "a photo of an astronaut riding a horse on mars"
image = pipe(prompt).images[0]
image.save("name.jpeg") Does the job. Then when Plus there are other output formats we support too, such as "np", "pt", etc. So, its on the users how they wanna save it. |
Strongly agree with @sayakpaul here. Let's try to not bloat the pipelines too much |
I've expanded the Stable Diffusion pipeline's capabilities by introducing a new parameter that empowers you to preserve generated output locally, precisely where you wish.
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.