Skip to content

Commit

Permalink
Remove warnings that confuse people.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed May 9, 2024
1 parent cd07340 commit 93e876a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion comfy/sd.py
Expand Up @@ -486,7 +486,11 @@ def load_checkpoint_guess_config(ckpt_path, output_vae=True, output_clip=True, o
clip = CLIP(clip_target, embedding_directory=embedding_directory)
m, u = clip.load_sd(clip_sd, full_model=True)
if len(m) > 0:
logging.warning("clip missing: {}".format(m))
m_filter = list(filter(lambda a: ".logit_scale" not in a and ".transformer.text_projection.weight" not in a, m))
if len(m_filter) > 0:
logging.warning("clip missing: {}".format(m))
else:
logging.debug("clip missing: {}".format(m))

if len(u) > 0:
logging.debug("clip unexpected {}:".format(u))
Expand Down

0 comments on commit 93e876a

Please sign in to comment.