We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e66e3c commit 832a43dCopy full SHA for 832a43d
1 file changed
src/maxdiffusion/pipelines/ltx2/ltx2_pipeline.py
@@ -1121,8 +1121,8 @@ def __call__(
1121
)
1122
1123
# 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]
+ _bs = prompt_embeds[0].shape[0] if isinstance(prompt_embeds, list) else prompt_embeds.shape[0]
+ batch_size = _bs // 2 if guidance_scale > 1.0 else _bs
1126
1127
# Prepare generators
1128
if generator is None:
0 commit comments