Skip to content

Commit e9339cb

Browse files
committed
Added added_kv_proj_dim for i2v
1 parent 8cdf771 commit e9339cb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/maxdiffusion/pipelines/wan/wan_pipeline.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ def create_model(rngs: nnx.Rngs, wan_config: dict):
107107
wan_config = restored_checkpoint["wan_config"]
108108
else:
109109
wan_config = WanModel.load_config(config.pretrained_model_name_or_path, subfolder=subfolder)
110+
if config.model_type == "I2V":
111+
wan_config["added_kv_proj_dim"] = 1024
110112
wan_config["mesh"] = mesh
111113
wan_config["dtype"] = config.activations_dtype
112114
wan_config["weights_dtype"] = config.weights_dtype

0 commit comments

Comments
 (0)