Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MiliLab/UniGeoSeg
/ functions
Functions
763 in github.com/MiliLab/UniGeoSeg
⨍
Functions
763
◇
Types & classes
142
Method
__init__
(self, odgt, opt, **kwargs)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/dataset.py:51
Method
__init__
(self, odgt, opt, dynamic_batchHW=False, **kwargs)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/dataset.py:118
Method
__init__
(self, data_root, opt, version='v1.0-train', **kwargs)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/dataset.py:249
Method
__init__
Loads database and creates reverse indexes and shortcuts. :param version: Version to load (e.g. "v1.0-train", "v1.0-val", "v1.0-test"
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/NuImages/nuimages.py:30
Method
__init__
(self, name, fmt=":f", summary_type=Summary.AVERAGE)
unigeoseg/eval_and_test/eval.py:29
Method
__init__
(self, data_root, dataset='refcoco', splitBy='unc')
unigeoseg/eval_and_test/refer.py:42
Method
__init__
(self, base_data_path, tokenizer, split, image_size = 1024)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:204
Method
__init__
(self, base_data_path, tokenizer, split, image_size = 1024)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:277
Method
__init__
(self, base_data_path, tokenizer, split, image_size = 512)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:352
Method
__init__
(self, tokenizer)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:546
Method
__init__
(self, cfg_dict=None, filename=None)
unigeoseg/mask_config/config.py:107
Method
__iter__
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/configs/config.py:153
Method
__iter__
(self)
unigeoseg/mask_config/config.py:153
Method
__len__
(self)
unigeoseg/model/multimodal_encoder/sam2/utils/misc.py:168
Method
__len__
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/configs/config.py:134
Method
__len__
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/dataset.py:219
Method
__len__
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/dataset.py:274
Method
__len__
(self)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:236
Method
__len__
(self)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:309
Method
__len__
(self)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:376
Method
__len__
(self)
unigeoseg/eval_and_test/eval_dataset/RS_val_dataset.py:469
Method
__len__
(self)
unigeoseg/mask_config/config.py:134
Method
__missing__
(self, name)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/configs/config.py:13
Method
__missing__
(self, name)
unigeoseg/mask_config/config.py:13
Method
__repr__
(self)
unigeoseg/model/mask_decoder/mask_criterion/pretrain_criterion.py:325
Method
__repr__
(self, _repr_indent=4)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/transformer_decoder/position_encoding.py:54
Method
__repr__
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/configs/config.py:130
Method
__repr__
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/misc.py:82
Method
__repr__
(self, _repr_indent=4)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/matcher.py:209
Method
__repr__
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/criterion.py:324
Method
__repr__
(self)
unigeoseg/mask_config/config.py:130
Method
__setitem__
(self, key: str, item: Any)
unigeoseg/model/multimodal_encoder/sam2/utils/amg.py:31
Method
__setitem__
(self, name, value)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/configs/config.py:148
Method
__setitem__
(self, name, value)
unigeoseg/mask_config/config.py:148
Method
__str__
(self)
unigeoseg/eval_and_test/eval.py:70
Method
_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.py:956
Method
_forward_sam_heads
Identical to the corresponding method in the parent (SAM2VideoPredictor), but cloning the outputs of prompt_encoder and mask_decoder
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:1036
Method
_get_effective_data
(self, dataset_item: dict)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/DatasetAnalyzer.py:36
Method
_get_targets
(self, gt_masks)
unigeoseg/model/mask_decoder/mask_criterion/pretrain_criterion.py:315
Method
_get_targets
(self, gt_masks)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/criterion.py:314
Method
_init_weights
(m)
unigeoseg/model/multimodal_encoder/swin_trans.py:582
Method
_init_weights
(m)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/modeling/backbone/swin.py:643
Method
_load_frames
()
unigeoseg/model/multimodal_encoder/sam2/utils/misc.py:137
Method
_map_keys
(container)
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:1097
Method
_map_keys
(container)
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:920
Method
_maybe_read_image
(dataset_dict)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/test_time_augmentation.py:54
Method
_obj_idx_to_id
Map model-side object index to client-side object id.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:164
Method
_slice_state
(output_dict, storage_key)
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:1111
Method
add_new_mask
Add new mask to a frame.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:321
Method
add_new_mask
Add new mask to a frame.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:300
Method
add_new_points
Deprecated method. Please use `add_new_points_or_box` instead.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor_legacy.py:316
Method
add_new_points
Deprecated method. Please use `add_new_points_or_box` instead.
unigeoseg/model/multimodal_encoder/sam2/sam2_video_predictor.py:295
Method
add_scalar
(self, tag, scalar_value, global_step=None, walltime=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:51
Method
auto_argparser
Generate argparser from config file automatically (experimental)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/configs/config.py:95
Method
auto_argparser
Generate argparser from config file automatically (experimental)
unigeoseg/mask_config/config.py:95
Function
batch_dice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/matcher.py:15
Function
batch_sigmoid_ce_loss
Args: inputs: A float tensor of arbitrary shape. The predictions for each example. targets: A float tensor with t
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/matcher.py:37
Function
batch_sigmoid_focal_loss
Loss used in RetinaNet for dense detection: https://arxiv.org/abs/1708.02002. Args: inputs: A float tensor of arbitrary shape.
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/matcher.py:66
Function
build_logger
(logger_name, logger_filename)
unigeoseg/utils.py:17
Function
build_swin_s
(pretrain=None)
unigeoseg/model/multimodal_encoder/swin_trans.py:680
Function
build_swin_t
(pretrain=None)
unigeoseg/model/multimodal_encoder/swin_trans.py:640
Method
change_w
(weights, old_name, new_name)
unigeoseg/model/language_model/llava_phi.py:256
Function
check_shape
(tensor, pattern, **kwargs)
unigeoseg/model/language_model/einops_exts.py:11
Function
clip_grad_norm
(p: _GradientClipperInput)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/solver.py:28
Function
clip_grad_value
(p: _GradientClipperInput)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/solver.py:31
Method
close
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:54
Method
collate_fn
(self, batch)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/dataset/dataset.py:191
Function
compute_axial_cis
(dim: int, end_x: int, end_y: int, theta: float = 10000.0)
unigeoseg/model/multimodal_encoder/sam2/modeling/position_encoding.py:192
Method
compute_stats
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/DatasetAnalyzer.py:47
Method
config
(self)
unigeoseg/model/multimodal_projector/builder.py:412
Function
create_logger
(distributed_rank=0, save_dir=None)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:65
Function
create_saver
(distributed_rank, save_dir)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/summary.py:105
Method
device
(self)
unigeoseg/model/multimodal_encoder/sam2/sam2_image_predictor.py:456
Function
dice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
unigeoseg/model/mask_decoder/mask_criterion/pretrain_criterion.py:21
Function
dice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/criterion.py:18
Method
dict
(self)
unigeoseg/conversation.py:202
Method
encode_boxes
(self, x, y, w, h)
unigeoseg/model/multimodal_encoder/sam2/modeling/position_encoding.py:73
Method
encode_points
(self, x, y, labels)
unigeoseg/model/multimodal_encoder/sam2/modeling/position_encoding.py:81
Function
exists
(val)
unigeoseg/model/language_model/projector.py:6
Method
expand2square
(pil_img, background_color=(122, 116, 104))
unigeoseg/conversation.py:119
Method
filename
(self)
unigeoseg/model/mask_decoder/Mask2Former_Simplify/configs/config.py:123
Method
filename
(self)
unigeoseg/mask_config/config.py:123
Method
focal_loss
preds: [bs, num_class + 1, h, w] labels: [bs, h, w]
unigeoseg/model/mask_decoder/Mask2Former_Simplify/utils/criterion.py:396
Method
forward
Args: text_features: [hidden_size] 文本特征 vision_features: [vision_dim] 视觉特征(可选) Returns: enhanced_
unigeoseg/model/language_model/lightweight_text_vision_fusion.py:45
Method
forward
Args: text_features: [hidden_size] 文本特征 global_latents: [num_latents, hidden_size] 全局latent Returns:
unigeoseg/model/language_model/lightweight_text_vision_fusion.py:93
Method
forward
Args: x (torch.Tensor): image features shape (b, T, n1, D) latents (torch.Tensor): latent features
unigeoseg/model/language_model/lightweight_dynamic_attention.py:38
Method
forward
保持原有接口不变
unigeoseg/model/language_model/lightweight_dynamic_attention.py:100
Method
forward
Args: x (torch.Tensor): image features shape (b, T, n1, D) latent (torch.Tensor): latent features
unigeoseg/model/language_model/projector.py:32
Method
forward
Args: latents (torch.Tensor): query tokens shape [(b, T, n, D)] x: multi-scale image features
unigeoseg/model/language_model/projector.py:77
Method
forward
(self, x)
unigeoseg/model/language_model/llava_phi.py:51
Method
forward
(self, x)
unigeoseg/model/language_model/llava_phi.py:74
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
unigeoseg/model/language_model/llava_phi.py:909
Method
forward
(self, x)
unigeoseg/model/multimodal_projector/builder.py:36
Method
forward
(self, x)
unigeoseg/model/multimodal_projector/builder.py:87
Method
forward
(self, x)
unigeoseg/model/multimodal_projector/builder.py:138
Method
forward
(self, x)
unigeoseg/model/multimodal_projector/builder.py:207
Method
forward
(self, x)
unigeoseg/model/multimodal_projector/builder.py:262
Method
forward
(self, x)
unigeoseg/model/multimodal_projector/builder.py:315
Method
forward
(self, x)
unigeoseg/model/multimodal_projector/builder.py:368
Method
forward
(self, x)
unigeoseg/model/multimodal_projector/builder.py:393
← previous
next →
501–600 of 763, ranked by callers