The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Make return_projected_pooled setable from the __init__
comfyanonymous8ac69f62e56a
diff --git a/comfy/sd1_clip.py b/comfy/sd1_clip.pyindex 04f3dfd38..7bf11ea6e 100644--- a/comfy/sd1_clip.py+++ b/comfy/sd1_clip.py@@ -67,7 +67,7 @@ class SDClipModel(torch.nn.Module, ClipTokenWeightEncoder):]def __init__(self, version="openai/clip-vit-large-patch14", device="cpu", max_length=77,freeze=True, layer="last", layer_idx=None, textmodel_json_config=None, dtype=None, model_class=comfy.clip_model.CLIPTextModel,- special_tokens={"start": 49406, "end": 49407, "pad": 49407}, layer_norm_hidden_state=True, enable_attention_masks=False): # clip-vit-base-patch32+ special_tokens={"start": 49406, "end": 49407, "pad": 49407}, layer_norm_hidden_state=True, enable_attention_masks=False, return_projected_pooled=True): # clip-vit-base-patch32super().__init__()assert layer in self.LAYERS@@ -91,7 +91,7 @@ class SDClipModel(torch.nn.Module, ClipTokenWeightEncoder):self.enable_attention_masks = enable_attention_masksself.layer_norm_hidden_state = layer_norm_hidden_state- self.return_projected_pooled = True+ self.return_projected_pooled = return_projected_pooledif layer == "hidden":assert layer_idx is not None