pub struct ModelEntry {
pub id: &'static str,
pub name: &'static str,
pub task: PipelineTask,
pub input_size: Option<(u32, u32)>,
pub num_classes: Option<usize>,
pub notes: &'static str,
}Expand description
Metadata entry describing a model that can be plugged into a pipeline.
Entries are static — each field is &'static str / Option<…> so
entries can live in a const-friendly table. Use
ModelZoo::register to add a ModelEntry to a zoo instance.
Fields§
§id: &'static strStable unique ID, e.g. "places365/resnet18".
name: &'static strHuman-readable name.
task: PipelineTaskWhich pipeline task this model is intended for.
input_size: Option<(u32, u32)>Expected (width, height) of the image input, if applicable.
num_classes: Option<usize>Number of output classes, if applicable.
notes: &'static strShort notes / citation for the user.
Trait Implementations§
Source§impl Clone for ModelEntry
impl Clone for ModelEntry
Source§fn clone(&self) -> ModelEntry
fn clone(&self) -> ModelEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ModelEntry
impl RefUnwindSafe for ModelEntry
impl Send for ModelEntry
impl Sync for ModelEntry
impl Unpin for ModelEntry
impl UnsafeUnpin for ModelEntry
impl UnwindSafe for ModelEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more