Skip to content
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

LEditsPP - examples, check height/width, add tiling/slicing #10471

Merged
merged 2 commits into from
Jan 6, 2025

Conversation

hlky
Copy link
Collaborator

@hlky hlky commented Jan 6, 2025

What does this PR do?

  • Updates examples to use variant="fp16", load_image from diffusers.utils, enable vae tiling, resize the image to 512x512 and 1024x1024 for XL
  • Add indexing="ij" to torch.meshgrid to fix the warning
  • Add enable_vae_slicing, disable_vae_slicing, enable_vae_tiling, disable_vae_tiling
  • Check the input height/width parameters and the image's height/width are a multiple of 32.

LEditsPPPipelineStableDiffusion

Original LEditsPP
cherry_blossom cherry_blossom

LEditsPPPipelineStableDiffusionXL

Original LEditsPP
tennis tennis_ball_tomato

Fixes #10287

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.

@linoytsaban

@HuggingFaceDocBuilderDev

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.

Copy link
Collaborator

@linoytsaban linoytsaban left a comment

Choose a reason for hiding this comment

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

Thanks so much for this @hlky 🙌🏻🙌🏻

@yiyixuxu yiyixuxu merged commit 2f25156 into huggingface:main Jan 6, 2025
12 checks passed
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.

The example code in the Hugging Face documentation has an issue.
4 participants