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

Method load_clip

nodes.py:312–319  ·  view source on GitHub ↗
(self, clip_name1, clip_name2, clip_name3, clip_name4, type="stable_diffusion")

Source from the content-addressed store, hash-verified

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 2

load_patcherMethod · 0.80
load_dataMethod · 0.80

Tested by

no test coverage detected