Skip to content

Commit d9eabf8

Browse files
committed
fix
1 parent 31544d4 commit d9eabf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/diffusers/models/transformers/transformer_allegro.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ def forward(
317317
p_t = self.config.patch_size_t
318318
p = self.config.patch_size
319319

320-
post_patch_num_frames = num_frames // self.config.patch_size_temporal
321-
post_patch_height = height // self.config.patch_size
322-
post_patch_width = width // self.config.patch_size
320+
post_patch_num_frames = num_frames // p_t
321+
post_patch_height = height // p
322+
post_patch_width = width // p
323323

324324
# ensure attention_mask is a bias, and give it a singleton query_tokens dimension.
325325
# we may have done this conversion already, e.g. if we came here via UNet2DConditionModel#forward.

0 commit comments

Comments
 (0)