MCPcopy Create free account

hub / github.com/MiliLab/UniGeoSeg / functions

Functions763 in github.com/MiliLab/UniGeoSeg

Method__getitem__
(self, index)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/dataset.py:226
Method__getitem__
(self, index)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/dataset.py:255
Method__getitem__
(self, idx)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:239
Method__getitem__
(self, idx)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:312
Method__getitem__
(self, idx)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:394
Method__getitem__
(self, idx)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:472
Method__getitem__
(self, name)
unigeoseg/mask_config/config.py:140
Method__init__
(self, logger, log_level=logging.INFO)
unigeoseg/utils.py:64
Method__init__
(self, keywords, tokenizer, input_ids)
unigeoseg/mm_utils.py:50
Method__init__
(self, config)
unigeoseg/model/llava_arch.py:28
Method__init__
(self, text_dim=2048, vision_dim=1024, fusion_dim=256, enable_dynamic=True)
unigeoseg/model/language_model/lightweight_text_vision_fusion.py:14
Method__init__
(self, dim=512, depth=3, dim_head=64, heads=8, ff_mult=4, enable_dynamic=True)
unigeoseg/model/language_model/lightweight_dynamic_attention.py:80
Method__init__
(self, dim, dim_head=64, heads=8)
unigeoseg/model/language_model/projector.py:19
Method__init__
(self, hidden_size)
unigeoseg/model/language_model/llava_phi.py:46
Method__init__
(self, hidden_size, num_heads=4, dropout=0.1)
unigeoseg/model/language_model/llava_phi.py:60
Method__init__
(self, config: PhiConfig, mask_decoder_cfg=None)
unigeoseg/model/language_model/llava_phi.py:109
Method__init__
(self, inplanes, planes,norm_shape, stride=1, downsample=None, dcn=None)
unigeoseg/model/multimodal_projector/builder.py:16
Method__init__
(self, inplanes, planes, stride=1, downsample=None, dcn=None)
unigeoseg/model/multimodal_projector/builder.py:67
Method__init__
(self, inplanes, planes, stride=1, downsample=None, dcn=None)
unigeoseg/model/multimodal_projector/builder.py:118
Method__init__
(self, dcn=None, out_dim=4096)
unigeoseg/model/multimodal_projector/builder.py:167
Method__init__
(self, dcn=None, out_dim=4096)
unigeoseg/model/multimodal_projector/builder.py:221
Method__init__
(self, dcn=None, input_dim=1024, out_dim=4096)
unigeoseg/model/multimodal_projector/builder.py:330
Method__init__
(self, c1=1024, c2=2048, patch_size=3, stride=2, size=16)
unigeoseg/model/multimodal_projector/builder.py:382
Method__init__
(self)
unigeoseg/model/multimodal_projector/builder.py:405
Method__init__
(self, channels)
unigeoseg/model/multimodal_projector/builder.py:417
Method__init__
(self, c_in=1024, c_out=2048, sizes=[16,8], global_tokens=4)
unigeoseg/model/multimodal_projector/builder.py:431
Method__init__
(self)
unigeoseg/model/multimodal_projector/builder.py:505
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
unigeoseg/model/multimodal_encoder/swin_trans.py:83
Method__init__
(self, dim, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=True, qk_scale=No
unigeoseg/model/multimodal_encoder/swin_trans.py:170
Method__init__
(self, dim, norm_layer=nn.LayerNorm)
unigeoseg/model/multimodal_encoder/swin_trans.py:263
Method__init__
(self, dim, depth, num_heads, window_s
unigeoseg/model/multimodal_encoder/swin_trans.py:318
Method__init__
(self, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
unigeoseg/model/multimodal_encoder/swin_trans.py:413
Method__init__
(self, pretrain_img_size=224, patch_size=4, in_chans=3,
unigeoseg/model/multimodal_encoder/swin_trans.py:475
Method__init__
( self, dim: int, dim_out: int, num_heads: int, q_pool: nn.Module = No
unigeoseg/model/multimodal_encoder/hieradet.py:48
Method__init__
( self, dim: int, dim_out: int, num_heads: int, mlp_ratio: float = 4.0
unigeoseg/model/multimodal_encoder/hieradet.py:93
Method__init__
Using a SAM 2 model, generates masks for the entire image. Generates a grid of point prompts over the image, then filters low
unigeoseg/model/multimodal_encoder/sam2/automatic_mask_generator.py:37
Method__init__
Uses SAM-2 to calculate the image embedding for an image, and then allow repeated, efficient mask prediction given prompts.
unigeoseg/model/multimodal_encoder/sam2/sam2_image_predictor.py:21
Method__init__
( self, fill_hole_area=0, # whether to apply non-overlapping constraints on the output
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:21
Method__init__
(self, *args, **kwargs)
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:979
Method__init__
(self, drop_prob=0.0, scale_by_keep=True)
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_utils.py:94
Method__init__
(self, num_channels: int, eps: float = 1e-6)
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_utils.py:142
Method__init__
( self, image_encoder, memory_attention, memory_encoder, num_maskmem=7
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_base.py:23
Method__init__
( self, activation: str, cross_attention: nn.Module, d_model: int, dim
unigeoseg/model/multimodal_encoder/sam2/modeling/memory_attention.py:19
Method__init__
( self, embed_dim=256, kernel_size=4, stride=4, padding=0, tot
unigeoseg/model/multimodal_encoder/sam2/modeling/memory_encoder.py:26
Method__init__
( self, dim, kernel_size=7, padding=3, drop_path=0.0, layer_sc
unigeoseg/model/multimodal_encoder/sam2/modeling/memory_encoder.py:74
Method__init__
( self, out_dim, mask_downsampler, fuser, position_encoding, i
unigeoseg/model/multimodal_encoder/sam2/modeling/memory_encoder.py:139
Method__init__
(self, num_pos_feats: int = 64, scale: Optional[float] = None)
unigeoseg/model/multimodal_encoder/sam2/modeling/position_encoding.py:138
Method__init__
Args: kernel_size (Tuple): kernel size of the projection layer. stride (Tuple): stride of the projection layer.
unigeoseg/model/multimodal_encoder/sam2/modeling/backbones/utils.py:68
Method__init__
( self, trunk: nn.Module, neck: nn.Module, scalp: int = 0, )
unigeoseg/model/multimodal_encoder/sam2/modeling/backbones/image_encoder.py:15
Method__init__
( self, dim: int, dim_out: int, num_heads: int, q_pool: nn.Module = No
unigeoseg/model/multimodal_encoder/sam2/modeling/backbones/hieradet.py:40
Method__init__
( self, dim: int, dim_out: int, num_heads: int, mlp_ratio: float = 4.0
unigeoseg/model/multimodal_encoder/sam2/modeling/backbones/hieradet.py:85
Method__init__
Predicts masks given an image and prompt embeddings, using a transformer architecture. Arguments: transformer_dim
unigeoseg/model/multimodal_encoder/sam2/modeling/sam/mask_decoder.py:16
Method__init__
A transformer decoder that attends to an input image using queries whose positional embedding is supplied. Args: d
unigeoseg/model/multimodal_encoder/sam2/modeling/sam/transformer.py:20
Method__init__
A transformer block with four layers: (1) self-attention of sparse inputs, (2) cross attention of sparse inputs to dense inputs, (3)
unigeoseg/model/multimodal_encoder/sam2/modeling/sam/transformer.py:113
Method__init__
( self, *args, rope_theta=10000.0, # whether to repeat q rope to match k lengt
unigeoseg/model/multimodal_encoder/sam2/modeling/sam/transformer.py:254
Method__init__
Encodes prompts for input to SAM's mask decoder. Arguments: embed_dim (int): The prompts' embedding dimension im
unigeoseg/model/multimodal_encoder/sam2/modeling/sam/prompt_encoder.py:18
Method__init__
( self, img_paths, image_size, offload_video_to_cpu, img_mean,
unigeoseg/model/multimodal_encoder/sam2/utils/misc.py:109
Method__init__
Transforms for SAM2.
unigeoseg/model/multimodal_encoder/sam2/utils/transforms.py:16
Method__init__
(self, **kwargs)
unigeoseg/model/multimodal_encoder/sam2/utils/amg.py:24
Method__init__
(self, weight_dict, losses)
unigeoseg/model/mask_decoder/mask_criterion/refcoco.py:20
Method__init__
(self, matcher, losses, num_points, oversample_ratio, importance_sample_ratio, device)
unigeoseg/model/mask_decoder/mask_criterion/pretrain_criterion.py:125
Method__init__
Args: cfg (CfgNode): model (SemanticSegmentor): a SemanticSegmentor to apply TTA on. tta_mapper (callable
unigeoseg/model/mask_decoder/Mask2Former_Simplify/test_time_augmentation.py:27
Method__init__
(self, cfg, model=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/Segmentation.py:23
Method__init__
(self, cfg)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/maskformer_train.py:42
Method__init__
(self, cfg)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/MaskFormerModel.py:81
Method__init__
(self, encoder_layer, num_layers, norm=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/transformer.py:79
Method__init__
(self, decoder_layer, num_layers, norm=None, return_intermediate=False)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/transformer.py:106
Method__init__
( self, d_model, nhead, dim_feedforward=2048, dropout=0.1, act
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/transformer.py:155
Method__init__
( self, d_model, nhead, dim_feedforward=2048, dropout=0.1, act
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/transformer.py:231
Method__init__
( self, in_channels, num_classes, mask_classification=True, hi
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/maskformer_transformer_decoder.py:13
Method__init__
(self, num_pos_feats=64, temperature=10000, normalize=False, scale=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/position_encoding.py:18
Method__init__
(self, d_model, nhead, dropout=0.0, activation="relu", normalize_before=False)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/mask2former_transformer_decoder.py:14
Method__init__
(self, d_model, nhead, dropout=0.0, activation="relu", normalize_before=False)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/mask2former_transformer_decoder.py:72
Method__init__
(self, d_model, dim_feedforward=2048, dropout=0.0, activation="relu", normalize_before=False
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/mask2former_transformer_decoder.py:135
Method__init__
( self, in_channels, num_classes, mask_classification=True
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/mask2former_transformer_decoder.py:206
Method__init__
( self, in_channels, hidden_dim=256, num_queries=100,
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/mask2former_transformer_decoder.py:395
Method__init__
( self, dim, window_size, num_heads, qkv_bias=True, qk_scale=N
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:88
Method__init__
( self, dim, num_heads, window_size=7, shift_size=0, mlp_ratio
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:192
Method__init__
(self, dim, norm_layer=nn.LayerNorm)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:306
Method__init__
( self, dim, depth, num_heads, window_size=7, mlp_ratio=4.0,
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:359
Method__init__
(self, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:466
Method__init__
( self, pretrain_img_size=224, patch_size=4, in_chans=3, embed_dim=96,
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:527
Method__init__
(self, cfg)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:688
Method__init__
(self, in_channels, hidden_dim, out_channels=3)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/resnet.py:34
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/resnet.py:60
Method__init__
(self, inplanes, planes, stride=1, downsample=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/resnet.py:92
Method__init__
(self, d_model=256, d_ffn=1024, dropout=0.1, activation="relu",
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/pixel_decoder/msdeformattn.py:28
Method__init__
(self, encoder_layer, num_layers)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/pixel_decoder/msdeformattn.py:70
Method__init__
(self, d_model=256, nhead=8, num_encoder_layers=6, dim_feedforward=1024, dropout=0.1,
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/pixel_decoder/msdeformattn.py:99
Method__init__
Multi-Scale Deformable Attention Module :param d_model hidden dimension :param n_levels number of feature levels
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/pixel_decoder/ops/modules/ms_deform_attn.py:35
Method__init__
(self, cfg_dict=None, filename=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/configs/config.py:107
Method__init__
(self, log_dir=None, comment='', **kwargs)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:27
Method__init__
(self, **kwargs)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:48
Method__init__
(self, distributed_rank, save_dir)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:91
Method__init__
(self, local_rank=0)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:110
Method__init__
(self, tensors, mask: Optional[Tensor])
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/misc.py:64
Method__init__
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/misc.py:175
Method__init__
(self, annotation_file, num_processes=4)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/DatasetAnalyzer.py:26
Method__init__
Creates the matcher Params: cost_class: This is the relative weight of the classification error in the matching cost
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/matcher.py:107
Method__init__
Create the criterion. Parameters: num_classes: number of object categories, omitting the special no-object category ma
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/criterion.py:124
← previousnext →401–500 of 763, ranked by callers