Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LiuTingWed/SAM-Not-Perfect
/ types & classes
Types & classes
19 in github.com/LiuTingWed/SAM-Not-Perfect
⨍
Functions
134
◇
Types & classes
19
↓ 5 callers
Class
LayerNorm2d
segment_anything/modeling/common.py:31
↓ 4 callers
Class
Attention
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 callers
Class
MaskData
A structure for storing masks and their related data in batched format. Implements basic filtering and concatenation.
segment_anything/utils/amg.py:16
↓ 2 callers
Class
MLP
segment_anything/modeling/mask_decoder.py:154
↓ 2 callers
Class
MLPBlock
segment_anything/modeling/common.py:13
↓ 1 callers
Class
Attention
Multi-head Attention block with relative position embeddings.
segment_anything/modeling/image_encoder.py:185
↓ 1 callers
Class
Block
Transformer blocks with support of window attention and residual propagation blocks
segment_anything/modeling/image_encoder.py:119
↓ 1 callers
Class
ImageEncoderViT
segment_anything/modeling/image_encoder.py:17
↓ 1 callers
Class
MaskDecoder
segment_anything/modeling/mask_decoder.py:16
↓ 1 callers
Class
PatchEmbed
Image to Patch Embedding.
segment_anything/modeling/image_encoder.py:364
↓ 1 callers
Class
PositionEmbeddingRandom
Positional encoding using random spatial frequencies.
segment_anything/modeling/prompt_encoder.py:171
↓ 1 callers
Class
PromptEncoder
segment_anything/modeling/prompt_encoder.py:16
↓ 1 callers
Class
ResizeLongestSide
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 callers
Class
Sam
segment_anything/modeling/sam.py:18
↓ 1 callers
Class
SamAutomaticMaskGenerator
segment_anything/automatic_mask_generator.py:35
↓ 1 callers
Class
SamOnnxModel
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 callers
Class
SamPredictor
segment_anything/predictor.py:17
↓ 1 callers
Class
TwoWayAttentionBlock
segment_anything/modeling/transformer.py:109
↓ 1 callers
Class
TwoWayTransformer
segment_anything/modeling/transformer.py:16