Skip to content

Commit d7a2cb3

Browse files
committed
sigma_t = t fix, spatiotemporal guidance block fix
1 parent 3bd1785 commit d7a2cb3

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/maxdiffusion/pipelines/ltx2/ltx2_pipeline.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def create_model(rngs: nnx.Rngs, ltx2_config: dict):
139139
ltx2_config["remat_policy"] = config.remat_policy
140140
ltx2_config["names_which_can_be_saved"] = config.names_which_can_be_saved
141141
ltx2_config["names_which_can_be_offloaded"] = config.names_which_can_be_offloaded
142+
ltx2_config["spatio_temporal_guidance_blocks"] = tuple(getattr(config, "spatio_temporal_guidance_blocks", ()))
142143

143144
# 2. eval_shape
144145
p_model_factory = partial(create_model, ltx2_config=ltx2_config)
@@ -1526,8 +1527,8 @@ def __call__(
15261527
audio_num_frames,
15271528
frame_rate,
15281529
global_batch_size=batch_size,
1529-
sigma=sigma_t,
1530-
audio_sigma=sigma_t,
1530+
sigma=t,
1531+
audio_sigma=t,
15311532
use_cross_timestep=use_cross_timestep,
15321533
is_cfg_stg_mode=do_cfg and do_stg,
15331534
)
@@ -1984,8 +1985,8 @@ def scan_body(carry, inputs):
19841985
audio_num_frames=audio_num_frames,
19851986
fps=fps,
19861987
global_batch_size=batch_size,
1987-
sigma=sigma_t,
1988-
audio_sigma=sigma_t,
1988+
sigma=t,
1989+
audio_sigma=t,
19891990
use_cross_timestep=use_cross_timestep,
19901991
is_cfg_stg_mode=do_cfg and do_stg,
19911992
)

0 commit comments

Comments
 (0)