Skip to content

Cast height, width to int inside prepare latents - #7691

Merged
yiyixuxu merged 1 commit into
mainfrom
cast-hw-to-int
Apr 19, 2024
Merged

yiyixuxu merged 1 commit into
mainfrom
cast-hw-to-int

Conversation

@DN6

@DN6 DN6 commented Apr 17, 2024

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown

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
Copy Markdown
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