(&self, use_f16: bool)
| 467 | } |
| 468 | |
| 469 | fn vae_file(&self, use_f16: bool) -> &'static str { |
| 470 | match self { |
| 471 | Self::V1_5 | Self::V2_1 | Self::Xl | Self::Turbo => { |
| 472 | if use_f16 { |
| 473 | "vae/diffusion_pytorch_model.fp16.safetensors" |
| 474 | } else { |
| 475 | "vae/diffusion_pytorch_model.safetensors" |
| 476 | } |
| 477 | } |
| 478 | } |
| 479 | } |
| 480 | |
| 481 | fn clip_file(&self, use_f16: bool) -> &'static str { |
| 482 | match self { |