Skip to content

Add image2image example script. #231

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

Merged
merged 12 commits into from
Aug 23, 2022
Merged

Add image2image example script. #231

merged 12 commits into from
Aug 23, 2022

Conversation

patil-suraj
Copy link
Contributor

@patil-suraj patil-suraj commented Aug 22, 2022

This PR adds an example script for image2image using stable diffusion.

This PR also re-organizes the examples folder, it now contains two sub-directories. One for inference and one for training.

@anton-l @patrickvonplaten Happy to hear any suggestions about this :)

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Member

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

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

I love this pipeline, just left a couple of nits. Also, should we rename inference/readme.md to inference/README.md for consistency with the training script?

Copy link
Member

@anton-l anton-l left a comment

Choose a reason for hiding this comment

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

Awesome pipeline, thank you @patil-suraj! Would be great to link it (or the pipeline examples in general) from the main README too 🚀

Comment on lines +26 to +27
- Training examples to show how to train the most popular diffusion models (see [examples/training](https://github.com/huggingface/diffusers/tree/main/examples/training)).
- Inference examples to show how to create custom pipelines for advanced tasks such as image2image, in-painting (see [examples/inference](https://github.com/huggingface/diffusers/tree/main/examples/inference))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@anton-l Linked the examples here.

Copy link
Member

Choose a reason for hiding this comment

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

Perfect!

@patil-suraj patil-suraj merged commit 4674fdf into main Aug 23, 2022
@patil-suraj patil-suraj deleted the img2img branch August 23, 2022 10:57
kashif pushed a commit to kashif/diffusers that referenced this pull request Aug 23, 2022
* boom boom

* reorganise examples

* add image2image in example inference

* add readme

* fix example

* update colab url

* Apply suggestions from code review

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>

* fix init_timestep

* update colab url

* update main readme

* rename readme

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
natolambert pushed a commit that referenced this pull request Sep 7, 2022
* boom boom

* reorganise examples

* add image2image in example inference

* add readme

* fix example

* update colab url

* Apply suggestions from code review

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>

* fix init_timestep

* update colab url

* update main readme

* rename readme

Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
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.

4 participants