1
0
mirror of https://github.com/kijai/ComfyUI-WanVideoWrapper.git synced 2026-01-26 23:41:35 +03:00

Fix possible uni3c issue

This commit is contained in:
kijai
2025-12-14 16:10:34 +02:00
parent 74d97fa4bb
commit ad7a0b925d

View File

@@ -857,7 +857,7 @@ def load_weights(transformer, sd=None, weight_dtype=None, base_dtype=None,
vace_block_idx = int(name.split("vace_blocks.")[1].split(".")[0])
except Exception:
vace_block_idx = None
elif name.startswith("blocks.") and "face" not in name:
elif name.startswith("blocks.") and "face" not in name and "controlnet_blocks." not in name:
try:
block_idx = int(name.split("blocks.")[1].split(".")[0])
except Exception: