Skip to content

Commit 97d4df9

Browse files
committed
debug
1 parent 1dbb3b8 commit 97d4df9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/maxdiffusion/models/ltx2/ltx2_utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,16 @@ def load_vae_weights(
266266
flattened_eval = flatten_dict(eval_shapes)
267267

268268
random_flax_state_dict = {}
269+
print(f"DEBUG: eval_shapes length (flattened): {len(flattened_eval)}")
270+
sample_target_found = False
269271
for key in flattened_eval:
270272
string_tuple = tuple([str(item) for item in key])
271273
random_flax_state_dict[string_tuple] = flattened_eval[key]
274+
275+
if not sample_target_found and "decoder" in string_tuple and "up_blocks" in string_tuple and "0" in string_tuple and "resnets" in string_tuple and "2" in string_tuple and "conv2" in string_tuple:
276+
print(f"DEBUG: Found target key in eval_shapes: {key}")
277+
print(f"DEBUG: Key types: {[type(x) for x in key]}")
278+
sample_target_found = True
272279

273280
for pt_key, tensor in tensors.items():
274281
renamed_pt_key = rename_key(pt_key)

0 commit comments

Comments
 (0)