MCPcopy Create free account
hub / github.com/city96/ComfyUI-GGUF / TripleCLIPLoaderGGUF

Class TripleCLIPLoaderGGUF

nodes.py:275–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273 return (self.load_patcher(clip_paths, clip_type, self.load_data(clip_paths)),)
274
275class TripleCLIPLoaderGGUF(CLIPLoaderGGUF):
276 @classmethod
277 def INPUT_TYPES(s):
278 file_options = (s.get_filename_list(), )
279 return {
280 "required": {
281 "clip_name1": file_options,
282 "clip_name2": file_options,
283 "clip_name3": file_options,
284 }
285 }
286
287 TITLE = "TripleCLIPLoader (GGUF)"
288
289 def load_clip(self, clip_name1, clip_name2, clip_name3, type="sd3"):
290 clip_path1 = folder_paths.get_full_path("clip", clip_name1)
291 clip_path2 = folder_paths.get_full_path("clip", clip_name2)
292 clip_path3 = folder_paths.get_full_path("clip", clip_name3)
293 clip_paths = (clip_path1, clip_path2, clip_path3)
294 clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION)
295 return (self.load_patcher(clip_paths, clip_type, self.load_data(clip_paths)),)
296
297class QuadrupleCLIPLoaderGGUF(CLIPLoaderGGUF):
298 @classmethod

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected