The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Support loading clip_g from diffusers in CLIP Loader nodes.
comfyanonymousd3f5998218ee
diff --git a/comfy/sdxl_clip.py b/comfy/sdxl_clip.pyindex f676d8c81..d9298b205 100644--- a/comfy/sdxl_clip.py+++ b/comfy/sdxl_clip.py@@ -35,6 +35,8 @@ class SDXLClipG(sd1_clip.SD1ClipModel):def load_sd(self, sd):if "text_projection" in sd:self.text_projection[:] = sd.pop("text_projection")+ if "text_projection.weight" in sd:+ self.text_projection[:] = sd.pop("text_projection.weight").transpose(0, 1)return super().load_sd(sd)class SDXLClipGTokenizer(sd1_clip.SD1Tokenizer):