Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/antofuller/SatViT
/ functions
Functions
16 in github.com/antofuller/SatViT
⨍
Functions
16
◇
Types & classes
4
↓ 2 callers
Method
__init__
FFN (FeedForward Network) :param dim: model dimension (number of features) :param mult: multiply the model dimension by mult
transformer_model.py:59
↓ 2 callers
Function
get_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
transformer_model.py:36
↓ 2 callers
Function
get_2d_sincos_pos_embed
grid_size: int of the grid height and width return: pos_embed: [grid_size*grid_size, embed_dim] or [1+grid_size*grid_size, embed_dim] (w/
transformer_model.py:7
↓ 1 callers
Method
forward_decoder
(self, x, ids_restore)
SatViT_model.py:104
↓ 1 callers
Method
forward_encoder
(self, x, mask_ratio)
SatViT_model.py:91
↓ 1 callers
Method
forward_loss
(self, imgs, pred, mask)
SatViT_model.py:122
↓ 1 callers
Function
get_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
transformer_model.py:25
↓ 1 callers
Method
random_masking
Perform per-sample random masking by per-sample shuffling. Per-sample shuffling is done by argsort random noise. x: [N, L, D]
SatViT_model.py:64
Method
__init__
(self, io_dim=3840, num_patches=256, encoder_dim=768,
SatViT_model.py:13
Method
__init__
Self-Attention module :param dim: model dimension (number of features) :param num_heads: number of attention heads :p
transformer_model.py:87
Method
__init__
(self, dim, depth, num_heads=8, attn_dropo
transformer_model.py:125
Method
encode
We encode full images (i.e., no masking) by linearly projecting image patches, adding position embeddings, then encoding these inputs
SatViT_model.py:134
Method
forward
(self, patch_encodings, mask_ratio=0.75)
SatViT_model.py:142
Method
forward
(self, x)
transformer_model.py:81
Method
forward
(self, x)
transformer_model.py:109
Method
forward
(self, x)
transformer_model.py:143