File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 207207 "wan-i2v-14B" : {"pretrained_model_name_or_path" : "Wan-AI/Wan2.1-I2V-14B-480P-Diffusers" },
208208 "wan-vace-1.3B" : {"pretrained_model_name_or_path" : "Wan-AI/Wan2.1-VACE-1.3B-diffusers" },
209209 "wan-vace-14B" : {"pretrained_model_name_or_path" : "Wan-AI/Wan2.1-VACE-14B-diffusers" },
210+ "wan-2-2-i2v-14B" : {"pretrained_model_name_or_path" : "Wan-AI/Wan-AI/Wan2.1-I2V-14B-720P-Diffusers" },
210211 "hidream" : {"pretrained_model_name_or_path" : "HiDream-ai/HiDream-I1-Dev" },
211212 "cosmos-1.0-t2w-7B" : {"pretrained_model_name_or_path" : "nvidia/Cosmos-1.0-Diffusion-7B-Text2World" },
212213 "cosmos-1.0-t2w-14B" : {"pretrained_model_name_or_path" : "nvidia/Cosmos-1.0-Diffusion-14B-Text2World" },
@@ -732,7 +733,10 @@ def infer_diffusers_model_type(checkpoint):
732733 elif checkpoint [target_key ].shape [0 ] == 5120 and checkpoint [target_key ].shape [1 ] == 16 :
733734 model_type = "wan-t2v-14B"
734735 else :
735- model_type = "wan-i2v-14B"
736+ if "img_emb.proj.0.bias" in checkpoint :
737+ model_type = "wan-i2v-14B"
738+ else :
739+ model_type = "wan-2-2-i2v-14B"
736740
737741 elif CHECKPOINT_KEY_NAMES ["wan_vae" ] in checkpoint :
738742 # All Wan models use the same VAE so we can use the same default model repo to fetch the config
You can’t perform that action at this time.
0 commit comments