Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Add missing case to CLIPLoader.

comfyanonymousd303cb53415f
diff --git a/nodes.py b/nodes.py
index cfd7dd8a4..ef51994ef 100644
--- a/nodes.py
+++ b/nodes.py
@@ -937,6 +937,8 @@ class CLIPLoader:
clip_type = comfy.sd.CLIPType.LTXV
elif type == "pixart":
clip_type = comfy.sd.CLIPType.PIXART
+ elif type == "cosmos":
+ clip_type = comfy.sd.CLIPType.COSMOS
else:
clip_type = comfy.sd.CLIPType.STABLE_DIFFUSION