MCPcopy Create free account

hub / github.com/ImprintLab/Medical-SAM2 / types & classes

Types & classes37 in github.com/ImprintLab/Medical-SAM2

↓ 6 callersClassMLP
sam2_train/modeling/sam2_utils.py:108
↓ 5 callersClassLayerNorm2d
sam2_train/modeling/sam2_utils.py:137
↓ 4 callersClassAttention
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 callersClassMaskData
A structure for storing masks and their related data in batched format. Implements basic filtering and concatenation.
sam2_train/utils/amg.py:18
↓ 2 callersClassAMOS
func_3d/dataset/amos.py:13
↓ 2 callersClassBTCV
func_3d/dataset/btcv.py:13
↓ 2 callersClassDropPath
sam2_train/modeling/sam2_utils.py:88
↓ 2 callersClassREFUGE
func_2d/dataset.py:16
↓ 1 callersClassAsyncVideoFrameLoader
A list of video frames to be load asynchronously without blocking session start.
sam2_train/utils/misc.py:104
↓ 1 callersClassCombinedLoss
func_3d/function.py:20
↓ 1 callersClassDiceCoeff
Dice coeff for individual examples
func_2d/utils.py:242
↓ 1 callersClassDiceCoeff
Dice coeff for individual examples
func_3d/utils.py:228
↓ 1 callersClassMaskDecoder
sam2_train/modeling/sam/mask_decoder.py:15
↓ 1 callersClassMultiScaleAttention
sam2_train/modeling/backbones/hieradet.py:37
↓ 1 callersClassMultiScaleBlock
sam2_train/modeling/backbones/hieradet.py:86
↓ 1 callersClassPatchEmbed
Image to Patch Embedding.
sam2_train/modeling/backbones/utils.py:65
↓ 1 callersClassPositionEmbeddingRandom
Positional encoding using random spatial frequencies.
sam2_train/modeling/position_encoding.py:115
↓ 1 callersClassPromptEncoder
sam2_train/modeling/sam/prompt_encoder.py:17
↓ 1 callersClassSAM2ImagePredictor
sam2_train/sam2_image_predictor.py:20
↓ 1 callersClassSAM2Transforms
sam2_train/utils/transforms.py:13
↓ 1 callersClassSettings
conf/__init__.py:8
↓ 1 callersClassTwoWayAttentionBlock
sam2_train/modeling/sam/transformer.py:121
↓ 1 callersClassTwoWayTransformer
sam2_train/modeling/sam/transformer.py:28
ClassCXBlock
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
ClassFpnNeck
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
ClassFuser
sam2_train/modeling/memory_encoder.py:120
ClassHiera
Reference: https://arxiv.org/abs/2306.00989
sam2_train/modeling/backbones/hieradet.py:171
ClassImageEncoder
sam2_train/modeling/backbones/image_encoder.py:14
ClassMaskDownSampler
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
ClassMemoryAttention
sam2_train/modeling/memory_attention.py:102
ClassMemoryAttentionLayer
sam2_train/modeling/memory_attention.py:17
ClassMemoryEncoder
sam2_train/modeling/memory_encoder.py:138
ClassPositionEmbeddingSine
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
ClassRoPEAttention
Attention with rotary position encoding.
sam2_train/modeling/sam/transformer.py:266
ClassSAM2AutomaticMaskGenerator
sam2_train/automatic_mask_generator.py:36
ClassSAM2Base
sam2_train/modeling/sam2_base.py:22
ClassSAM2VideoPredictor
The predictor class to handle user interactions and manage inference states.
sam2_train/sam2_video_predictor.py:17