Skip to content

Commit a7e43fc

Browse files
committed
weight loading pattern made consistent
1 parent 61d8fec commit a7e43fc

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
@@ -644,8 +644,9 @@ def create_model(rngs: nnx.Rngs, config: HyperParameters):
644644
@classmethod
645645
def load_scheduler(cls, config: HyperParameters):
646646
max_logging.log("Loading Scheduler...")
647+
scheduler_repo = "Lightricks/LTX-2" if getattr(config, "model_name", "") == "ltx2.3" else config.pretrained_model_name_or_path
647648
scheduler, _ = FlaxFlowMatchScheduler.from_pretrained(
648-
"Lightricks/LTX-2",
649+
scheduler_repo,
649650
subfolder="scheduler",
650651
)
651652
return scheduler

0 commit comments

Comments
 (0)