We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a39eb18 commit 74c515dCopy full SHA for 74c515d
1 file changed
src/maxdiffusion/pipelines/ltx2/ltx2_pipeline.py
@@ -1371,8 +1371,9 @@ def __call__(
1371
do_cfg = guidance_scale > 1.0
1372
do_stg = stg_scale > 0.0
1373
force_4way = getattr(self.config, "model_name", "") == "ltx2.3"
1374
+ use_4way = force_4way or (do_cfg and do_stg)
1375
- if force_4way or (do_cfg and do_stg):
1376
+ if use_4way:
1377
negative_prompt_embeds_jax = negative_prompt_embeds
1378
negative_prompt_attention_mask_jax = negative_prompt_attention_mask
1379
if isinstance(prompt_embeds_jax, list):
0 commit comments