Fix Uni3C

This commit is contained in:
kijai
2025-08-27 12:21:25 +03:00
parent 2a3ca69c83
commit e241998f53
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -45,6 +45,8 @@ def offload_transformer(transformer):
if transformer.patched_linear:
for name, param in transformer.named_parameters():
if "controlnet" in name:
continue
module = transformer
subnames = name.split('.')
for subname in subnames[:-1]:
+1 -1
View File
@@ -804,7 +804,7 @@ def load_weights(transformer, sd=None, weight_dtype=None, base_dtype=None,
except Exception:
block_idx = None
if "loras" in name:
if "loras" in name or "controlnet" in name:
continue
# GGUF: skip GGUFParameter params