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

[Stable Diffusion] Fix the image size value inferring #167

Merged
merged 3 commits into from
Aug 11, 2023

Conversation

JingyaHuang
Copy link
Collaborator

In the dummy input generator, the default value of image_size would be the sample_size, which would lead to shapes using for compilation unmatch with the height and width given by users.

This PR is suppose to fix how the height and width should be infer.

@HuggingFaceDocBuilderDev

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

@JingyaHuang
Copy link
Collaborator Author

Also gently pinging @oOraph and @juliensimon, if you are using optimum-neuron 0.0.9, if the height(width) divide by the vae_scale_factor factor doesn't equal to the sample_size in the checkpoint's config file, the inference might fail due to inconsistent latent shape without the PR.

@JingyaHuang JingyaHuang merged commit 9330aaf into main Aug 11, 2023
5 of 8 checks passed
@JingyaHuang JingyaHuang deleted the fix-shape-inferring branch August 11, 2023 23:24
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.

2 participants