struct

GS::MASt3R::EncoderConfig

Inherits Struct < Value < Object

MASt3R encoder configuration

Constructors

new(img_size : Int32 = 512, patch_size : Int32 = 16, in_channels : Int32 = 3, embed_dim : Int32 = 1024, depth : Int32 = 24, num_heads : Int32 = 16, mlp_ratio : Float32 = 4.0_f32, dropout : Float32 = 0.0_f32)
Source
vit_base
Source
vit_large

Preset configurations

Source
vit_small
Source

Instance methods

depth
Source
depth=(depth : Int32)
Source
dropout
Source
dropout=(dropout : Float32)
Source
embed_dim
Source
embed_dim=(embed_dim : Int32)
Source
img_size
Source
img_size=(img_size : Int32)
Source
in_channels
Source
in_channels=(in_channels : Int32)
Source
mlp_ratio
Source
mlp_ratio=(mlp_ratio : Float32)
Source
num_heads
Source
num_heads=(num_heads : Int32)
Source
patch_size
Source
patch_size=(patch_size : Int32)
Source