Skip to main content

Sam3Out

Struct Sam3Out 

Source
pub struct Sam3Out {
    pub text_embeds: Vec<f32>,
    pub text_feats: Vec<f32>,
    pub trunk_feats: Vec<f32>,
    pub fpn: Vec<Vec<f32>>,
    pub enc_hidden: Vec<f32>,
    pub dec_hidden: Vec<f32>,
    pub pred_boxes: Vec<f32>,
    pub pred_masks: Vec<f32>,
    pub pred_logits: Vec<f32>,
    pub presence_logit: f32,
}
Expand description

One forward’s outputs (batch 1), flat row-major f32.

Fields§

§text_embeds: Vec<f32>

CLIP text projection of the pooled token, [512].

§text_feats: Vec<f32>

Resizer output fed to the DETR stack, [32 * 256].

§trunk_feats: Vec<f32>

Trunk features, [5184 * 1024].

§fpn: Vec<Vec<f32>>

FPN levels 288/144/72/36, each [256 * H * W].

§enc_hidden: Vec<f32>

DETR encoder output, [5184 * 256].

§dec_hidden: Vec<f32>

Stacked decoder layer outputs, [6 * 200 * 256].

§pred_boxes: Vec<f32>

Final boxes (xyxy), [200 * 4].

§pred_masks: Vec<f32>

Instance masks, [200 * 288 * 288].

§pred_logits: Vec<f32>

Per-query classification logits from the dot-product scorer (det.scoring.*), [200] — the final score of a query is sigmoid(pred_logits) * sigmoid(presence_logit) (HF’s post_process_object_detection). Empty when SAM3_ONLY skips the decoder.

§presence_logit: f32

Presence-token logit of the final decoder layer (clamped ±10). 0.0 when the decoder did not run.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more