pub struct ModelPaths {
pub main_gguf: PathBuf,
pub vocoder_onnx: PathBuf,
}Expand description
Paths to the main GGUF plus vocoder artifacts.
Fields§
§main_gguf: PathBufMain TTS checkpoint (e.g. qwen3-tts-0.6b-f16.gguf).
vocoder_onnx: PathBufVocoder artifact exported for ONNX Runtime.
Implementations§
Source§impl ModelPaths
impl ModelPaths
pub fn new(main_gguf: PathBuf, vocoder_onnx: PathBuf) -> Self
Sourcepub fn from_model_dir(dir: impl AsRef<Path>) -> Self
pub fn from_model_dir(dir: impl AsRef<Path>) -> Self
Resolve under a single directory using the conventional filenames.
pub fn main_exists(&self) -> bool
pub fn vocoder_exists(&self) -> bool
Trait Implementations§
Source§impl Clone for ModelPaths
impl Clone for ModelPaths
Auto Trait Implementations§
impl Freeze for ModelPaths
impl RefUnwindSafe for ModelPaths
impl Send for ModelPaths
impl Sync for ModelPaths
impl Unpin for ModelPaths
impl UnsafeUnpin for ModelPaths
impl UnwindSafe for ModelPaths
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more