pub struct Vjepa2Config {Show 18 fields
pub hidden_size: usize,
pub num_hidden_layers: usize,
pub num_attention_heads: usize,
pub crop_size: usize,
pub patch_size: usize,
pub tubelet_size: usize,
pub frames_per_clip: usize,
pub mlp_ratio: f64,
pub layer_norm_eps: f64,
pub in_chans: usize,
pub pred_hidden_size: usize,
pub pred_num_attention_heads: usize,
pub pred_num_hidden_layers: usize,
pub pred_mlp_ratio: f64,
pub pred_num_mask_tokens: usize,
pub pred_zero_init_mask_tokens: bool,
pub num_pooler_layers: usize,
pub num_classes: usize,
}Fields§
§num_attention_heads: usize§crop_size: usize§patch_size: usize§tubelet_size: usize§frames_per_clip: usize§mlp_ratio: f64§layer_norm_eps: f64§in_chans: usize§pred_num_attention_heads: usize§pred_mlp_ratio: f64§pred_num_mask_tokens: usize§pred_zero_init_mask_tokens: bool§num_pooler_layers: usize§num_classes: usizeImplementations§
Source§impl Vjepa2Config
impl Vjepa2Config
pub fn from_file(path: &Path) -> Result<Vjepa2Config, Error>
Sourcepub fn vit_g_384() -> Vjepa2Config
pub fn vit_g_384() -> Vjepa2Config
facebook/vjepa2-vitg-fpc64-384 — ViT-G, 64 frames, 384².
pub fn head_dim(&self) -> usize
pub fn pred_head_dim(&self) -> usize
pub fn intermediate_size(&self) -> usize
pub fn pred_intermediate_size(&self) -> usize
pub fn pooler_intermediate_size(&self) -> usize
pub fn grid_spatial(&self) -> usize
pub fn grid_temporal(&self) -> usize
pub fn num_patches(&self) -> usize
Sourcepub fn rope_segment_dims(&self) -> (usize, usize, usize)
pub fn rope_segment_dims(&self) -> (usize, usize, usize)
Per-axis RoPE segment sizes (d, h, w). Matches Meta RoPEAttention.
pub fn pred_rope_segment_dims(&self) -> (usize, usize, usize)
Trait Implementations§
Source§impl Clone for Vjepa2Config
impl Clone for Vjepa2Config
Source§fn clone(&self) -> Vjepa2Config
fn clone(&self) -> Vjepa2Config
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 Debug for Vjepa2Config
impl Debug for Vjepa2Config
Source§impl<'de> Deserialize<'de> for Vjepa2Config
impl<'de> Deserialize<'de> for Vjepa2Config
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Vjepa2Config, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Vjepa2Config, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Vjepa2Config
impl RefUnwindSafe for Vjepa2Config
impl Send for Vjepa2Config
impl Sync for Vjepa2Config
impl Unpin for Vjepa2Config
impl UnsafeUnpin for Vjepa2Config
impl UnwindSafe for Vjepa2Config
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> 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