From fb7073259f97e5bb1a55af24d6c8406b8449c606 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 28 Jul 2025 22:43:37 +0300 Subject: [PATCH] detect 2.2 I2V untested --- nodes_model_loading.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nodes_model_loading.py b/nodes_model_loading.py index 30e8c5b..c8ebd94 100644 --- a/nodes_model_loading.py +++ b/nodes_model_loading.py @@ -849,7 +849,10 @@ class WanVideoModelLoader: elif "model_type.Wan2_1-FLF2V-14B-720P" in sd or "img_emb.emb_pos" in sd or "flf2v" in model.lower(): model_type = "fl2v" elif in_channels in [36, 48]: - model_type = "i2v" + if "blocks.0.cross_attn.k_img.weight" not in sd: + model_type = "t2v" + else: + model_type = "i2v" elif in_channels == 16: model_type = "t2v" elif "control_adapter.conv.weight" in sd: