MCPcopy Create free account

hub / github.com/LiuTingWed/SAM-Not-Perfect / types & classes

Types & classes19 in github.com/LiuTingWed/SAM-Not-Perfect

↓ 5 callersClassLayerNorm2d
segment_anything/modeling/common.py:31
↓ 4 callersClassAttention
An attention layer that allows for downscaling the size of the embedding after projection to queries, keys, and values.
segment_anything/modeling/transformer.py:185
↓ 3 callersClassMaskData
A structure for storing masks and their related data in batched format. Implements basic filtering and concatenation.
segment_anything/utils/amg.py:16
↓ 2 callersClassMLP
segment_anything/modeling/mask_decoder.py:154
↓ 2 callersClassMLPBlock
segment_anything/modeling/common.py:13
↓ 1 callersClassAttention
Multi-head Attention block with relative position embeddings.
segment_anything/modeling/image_encoder.py:185
↓ 1 callersClassBlock
Transformer blocks with support of window attention and residual propagation blocks
segment_anything/modeling/image_encoder.py:119
↓ 1 callersClassImageEncoderViT
segment_anything/modeling/image_encoder.py:17
↓ 1 callersClassMaskDecoder
segment_anything/modeling/mask_decoder.py:16
↓ 1 callersClassPatchEmbed
Image to Patch Embedding.
segment_anything/modeling/image_encoder.py:364
↓ 1 callersClassPositionEmbeddingRandom
Positional encoding using random spatial frequencies.
segment_anything/modeling/prompt_encoder.py:171
↓ 1 callersClassPromptEncoder
segment_anything/modeling/prompt_encoder.py:16
↓ 1 callersClassResizeLongestSide
Resizes images to the longest side 'target_length', as well as provides methods for resizing coordinates and boxes. Provides methods for
segment_anything/utils/transforms.py:16
↓ 1 callersClassSam
segment_anything/modeling/sam.py:18
↓ 1 callersClassSamAutomaticMaskGenerator
segment_anything/automatic_mask_generator.py:35
↓ 1 callersClassSamOnnxModel
This model should not be called directly, but is used in ONNX export. It combines the prompt encoder, mask decoder, and mask postprocessing o
segment_anything/utils/onnx.py:17
↓ 1 callersClassSamPredictor
segment_anything/predictor.py:17
↓ 1 callersClassTwoWayAttentionBlock
segment_anything/modeling/transformer.py:109
↓ 1 callersClassTwoWayTransformer
segment_anything/modeling/transformer.py:16