Skip to main content

ModelPreset

Enum ModelPreset 

Source
pub enum ModelPreset {
Show 34 variants DetrResnet50, YolosTiny, DistilbertSst2, BertBaseNer, MiniLmL6V2, XenovaDistilbertSst2Onnx, XenovaMiniLmL6V2Onnx, XenovaAllMpnetBaseV2Onnx, XenovaTwitterRobertaSentimentOnnx, XenovaBartLargeMnliOnnx, XenovaBartLargeCnnOnnx, XenovaMsMarcoMiniLmL6V2Onnx, XenovaRobertaBaseSquad2Onnx, OnnxCommunityRobertaBaseSquad2, XenovaVitBasePatch16_224Onnx, XenovaVitGpt2ImageCaptioningOnnx, XenovaTrocrBasePrintedOnnx, XenovaTrocrBaseHandwrittenOnnx, XenovaDetrResnet50Onnx, XenovaYolov8nPoseOnnx, AstAudioset, XenovaAstAudiosetOnnx, ClapHtsatUnfused, WhisperTinyEn, WhisperLargeV3, WhisperLargeV3Turbo, Wav2Vec2Base960h, PyannoteSpeakerDiarization31, DemucsMusicSeparation, MusicgenSmall, F5TtsV1Base, F5TtsBase, E2TtsBase, VocosMel24Khz,
}
Expand description

Variants describing model preset.

Variants§

§

DetrResnet50

The detr resnet50 variant.

§

YolosTiny

The yolos tiny variant.

§

DistilbertSst2

The distilbert sst2 variant.

§

BertBaseNer

The bert base ner variant.

§

MiniLmL6V2

The mini lm l6 v2 variant.

§

XenovaDistilbertSst2Onnx

The xenova distilbert sst2 ONNX variant.

§

XenovaMiniLmL6V2Onnx

The xenova mini lm l6 v2 ONNX variant.

§

XenovaAllMpnetBaseV2Onnx

The all mpnet base v2 ONNX variant.

§

XenovaTwitterRobertaSentimentOnnx

The twitter roberta sentiment ONNX variant.

§

XenovaBartLargeMnliOnnx

The BART MNLI zero-shot ONNX variant.

§

XenovaBartLargeCnnOnnx

The BART CNN summarization ONNX variant.

§

XenovaMsMarcoMiniLmL6V2Onnx

The MS MARCO MiniLM reranker ONNX variant.

§

XenovaRobertaBaseSquad2Onnx

The RoBERTa SQuAD2 QA ONNX variant.

§

OnnxCommunityRobertaBaseSquad2

The onnx-community RoBERTa SQuAD2 QA ONNX variant.

§

XenovaVitBasePatch16_224Onnx

The Xenova ViT base patch16 224 image classification ONNX variant.

§

XenovaVitGpt2ImageCaptioningOnnx

The Xenova ViT-GPT2 image captioning ONNX variant.

§

XenovaTrocrBasePrintedOnnx

The Xenova TrOCR printed text ONNX variant.

§

XenovaTrocrBaseHandwrittenOnnx

The Xenova TrOCR handwritten text ONNX variant.

§

XenovaDetrResnet50Onnx

The xenova DETR ResNet-50 ONNX variant.

§

XenovaYolov8nPoseOnnx

The Xenova YOLOv8n pose ONNX variant.

§

AstAudioset

The AST AudioSet classification variant.

§

XenovaAstAudiosetOnnx

The Xenova AST AudioSet ONNX variant.

§

ClapHtsatUnfused

The CLAP audio embedding variant.

§

WhisperTinyEn

The Whisper tiny English ASR variant.

§

WhisperLargeV3

The Whisper large-v3 ASR variant.

§

WhisperLargeV3Turbo

The Whisper large-v3-turbo ASR variant.

§

Wav2Vec2Base960h

The wav2vec2 base ASR variant.

§

PyannoteSpeakerDiarization31

The pyannote speaker diarization variant.

§

DemucsMusicSeparation

The Demucs music separation variant.

§

MusicgenSmall

The MusicGen small generation variant.

§

F5TtsV1Base

The F5-TTS v1 base speaker-conditioned TTS variant.

§

F5TtsBase

The F5-TTS base speaker-conditioned TTS variant.

§

E2TtsBase

The E2-TTS base speaker-conditioned TTS variant.

§

VocosMel24Khz

The Vocos 24 kHz mel vocoder variant.

Implementations§

Source§

impl ModelPreset

Source

pub const ALL: &'static [Self]

Constant for all.

Source

pub fn as_str(self) -> &'static str

Borrows this value as a str.

Source

pub fn spec(self) -> HuggingFaceModelSpec

Returns spec.

Trait Implementations§

Source§

impl Clone for ModelPreset

Source§

fn clone(&self) -> ModelPreset

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ModelPreset

Source§

impl Debug for ModelPreset

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ModelPreset

Source§

impl FromStr for ModelPreset

Source§

type Err = ModelRuntimeError

The associated error which can be returned from parsing.
Source§

fn from_str(input: &str) -> Result<Self>

Parses a string s to return a value of this type. Read more
Source§

impl PartialEq for ModelPreset

Source§

fn eq(&self, other: &ModelPreset) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ModelPreset

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V