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

Class QuadrupleCLIPLoaderGGUF

nodes.py:297–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295 return (self.load_patcher(clip_paths, clip_type, self.load_data(clip_paths)),)
296
297class QuadrupleCLIPLoaderGGUF(CLIPLoaderGGUF):
298 @classmethod
299 def INPUT_TYPES(s):
300 file_options = (s.get_filename_list(), )
301 return {
302 "required": {
303 "clip_name1": file_options,
304 "clip_name2": file_options,
305 "clip_name3": file_options,
306 "clip_name4": file_options,
307 }
308 }
309
310 TITLE = "QuadrupleCLIPLoader (GGUF)"
311
312 def load_clip(self, clip_name1, clip_name2, clip_name3, clip_name4, type="stable_diffusion"):
313 clip_path1 = folder_paths.get_full_path("clip", clip_name1)
314 clip_path2 = folder_paths.get_full_path("clip", clip_name2)
315 clip_path3 = folder_paths.get_full_path("clip", clip_name3)
316 clip_path4 = folder_paths.get_full_path("clip", clip_name4)
317 clip_paths = (clip_path1, clip_path2, clip_path3, clip_path4)
318 clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION)
319 return (self.load_patcher(clip_paths, clip_type, self.load_data(clip_paths)),)
320
321NODE_CLASS_MAPPINGS = {
322 "UnetLoaderGGUF": UnetLoaderGGUF,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected