Skip to content

Commit b18f8f5

Browse files
committed
fix
1 parent 4512951 commit b18f8f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maxdiffusion/scripts/convert_ltx2_vae_weights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def convert_ltx2_vae(hf_repo, output_path):
6767
# but nnx.Module usually has them after init if shape is provided?
6868
# Wait, nnx modules need to be split to see params.
6969
graphdef, state = nnx.split(model); params = state.filter(nnx.Param)
70-
flat_params = traverse_util.flatten_dict(params)
70+
flat_params = traverse_util.flatten_dict(params.to_pure_dict())
7171
sorted_flat_keys = sorted(flat_params.keys())
7272
for k in sorted_flat_keys:
7373
v = flat_params[k]

0 commit comments

Comments
 (0)