File tree Expand file tree Collapse file tree
src/maxdiffusion/models/ltx2 Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments