Skip to content

Commit cb7e9da

Browse files
committed
fix in lora
1 parent 0577bd1 commit cb7e9da

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/maxdiffusion/loaders/lora_conversion_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -758,12 +758,12 @@ def translate_ltx2_nnx_path_to_diffusers_lora(nnx_path_str, scan_layers=False):
758758

759759
# --- 3. Translation Logic ---
760760
if scan_layers:
761-
if nnx_path_str.startswith("blocks."):
762-
inner_suffix = nnx_path_str[len("blocks.") :]
761+
if nnx_path_str.startswith("transformer_blocks."):
762+
inner_suffix = nnx_path_str[len("transformer_blocks.") :]
763763
if inner_suffix in suffix_map:
764764
return f"diffusion_model.transformer_blocks.{{}}.{suffix_map[inner_suffix]}"
765765
else:
766-
m = re.match(r"^blocks\.(\d+)\.(.+)$", nnx_path_str)
766+
m = re.match(r"^transformer_blocks\.(\d+)\.(.+)$", nnx_path_str)
767767
if m:
768768
idx, inner_suffix = m.group(1), m.group(2)
769769
if inner_suffix in suffix_map:

0 commit comments

Comments
 (0)