| 251 | return (self.load_patcher([clip_path], clip_type, self.load_data([clip_path])),) |
| 252 | |
| 253 | class DualCLIPLoaderGGUF(CLIPLoaderGGUF): |
| 254 | @classmethod |
| 255 | def INPUT_TYPES(s): |
| 256 | base = nodes.DualCLIPLoader.INPUT_TYPES() |
| 257 | file_options = (s.get_filename_list(), ) |
| 258 | return { |
| 259 | "required": { |
| 260 | "clip_name1": file_options, |
| 261 | "clip_name2": file_options, |
| 262 | "type": base["required"]["type"], |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | TITLE = "DualCLIPLoader (GGUF)" |
| 267 | |
| 268 | def load_clip(self, clip_name1, clip_name2, type): |
| 269 | clip_path1 = folder_paths.get_full_path("clip", clip_name1) |
| 270 | clip_path2 = folder_paths.get_full_path("clip", clip_name2) |
| 271 | clip_paths = (clip_path1, clip_path2) |
| 272 | clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION) |
| 273 | return (self.load_patcher(clip_paths, clip_type, self.load_data(clip_paths)),) |
| 274 | |
| 275 | class TripleCLIPLoaderGGUF(CLIPLoaderGGUF): |
| 276 | @classmethod |
nothing calls this directly
no outgoing calls
no test coverage detected