Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ImprintLab/Medical-SAM2
/ types & classes
Types & classes
37 in github.com/ImprintLab/Medical-SAM2
⨍
Functions
373
◇
Types & classes
37
↓ 6 callers
Class
MLP
sam2_train/modeling/sam2_utils.py:108
↓ 5 callers
Class
LayerNorm2d
sam2_train/modeling/sam2_utils.py:137
↓ 4 callers
Class
Attention
An attention layer that allows for downscaling the size of the embedding after projection to queries, keys, and values.
sam2_train/modeling/sam/transformer.py:199
↓ 3 callers
Class
MaskData
A structure for storing masks and their related data in batched format. Implements basic filtering and concatenation.
sam2_train/utils/amg.py:18
↓ 2 callers
Class
AMOS
func_3d/dataset/amos.py:13
↓ 2 callers
Class
BTCV
func_3d/dataset/btcv.py:13
↓ 2 callers
Class
DropPath
sam2_train/modeling/sam2_utils.py:88
↓ 2 callers
Class
REFUGE
func_2d/dataset.py:16
↓ 1 callers
Class
AsyncVideoFrameLoader
A list of video frames to be load asynchronously without blocking session start.
sam2_train/utils/misc.py:104
↓ 1 callers
Class
CombinedLoss
func_3d/function.py:20
↓ 1 callers
Class
DiceCoeff
Dice coeff for individual examples
func_2d/utils.py:242
↓ 1 callers
Class
DiceCoeff
Dice coeff for individual examples
func_3d/utils.py:228
↓ 1 callers
Class
MaskDecoder
sam2_train/modeling/sam/mask_decoder.py:15
↓ 1 callers
Class
MultiScaleAttention
sam2_train/modeling/backbones/hieradet.py:37
↓ 1 callers
Class
MultiScaleBlock
sam2_train/modeling/backbones/hieradet.py:86
↓ 1 callers
Class
PatchEmbed
Image to Patch Embedding.
sam2_train/modeling/backbones/utils.py:65
↓ 1 callers
Class
PositionEmbeddingRandom
Positional encoding using random spatial frequencies.
sam2_train/modeling/position_encoding.py:115
↓ 1 callers
Class
PromptEncoder
sam2_train/modeling/sam/prompt_encoder.py:17
↓ 1 callers
Class
SAM2ImagePredictor
sam2_train/sam2_image_predictor.py:20
↓ 1 callers
Class
SAM2Transforms
sam2_train/utils/transforms.py:13
↓ 1 callers
Class
Settings
conf/__init__.py:8
↓ 1 callers
Class
TwoWayAttentionBlock
sam2_train/modeling/sam/transformer.py:121
↓ 1 callers
Class
TwoWayTransformer
sam2_train/modeling/sam/transformer.py:28
Class
CXBlock
r"""ConvNeXt Block. There are two equivalent implementations: (1) DwConv -> LayerNorm (channels_first) -> 1x1 Conv -> GELU -> 1x1 Conv; all in (N,
sam2_train/modeling/memory_encoder.py:62
Class
FpnNeck
A modified variant of Feature Pyramid Network (FPN) neck (we remove output conv and also do bicubic interpolation similar to ViT pos embe
sam2_train/modeling/backbones/image_encoder.py:45
Class
Fuser
sam2_train/modeling/memory_encoder.py:120
Class
Hiera
Reference: https://arxiv.org/abs/2306.00989
sam2_train/modeling/backbones/hieradet.py:171
Class
ImageEncoder
sam2_train/modeling/backbones/image_encoder.py:14
Class
MaskDownSampler
Progressively downsample a mask by total_stride, each time by stride. Note that LayerNorm is applied per *token*, like in ViT. With each
sam2_train/modeling/memory_encoder.py:17
Class
MemoryAttention
sam2_train/modeling/memory_attention.py:102
Class
MemoryAttentionLayer
sam2_train/modeling/memory_attention.py:17
Class
MemoryEncoder
sam2_train/modeling/memory_encoder.py:138
Class
PositionEmbeddingSine
This is a more standard version of the position embedding, very similar to the one used by the Attention is all you need paper, generalized t
sam2_train/modeling/position_encoding.py:16
Class
RoPEAttention
Attention with rotary position encoding.
sam2_train/modeling/sam/transformer.py:266
Class
SAM2AutomaticMaskGenerator
sam2_train/automatic_mask_generator.py:36
Class
SAM2Base
sam2_train/modeling/sam2_base.py:22
Class
SAM2VideoPredictor
The predictor class to handle user interactions and manage inference states.
sam2_train/sam2_video_predictor.py:17