Some minor cleanups.

This commit is contained in:
comfyanonymous
2024-10-05 13:22:39 -04:00
parent 6f021d8aa0
commit 7d2467e830
3 changed files with 1 additions and 4 deletions

View File

@@ -109,8 +109,7 @@ def load_clipvision_from_sd(sd, prefix="", convert_keys=False):
keys = list(sd.keys())
for k in keys:
if k not in u:
t = sd.pop(k)
del t
sd.pop(k)
return clip
def load(ckpt_path):