Skip to content

Fix incorrect tile_latent_min_width calculations #11305

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 1 commit into from
Apr 13, 2025

Conversation

kuantuna
Copy link
Contributor

What does this PR do?

This PR fixes the same issue that was recently addressed in AutoencoderKLMochi, where tile_latent_min_width was incorrectly calculated using tile_sample_stride_width instead of tile_sample_min_width.

The same mistake was found in the following autoencoders:

This update ensures consistent and correct behavior across all affected models when VAE tiling is enabled.

Fixes: #11291.

Who can review?

@a-r-r-o-w

Copy link
Member

@a-r-r-o-w a-r-r-o-w left a comment

Choose a reason for hiding this comment

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

Tysm for the awesome catch! 👁️

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

@a-r-r-o-w a-r-r-o-w merged commit 36538e1 into huggingface:main Apr 13, 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.

Inconsistent variable usage in tile_latent_min_width computation in AutoencoderKLMochi decoder
3 participants