Skip to content

Commit 74c515d

Browse files
committed
force 4way
1 parent a39eb18 commit 74c515d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/maxdiffusion/pipelines/ltx2/ltx2_pipeline.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,8 +1371,9 @@ def __call__(
13711371
do_cfg = guidance_scale > 1.0
13721372
do_stg = stg_scale > 0.0
13731373
force_4way = getattr(self.config, "model_name", "") == "ltx2.3"
1374+
use_4way = force_4way or (do_cfg and do_stg)
13741375

1375-
if force_4way or (do_cfg and do_stg):
1376+
if use_4way:
13761377
negative_prompt_embeds_jax = negative_prompt_embeds
13771378
negative_prompt_attention_mask_jax = negative_prompt_attention_mask
13781379
if isinstance(prompt_embeds_jax, list):

0 commit comments

Comments
 (0)