pub enum ModelType {
BirdNetV24,
BirdNetV30,
PerchV2,
}Expand description
Supported model types.
Variants§
BirdNetV24
BirdNET v2.4 - 48kHz, 3s segments, no embeddings.
BirdNetV30
BirdNET v3.0 - 32kHz, 5s segments, 1024-dim embeddings.
PerchV2
Google Perch v2 - 32kHz, 5s segments, variable embeddings.
Implementations§
Source§impl ModelType
impl ModelType
Sourcepub const fn sample_rate(&self) -> u32
pub const fn sample_rate(&self) -> u32
Sample rate in Hz.
Sourcepub const fn segment_duration(&self) -> f32
pub const fn segment_duration(&self) -> f32
Segment duration in seconds.
Sourcepub const fn sample_count(&self) -> usize
pub const fn sample_count(&self) -> usize
Expected sample count per segment.
Sourcepub const fn has_embeddings(&self) -> bool
pub const fn has_embeddings(&self) -> bool
Whether this model produces embeddings.
Sourcepub const fn expected_label_format(&self) -> LabelFormat
pub const fn expected_label_format(&self) -> LabelFormat
Expected label file format for this model type.
Trait Implementations§
impl Copy for ModelType
impl Eq for ModelType
impl StructuralPartialEq for ModelType
Auto Trait Implementations§
impl Freeze for ModelType
impl RefUnwindSafe for ModelType
impl Send for ModelType
impl Sync for ModelType
impl Unpin for ModelType
impl UnwindSafe for ModelType
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