Skip to content

support any input resolution in stable diffusion models #1087

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 2 commits into from
Dec 20, 2024

Conversation

eaidova
Copy link
Collaborator

@eaidova eaidova commented Dec 20, 2024

What does this PR do?

due to UNet architecture limitations, original stable diffusion pipeline implementation requires that input was always divisible on 64 (CompVis/stable-diffusion#60 (comment)). In diffusers-based pipelines this issue was fixed and model can generate if input resolution nondivisible to 64 too (adjusting sizes between unet blocks), but during tracing we still note that openvino model preserve behaviour with requirement divisibility to 64 (because path with adjusting data resolution is not activated during tracing). This PR fixes this limitation

@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.

@IlyasMoutawwakil IlyasMoutawwakil merged commit 420fa87 into huggingface:main Dec 20, 2024
22 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.

4 participants