The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix bug when yaml config has no clip params.
comfyanonymous30a3861946d9
diff --git a/comfy/sd.py b/comfy/sd.pyindex f5ed23b07..15caf3603 100644--- a/comfy/sd.py+++ b/comfy/sd.py@@ -1015,7 +1015,7 @@ def load_checkpoint(config_path=None, ckpt_path=None, output_vae=True, output_clclass EmptyClass:passclip_target = EmptyClass()- clip_target.params = clip_config["params"]+ clip_target.params = clip_config.get("params", {})if clip_config["target"].endswith("FrozenOpenCLIPEmbedder"):clip_target.clip = sd2_clip.SD2ClipModelclip_target.tokenizer = sd2_clip.SD2Tokenizer