Skip to content

Commit bc26105

Browse files
authored
Fix incorrect tile_latent_min_width calculation in AutoencoderKLMochi (#11294)
1 parent 7054a34 commit bc26105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/autoencoders/autoencoder_kl_mochi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ def encode(
909909
def _decode(self, z: torch.Tensor, return_dict: bool = True) -> Union[DecoderOutput, torch.Tensor]:
910910
batch_size, num_channels, num_frames, height, width = z.shape
911911
tile_latent_min_height = self.tile_sample_min_height // self.spatial_compression_ratio
912-
tile_latent_min_width = self.tile_sample_stride_width // self.spatial_compression_ratio
912+
tile_latent_min_width = self.tile_sample_min_width // self.spatial_compression_ratio
913913

914914
if self.use_tiling and (width > tile_latent_min_width or height > tile_latent_min_height):
915915
return self.tiled_decode(z, return_dict=return_dict)

0 commit comments

Comments
 (0)