Skip to content

[Community Pipeline] DemoFusion: Democratising High-Resolution Image Generation With No $$$ #6022

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 7 commits into from
Dec 4, 2023

Conversation

RuoyiDu
Copy link
Contributor

@RuoyiDu RuoyiDu commented Dec 1, 2023

What does this PR do?

This PR is the official implementation of DemoFusion -- a tuning-free high-resolution generation framework that enables users to generate 2K, 3K, and even 4K images with the official SDXL model.

DemoFusion works in a progressive manner. The user only needs to enter the desired image size as if using the SDXL pipeline, and a series of generated results can be obtained -- from SDXL's original resolution to the target resolution.

The process doesn't require a lot of memory -- a RTX 3090 GPU is more than enough to handle images at 4k or higher resolutions. But it will take longer inference time.

output_example

Before submitting

Who can review?

@sayakpaul @yiyixuxu @pcuenca

@HuggingFaceDocBuilderDev

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


image_grid(images, save_path="./outputs/")
```
![output_example](https://github.com/PRIS-CV/DemoFusion/blob/main/output_example.png)
Copy link
Member

Choose a reason for hiding this comment

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

This one looks so good!

@sayakpaul
Copy link
Member

Let's make sure the code quality test passes. You can run make style && make quality.

@sayakpaul
Copy link
Member

Let me know once the PR is ready for another review.

@patrickvonplaten
Copy link
Contributor

Very cool!

@RuoyiDu
Copy link
Contributor Author

RuoyiDu commented Dec 4, 2023

Hi @sayakpaul, thanks for your help! I have passed the quality test. Can you give another review when you have time.

@sayakpaul sayakpaul merged commit c36f1c3 into huggingface:main Dec 4, 2023
@sayakpaul
Copy link
Member

Awesome work and implementation. Kudos!

@radames radames mentioned this pull request Dec 4, 2023
6 tasks
AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…Generation With No $$$ (huggingface#6022)

* Add files via upload

* Update README.md

* Update pipeline_demofusion_sdxl.py

* Update pipeline_demofusion_sdxl.py

* Update examples/community/README.md

Co-authored-by: Sayak Paul <[email protected]>

---------

Co-authored-by: Sayak Paul <[email protected]>
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