pub struct Sam2ImagePrediction {
pub masks: Vec<f32>,
pub iou_pred: Vec<f32>,
pub num_masks: usize,
pub h_out: usize,
pub w_out: usize,
pub object_score_logits: Vec<f32>,
pub object_pointer: Option<Vec<f32>>,
}Expand description
One frame’s worth of mask-decoder output, as returned by both
Sam2::predict_image and Sam2::predict_video_frame.
Fields§
§masks: Vec<f32>§iou_pred: Vec<f32>§num_masks: usize§h_out: usize§w_out: usize§object_score_logits: Vec<f32>§object_pointer: Option<Vec<f32>>Auto Trait Implementations§
impl Freeze for Sam2ImagePrediction
impl RefUnwindSafe for Sam2ImagePrediction
impl Send for Sam2ImagePrediction
impl Sync for Sam2ImagePrediction
impl Unpin for Sam2ImagePrediction
impl UnsafeUnpin for Sam2ImagePrediction
impl UnwindSafe for Sam2ImagePrediction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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