MCPcopy Create free account

hub / github.com/MiliLab/UniGeoSeg / functions

Functions763 in github.com/MiliLab/UniGeoSeg

↓ 123 callersMethodto
(self, device)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/misc.py:68
↓ 94 callersMethodcat
(self, new_stats: "MaskData")
unigeoseg/model/multimodal_encoder/sam2/utils/amg.py:61
↓ 66 callersMethodget
Returns a record from table in constant runtime. :param table_name: Table name. :param token: Token of the record. :r
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/NuImages/nuimages.py:93
↓ 42 callersMethoditems
(self)
unigeoseg/model/multimodal_encoder/sam2/utils/amg.py:43
↓ 27 callersMethodupdate
(self, val, n=1)
unigeoseg/eval_and_test/eval.py:41
↓ 17 callersMethodget_model
(self)
unigeoseg/model/language_model/llava_phi.py:391
↓ 16 callersMethodcopy
(self)
unigeoseg/conversation.py:191
↓ 12 callersMethod__load_table__
Load a table and return it. :param table_name: The name of the table to load. :return: The table dictionary.
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/NuImages/nuimages.py:148
↓ 12 callersMethodfrom_pretrained
Load a pretrained model from the Hugging Face hub. Arguments: model_id (str): The Hugging Face repository ID. **
unigeoseg/model/multimodal_encoder/sam2/sam2_image_predictor.py:69
↓ 11 callersMethodget_model
(self)
unigeoseg/model/llava_arch.py:52
↓ 10 callersMethod__init__
(self, dcn=None, out_dim=4096)
unigeoseg/model/multimodal_projector/builder.py:276
↓ 9 callersMethoddevice
(self)
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_base.py:198
↓ 9 callersFunctionpoint_sample
A wrapper around :function:`torch.nn.functional.grid_sample` to support 3D point_coords tensors. Unlike :function:`torch.nn.functional.grid_s
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/point_features.py:4
↓ 8 callersMethodfilter
(self, keep: torch.Tensor)
unigeoseg/model/multimodal_encoder/sam2/utils/amg.py:46
↓ 7 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0 )
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:25
↓ 7 callersMethodload_tables
Load tables and add them to self, if not already loaded. :param table_names: The names of the nuImages tables to be loaded.
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/NuImages/nuimages.py:126
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
unigeoseg/model/multimodal_encoder/swin_trans.py:19
↓ 6 callersMethod_separate_heads
(self, x: Tensor, num_heads: int)
unigeoseg/model/multimodal_encoder/sam2/modeling/sam/transformer.py:220
↓ 6 callersFunctionconv3x3
3x3 convolution with padding
unigeoseg/model/multimodal_projector/builder.py:8
↓ 6 callersMethodforward_prediction_heads
(self, output, mask_features, attn_mask_target_size, SEG_embedding=None, cla
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/mask2former_transformer_decoder.py:726
↓ 6 callersFunctionpreprocess_referring_instruction
(instruction, tokenizer, REFER_token='[SEG]')
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:195
↓ 6 callersMethodsave
(self, obj, save_name)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:97
↓ 6 callersMethodunique
(self, ar, return_index=False, return_inverse=False, return_counts=False)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/misc.py:184
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/transformer.py:258
↓ 5 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/mask2former_transformer_decoder.py:190
↓ 5 callersMethod__setattr__
(self, name, value)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/configs/config.py:143
↓ 5 callersMethod_apply_non_overlapping_constraints
Apply non-overlapping constraints to the object scores in pred_masks. Here we keep only the highest scoring object at each spatial lo
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_base.py:891
↓ 5 callersMethod_consolidate_temp_output_across_obj
Consolidate the per-object temporary outputs in `temp_output_dict_per_obj` on a frame into a single output for all objects, including
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:426
↓ 5 callersMethod_get_orig_video_res_output
Resize the object scores to the original video resolution (video_res_masks) and apply non-overlapping constraints for final output.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:404
↓ 5 callersMethod_get_orig_video_res_output
Resize the object scores to the original video resolution (video_res_masks) and apply non-overlapping constraints for final output.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:383
↓ 5 callersMethodclose
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:41
↓ 5 callersMethodget_vision_tower
(self)
unigeoseg/model/language_model/llava_phi.py:121
↓ 4 callersMethod__init__
( self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/transformer.py:20
↓ 4 callersMethod__setattr__
(self, name, value)
unigeoseg/mask_config/config.py:143
↓ 4 callersMethod_consolidate_temp_output_across_obj
Consolidate the per-object temporary outputs in `temp_output_dict_per_obj` on a frame into a single output for all objects, including
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:405
↓ 4 callersMethod_get_image_feature
Compute the image features on a given frame.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:879
↓ 4 callersMethod_get_obj_num
Get the total number of unique object ids received so far in this session.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:168
↓ 4 callersMethod_get_obj_num
Get the total number of unique object ids received so far in this session.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:156
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/resnet.py:141
↓ 4 callersMethod_predict
Predict masks for the given input prompts, using the currently set image. Input prompts are batched torch tensors and are expected to
unigeoseg/model/multimodal_encoder/sam2/sam2_image_predictor.py:337
↓ 4 callersMethod_prepare_backbone_features
Prepare and flatten visual features.
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_base.py:481
↓ 4 callersMethodall_reduce
(self)
unigeoseg/eval_and_test/eval.py:47
↓ 4 callersFunctionbuild_swin_b
(pretrain=None)
unigeoseg/model/multimodal_encoder/swin_trans.py:660
↓ 4 callersFunctionbuild_vision_projector
(config, delay_load=False, **kwargs)
unigeoseg/model/multimodal_projector/builder.py:459
↓ 4 callersMethodencode_images
(self, images)
unigeoseg/model/language_model/llava_phi.py:353
↓ 4 callersMethodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults t
unigeoseg/model/multimodal_encoder/swin_trans.py:571
↓ 4 callersFunctionmask_decode
Decode the mask from base64 string to binary string, then feed it to the external pycocotools library to get a mask. :param mask: The mask di
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/NuImages/utils.py:35
↓ 4 callersFunctionpreprocess_image
(image, image_size, pad_value=0)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:93
↓ 4 callersFunctionpreprocess_llama2
(sources, tokenizer)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:131
↓ 4 callersFunctionpreprocess_mask
(mask, image_size)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:63
↓ 4 callersMethodtrain
(self, train_sampler, data_loader, eval_loder, n_epochs)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/maskformer_train.py:165
↓ 4 callersMethodtransform_coords
Expects a torch tensor with length 2 in the last dimension. The coordinates can be in absolute image or normalized coordinates, If th
unigeoseg/model/multimodal_encoder/sam2/utils/transforms.py:46
↓ 4 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/mask2former_transformer_decoder.py:90
↓ 3 callersMethod__init__
(self, config, mask_decoder_cfg=None, add_cross_attn=True, cross_attn_index=None, use_seg_query=False)
unigeoseg/model/language_model/llava_phi.py:172
↓ 3 callersMethod__init__
(self, layer, num_layers, dim=None, input_projection=False)
unigeoseg/model/multimodal_encoder/sam2/modeling/memory_encoder.py:121
↓ 3 callersMethod__init__
( self, embedding_dim: int, num_heads: int, downsample_rate: int = 1,
unigeoseg/model/multimodal_encoder/sam2/modeling/sam/transformer.py:196
↓ 3 callersMethod__init__
(self, block, layers)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/resnet.py:128
↓ 3 callersMethod__init__
( self, input_shape, transformer_dropout=0.1, transformer_nheads=8, tr
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/pixel_decoder/msdeformattn.py:167
↓ 3 callersMethod__init__
(self, base_data_path, tokenizer, image_size=512, split="train")
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:452
↓ 3 callersMethod_add_output_per_object
Split a multi-object output into per-object output slices and add them into `output_dict_per_obj`. The resulting slices share the sam
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:747
↓ 3 callersFunction_get_activation_fn
Return an activation function given a string
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/transformer.py:361
↓ 3 callersFunction_get_activation_fn
Return an activation function given a string
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/mask2former_transformer_decoder.py:176
↓ 3 callersFunction_get_clones
(module, N)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/transformer.py:357
↓ 3 callersMethod_get_image_feature
Compute the image features on a given frame.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:704
↓ 3 callersMethod_get_maskmem_pos_enc
`maskmem_pos_enc` is the same across frames and objects, so we cache it as a constant in the inference session to reduce session stor
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:1016
↓ 3 callersFunction_many
(fn)
unigeoseg/model/language_model/einops_exts.py:16
↓ 3 callersMethod_obj_id_to_idx
Map client-side object id to model-side object index.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:130
↓ 3 callersMethod_obj_id_to_idx
Map client-side object id to model-side object index.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:118
↓ 3 callersMethod_run_single_frame_inference
Run tracking on a single frame based on current inputs and previous memory.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:912
↓ 3 callersMethod_run_single_frame_inference
Run tracking on a single frame based on current inputs and previous memory.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:737
↓ 3 callersFunction_with_anon_dims
(fn)
unigeoseg/model/language_model/einops_exts.py:25
↓ 3 callersMethoddecompose
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/misc.py:79
↓ 3 callersMethodforward_features
(self, features)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/pixel_decoder/msdeformattn.py:268
↓ 3 callersMethodforward_image
Get the image feature on the input batch.
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_base.py:467
↓ 3 callersMethodgetRefIds
(self, image_ids=[], cat_ids=[], ref_ids=[], split='')
unigeoseg/eval_and_test/refer.py:143
↓ 3 callersFunctionget_args
()
unigeoseg/model/mask_decoder/Mask2Former_Simplify/main.py:35
↓ 3 callersFunctionget_connected_components
Get the connected components (8-connectivity) of binary masks of shape (N, 1, H, W). Inputs: - mask: A binary mask tensor of shape (N, 1
unigeoseg/model/multimodal_encoder/sam2/utils/misc.py:47
↓ 3 callersMethodget_dense_pe
Returns the positional encoding used to encode point prompts, applied to a dense set of points the shape of the image encoding.
unigeoseg/model/multimodal_encoder/sam2/modeling/sam/prompt_encoder.py:68
↓ 3 callersMethodget_vision_tower
(self)
unigeoseg/model/llava_arch.py:41
↓ 3 callersFunctionget_world_size
()
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/misc.py:30
↓ 3 callersFunctionimgaug_mask
:param img: H W C int :param mask: H W int :param seq: aug_pipe :return:img H W C int mask H W int
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/aug_strategy.py:107
↓ 3 callersMethodload_file_paths
(self, directory, valid_extensions=None)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:379
↓ 3 callersFunctionms_deform_attn_core_pytorch
@value: bs, sum(h, w), num_head, dim @sampling_locations: bs, sum(h, w), num_head, num_layer, 4, 2 @attention_weights: bs, sum(h, w), num
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/pixel_decoder/ops/functions/ms_deform_attn_func.py:52
↓ 3 callersMethodreset_predictor
Resets the image embeddings and other state variables.
unigeoseg/model/multimodal_encoder/sam2/sam2_image_predictor.py:459
↓ 3 callersMethodshortcut
Convenience function to navigate between different tables that have one-to-one relations. E.g. we can use this function to convenient
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/NuImages/nuimages.py:167
↓ 3 callersMethodstep
(self, closure=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/maskformer_train.py:83
↓ 3 callersFunctiontokenizer_special_tokens
(prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, seg_token_index=SEG_T
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:113
↓ 3 callersMethodtrack_step
( self, frame_idx, is_init_cond_frame, current_vision_feats, current_v
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_base.py:814
↓ 2 callersMethodSEG_instance_inference
(self, SEG_cls, mask_pred)
unigeoseg/model/language_model/llava_phi.py:337
↓ 2 callersMethod__getitem__
(self, index)
unigeoseg/model/multimodal_encoder/sam2/utils/misc.py:147
↓ 2 callersMethod__init__
( self, embed_dim: int = 96, # initial embed dim num_heads: int = 1, # initial numbe
unigeoseg/model/multimodal_encoder/hieradet.py:182
↓ 2 callersMethod__init__
( self, input_dim: int, hidden_dim: int, output_dim: int, num_layers:
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_utils.py:113
↓ 2 callersMethod__init__
( self, embed_dim: int = 96, # initial embed dim num_heads: int = 1, # initial numbe
unigeoseg/model/multimodal_encoder/sam2/modeling/backbones/hieradet.py:174
↓ 2 callersMethod__init__
(self, odgt, opt, dynamic_batchHW=False, **kwargs)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/dataset.py:223
↓ 2 callersMethod_clear_non_cond_mem_around_input
Remove the non-conditioning memory around the input frame. When users provide correction clicks, the surrounding frames' non-conditio
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:1155
↓ 2 callersMethod_encode_new_memory
Encode the current image and its prediction into a memory feature.
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_base.py:678
↓ 2 callersMethod_encode_xy
(self, x, y)
unigeoseg/model/multimodal_encoder/sam2/modeling/position_encoding.py:53
↓ 2 callersMethod_forward_sam_heads
Forward SAM prompt encoders and mask heads. Inputs: - backbone_features: image features of [B, C, H, W] shape - poin
unigeoseg/model/multimodal_encoder/sam2/modeling/sam2_base.py:257
↓ 2 callersMethod_freeze_stages
(self)
unigeoseg/model/multimodal_encoder/swin_trans.py:554
↓ 2 callersMethod_freeze_stages
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:619
next →1–100 of 763, ranked by callers