pub struct Sam3DecoderWeights {Show 15 fields
pub loaded: bool,
pub prefix: String,
pub layers: Vec<Sam3DecoderLayerWeights>,
pub query_embed: Vec<f32>,
pub reference_points: Vec<f32>,
pub norm_w: Vec<f32>,
pub norm_b: Vec<f32>,
pub bbox_embed: Mlp3,
pub ref_point_head: Mlp2,
pub boxrpb_x: Mlp2,
pub boxrpb_y: Mlp2,
pub presence_token: Vec<f32>,
pub presence_token_head: Mlp3,
pub presence_token_out_norm_w: Vec<f32>,
pub presence_token_out_norm_b: Vec<f32>,
}Fields§
§loaded: bool§prefix: StringCheckpoint prefix (detector.transformer.decoder).
layers: Vec<Sam3DecoderLayerWeights>§query_embed: Vec<f32>§reference_points: Vec<f32>§norm_w: Vec<f32>§norm_b: Vec<f32>§bbox_embed: Mlp3§ref_point_head: Mlp2§boxrpb_x: Mlp2§boxrpb_y: Mlp2§presence_token: Vec<f32>§presence_token_head: Mlp3§presence_token_out_norm_w: Vec<f32>§presence_token_out_norm_b: Vec<f32>Trait Implementations§
Source§impl Clone for Sam3DecoderWeights
impl Clone for Sam3DecoderWeights
Source§fn clone(&self) -> Sam3DecoderWeights
fn clone(&self) -> Sam3DecoderWeights
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 moreSource§impl Default for Sam3DecoderWeights
impl Default for Sam3DecoderWeights
Source§fn default() -> Sam3DecoderWeights
fn default() -> Sam3DecoderWeights
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Sam3DecoderWeights
impl RefUnwindSafe for Sam3DecoderWeights
impl Send for Sam3DecoderWeights
impl Sync for Sam3DecoderWeights
impl Unpin for Sam3DecoderWeights
impl UnsafeUnpin for Sam3DecoderWeights
impl UnwindSafe for Sam3DecoderWeights
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> 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