pub struct Output {
pub logits: Vec<f32>,
pub boxes: Vec<f32>,
pub presence: f32,
pub masks: Vec<f32>,
pub semantic: Vec<f32>,
}Expand description
The model’s raw outputs, as Sam3Model returns them (batch of one).
Fields§
§logits: Vec<f32>[Q] classification logits.
boxes: Vec<f32>[Q, 4] boxes, normalised xyxy.
presence: f32§masks: Vec<f32>[Q, S, S] mask logits, S = mask_size (288).
semantic: Vec<f32>[S, S] semantic segmentation logits.
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnsafeUnpin for Output
impl UnwindSafe for Output
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