(self, ckpt_paths)
| 221 | return sorted(files) |
| 222 | |
| 223 | def load_data(self, ckpt_paths): |
| 224 | clip_data = [] |
| 225 | for p in ckpt_paths: |
| 226 | if p.endswith(".gguf"): |
| 227 | sd = gguf_clip_loader(p) |
| 228 | else: |
| 229 | sd = comfy.utils.load_torch_file(p, safe_load=True) |
| 230 | if "scaled_fp8" in sd: # NOTE: Scaled FP8 would require different custom ops, but only one can be active |
| 231 | raise NotImplementedError(f"Mixing scaled FP8 with GGUF is not supported! Use regular CLIP loader or switch model(s)\n({p})") |
| 232 | clip_data.append(sd) |
| 233 | return clip_data |
| 234 | |
| 235 | def load_patcher(self, clip_paths, clip_type, clip_data): |
| 236 | clip = comfy.sd.load_text_encoder_state_dicts( |
no test coverage detected