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.

Fix clip_g/clip_l mixup (#4168)

Alexander Brownce9ac2fe0581
diff --git a/comfy/text_encoders/flux.py b/comfy/text_encoders/flux.py
index 849214ce0..0590741bb 100644
--- a/comfy/text_encoders/flux.py
+++ b/comfy/text_encoders/flux.py
@@ -28,7 +28,7 @@ class FluxTokenizer:
return out
def untokenize(self, token_weight_pair):
- return self.clip_g.untokenize(token_weight_pair)
+ return self.clip_l.untokenize(token_weight_pair)
def state_dict(self):
return {}