Skip to content

Conversation

DN6
Copy link
Collaborator

@DN6 DN6 commented Apr 17, 2024

What does this PR do?

Originally proposed by @bghira in #7537. If float values are inadvertently passed in for height and width values in prepare_latents the pipeline throws an error. Explicitly cast height and width to int when preparing latents.

Opening this PR in order to resolve some merge conflicts in the original.

Fixes # (issue)

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.

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

@DN6 DN6 requested a review from yiyixuxu April 17, 2024 06:56
@yiyixuxu yiyixuxu merged commit 90250d9 into main Apr 19, 2024
@yiyixuxu yiyixuxu deleted the cast-hw-to-int branch April 19, 2024 05:30
@yiyixuxu
Copy link
Collaborator

thanks @bghira!

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