We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4512951 commit b18f8f5Copy full SHA for b18f8f5
1 file changed
src/maxdiffusion/scripts/convert_ltx2_vae_weights.py
@@ -67,7 +67,7 @@ def convert_ltx2_vae(hf_repo, output_path):
67
# but nnx.Module usually has them after init if shape is provided?
68
# Wait, nnx modules need to be split to see params.
69
graphdef, state = nnx.split(model); params = state.filter(nnx.Param)
70
- flat_params = traverse_util.flatten_dict(params)
+ flat_params = traverse_util.flatten_dict(params.to_pure_dict())
71
sorted_flat_keys = sorted(flat_params.keys())
72
for k in sorted_flat_keys:
73
v = flat_params[k]
0 commit comments