Skip to content

Commit 9cc3601

Browse files
committed
style
1 parent 646e55b commit 9cc3601

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scripts/convert_hunyuan_video1_5_to_diffusers.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,18 @@ def convert_hyvideo15_transformer_to_diffusers(original_state_dict, config=None)
154154
converted_state_dict["time_embed.timestep_embedder.linear_2.bias"] = original_state_dict.pop("time_in.mlp.2.bias")
155155

156156
if config.use_meanflow:
157-
158157
converted_state_dict["time_embed.timestep_embedder_r.linear_1.weight"] = original_state_dict.pop(
159158
"time_r_in.mlp.0.weight"
160159
)
161-
converted_state_dict["time_embed.timestep_embedder_r.linear_1.bias"] = original_state_dict.pop("time_r_in.mlp.0.bias")
160+
converted_state_dict["time_embed.timestep_embedder_r.linear_1.bias"] = original_state_dict.pop(
161+
"time_r_in.mlp.0.bias"
162+
)
162163
converted_state_dict["time_embed.timestep_embedder_r.linear_2.weight"] = original_state_dict.pop(
163164
"time_r_in.mlp.2.weight"
164165
)
165-
converted_state_dict["time_embed.timestep_embedder_r.linear_2.bias"] = original_state_dict.pop("time_r_in.mlp.2.bias")
166+
converted_state_dict["time_embed.timestep_embedder_r.linear_2.bias"] = original_state_dict.pop(
167+
"time_r_in.mlp.2.bias"
168+
)
166169

167170
# 2. context_embedder.time_text_embed.timestep_embedder <- txt_in.t_embedder
168171
converted_state_dict["context_embedder.time_text_embed.timestep_embedder.linear_1.weight"] = (

0 commit comments

Comments
 (0)