(&self, use_f16: bool)
| 491 | } |
| 492 | |
| 493 | fn clip2_file(&self, use_f16: bool) -> &'static str { |
| 494 | match self { |
| 495 | Self::V1_5 | Self::V2_1 | Self::Xl | Self::Turbo => { |
| 496 | if use_f16 { |
| 497 | "text_encoder_2/model.fp16.safetensors" |
| 498 | } else { |
| 499 | "text_encoder_2/model.safetensors" |
| 500 | } |
| 501 | } |
| 502 | } |
| 503 | } |
| 504 | } |