(&self, use_f16: bool)
| 479 | } |
| 480 | |
| 481 | fn clip_file(&self, use_f16: bool) -> &'static str { |
| 482 | match self { |
| 483 | Self::V1_5 | Self::V2_1 | Self::Xl | Self::Turbo => { |
| 484 | if use_f16 { |
| 485 | "text_encoder/model.fp16.safetensors" |
| 486 | } else { |
| 487 | "text_encoder/model.safetensors" |
| 488 | } |
| 489 | } |
| 490 | } |
| 491 | } |
| 492 | |
| 493 | fn clip2_file(&self, use_f16: bool) -> &'static str { |
| 494 | match self { |