pub enum Detectron2PretrainedModels {
FASTER_RCNN_R_50_FPN_3X,
MASK_RCNN_X_101_32X8D_FPN_3x,
}
Expand description
Pretrained Detectron2-based models from Hugging Face.
Variants§
Implementations§
Source§impl Detectron2PretrainedModels
impl Detectron2PretrainedModels
Sourcepub fn hf_filename(&self) -> &str
pub fn hf_filename(&self) -> &str
Path for this model file in Hugging Face repository.
Sourcepub fn confidence_score_index(&self) -> usize
pub fn confidence_score_index(&self) -> usize
Index for the confidence score in this model’s outputs.
Auto Trait Implementations§
impl Freeze for Detectron2PretrainedModels
impl RefUnwindSafe for Detectron2PretrainedModels
impl Send for Detectron2PretrainedModels
impl Sync for Detectron2PretrainedModels
impl Unpin for Detectron2PretrainedModels
impl UnwindSafe for Detectron2PretrainedModels
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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