Skip to content

Commit 832a43d

Browse files
committed
fix
1 parent 2e66e3c commit 832a43d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/maxdiffusion/pipelines/ltx2/ltx2_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,8 +1121,8 @@ def __call__(
11211121
)
11221122

11231123
# 3. Prepare latents
1124-
# Effective batch size
1125-
batch_size = prompt_embeds.shape[0] // 2 if guidance_scale > 1.0 else prompt_embeds.shape[0]
1124+
_bs = prompt_embeds[0].shape[0] if isinstance(prompt_embeds, list) else prompt_embeds.shape[0]
1125+
batch_size = _bs // 2 if guidance_scale > 1.0 else _bs
11261126

11271127
# Prepare generators
11281128
if generator is None:

0 commit comments

Comments
 (0)