Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LayneH/GreenMIM
/ types & classes
Types & classes
34 in github.com/LayneH/GreenMIM
⨍
Functions
148
◇
Types & classes
34
↓ 4 callers
Class
MaskedAutoencoder
Masked Autoencoder with VisionTransformer backbone
modeling/base_green_models.py:57
↓ 3 callers
Class
GroupingModule
modeling/group_window_attention.py:186
↓ 3 callers
Class
SwinTransformer
r""" Swin Transformer A PyTorch impl of : `Swin Transformer: Hierarchical Vision Transformer using Shifted Windows` - https://arxiv
modeling/green_swin_models.py:287
↓ 2 callers
Class
Attention
GSA: using a key to summarize the information for a group to be efficient.
modeling/green_twins_models.py:48
↓ 2 callers
Class
Mlp
modeling/green_swin_models.py:20
↓ 2 callers
Class
SmoothedValue
Track a series of values and provide access to smoothed values over a window or the global series average.
util/misc.py:24
↓ 2 callers
Class
SparseConv2d
SparseConv module that operates on torch.Tensor
modeling/sparse_conv_me.py:21
↓ 1 callers
Class
BasicLayer
A basic Swin Transformer layer for one stage. Args: dim (int): Number of input channels. input_resolution (tuple[int]): Input re
modeling/green_swin_models.py:154
↓ 1 callers
Class
GroupAttention
LSA: self attention within a group
modeling/green_twins_models.py:15
↓ 1 callers
Class
ImageNet
util/base_dataset.py:111
↓ 1 callers
Class
PatchEmbed
r""" Image to Patch Embedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
modeling/green_swin_models.py:246
↓ 1 callers
Class
PatchEmbed
Image to Patch Embedding
modeling/green_twins_models.py:147
↓ 1 callers
Class
PosCNN
modeling/green_twins_models.py:279
↓ 1 callers
Class
SparseDWConv2d
We need to first convert the sparse tensor to dense tensor and then perform DWConv because spconv does not support `groups` option.
modeling/sparse_conv_spconv.py:41
↓ 1 callers
Class
SparsePatchEmbed
Image to Patch Embedding
modeling/green_twins_models.py:175
↓ 1 callers
Class
SwinTransformerBlock
r""" Swin Transformer Block. Args: dim (int): Number of input channels. input_resolution (tuple[int]): Input resulotion.
modeling/green_swin_models.py:38
↓ 1 callers
Class
WindowAttention
r""" Window based multi-head self attention (W-MSA) module with relative position bias. It supports both of shifted and non-shifted window. A
modeling/group_window_attention.py:20
Class
ALTGVT
alias Twins-SVT
modeling/green_twins_models.py:382
Class
BaseDataset
util/base_dataset.py:47
Class
BaseGreenModel
modeling/base_green_models.py:17
Class
Block
modeling/green_twins_models.py:95
Class
CPVTV2
Use useful results from CPVT. PEG and GAP. Therefore, cls token is no longer required. PEG is used to encode the absolute position on the
modeling/green_twins_models.py:293
Class
DatasetCache
util/base_dataset.py:17
Class
GroupBlock
modeling/green_twins_models.py:127
Class
ImageNetWithIdx
util/base_dataset.py:131
Class
MetricLogger
util/misc.py:86
Class
NativeScalerWithGradNormCount
util/misc.py:268
Class
PCPVT
modeling/green_twins_models.py:372
Class
PatchMerging
r""" Patch Merging Layer. Args: input_resolution (tuple[int]): Resolution of input feature. dim (int): Number of input channels.
modeling/green_swin_models.py:101
Class
PyramidVisionTransformer
modeling/green_twins_models.py:210
Class
SBlock
modeling/green_twins_models.py:117
Class
SparseAvgPool2d
SparseConv module that operates on torch.Tensor
modeling/sparse_conv_me.py:47
Class
SparseConv2d
SparseConv module that operates on torch.Tensor
modeling/sparse_conv_spconv.py:21
Class
SubMConv2d
SubManifold Conv module that operates on torch.Tensor
modeling/sparse_conv_spconv.py:32