[SDXL] Improve docs by patrickvonplaten · Pull Request #4196 · huggingface/diffusers (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation7 Commits7 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

patrickvonplaten

What does this PR do?

Adds missing docs for micro conditioning and corrects inpainting example for SD-XL

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.

@patrickvonplaten

stevhliu

Comment on lines 673 to 674

Part of SDXL's micro-conditioning as explained in section 2.2 of [https://huggingface.co/papers/2307.01952\](https://huggingface.co/papers/2307.01952).
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled. `original_size` defaults to `(width, height)` if not specified.

Choose a reason for hiding this comment

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

What do you think about shortening it to like the below so it's a bit shorter/easier to read (big ➕ for linking to hf.co/papers!), and I think it'd be clearer to lead with what the parameter does?

Part of SDXL's micro-conditioning as explained in section 2.2 of [https://huggingface.co/papers/2307.01952\](https://huggingface.co/papers/2307.01952).
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled. `original_size` defaults to `(width, height)` if not specified.
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled. `original_size` defaults to `(width, height)` if not specified (see [SDXL micro-conditioning](https://huggingface.co/papers/2307.01952) for more details).

Choose a reason for hiding this comment

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

Swapped the two sentences - would like to keep the "section 2.2" part so that people don't have to search the whole paper. Let me know what you think :-)

Choose a reason for hiding this comment

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

Nice, that works for me! 👍

@HuggingFaceDocBuilderDev

The documentation is not available anymore as the PR was closed or merged.

stevhliu

Choose a reason for hiding this comment

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

Awesome! 👍

@patrickvonplaten @stevhliu

Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com

@patrickvonplaten

orpatashnik pushed a commit to orpatashnik/diffusers that referenced this pull request

Aug 1, 2023

Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com


Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com

orpatashnik pushed a commit to orpatashnik/diffusers that referenced this pull request

Aug 1, 2023

Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com


Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com

orpatashnik pushed a commit to orpatashnik/diffusers that referenced this pull request

Aug 1, 2023

Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com


Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com

@kashif kashif deleted the improve_sd_xl_docs_again branch

September 11, 2023 19:07

yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request

Dec 25, 2023

@patrickvonplaten @stevhliu

Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com


Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com

AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request

Apr 26, 2024

@patrickvonplaten @stevhliu

Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com


Co-authored-by: Steven Liu 59462357+stevhliu@users.noreply.github.com