MCPcopy Create free account

hub / github.com/devinxzhang/MFuser / functions

Functions1,143 in github.com/devinxzhang/MFuser

↓ 1 callersMethodextract_feats
(self, x, use_fpn=True, use_adapter=True)
models/backbones/eva_clip/eva_vit_model.py:602
↓ 1 callersFunctionf_score
calculate the f-score value. Args: precision (float | torch.Tensor): The precision value. recall (float | torch.Tensor): The reca
mmseg/core/evaluation/metrics.py:10
↓ 1 callersMethodfix_init_weight
(self)
models/backbones/eva_clip/eva_vit_model.py:507
↓ 1 callersFunctionflatten_nested_dict
(params, parent_key="", sep="/")
models/backbones/siglip/convert_siglip_to_hf.py:242
↓ 1 callersMethodformat_results
Place holder to format result to dataset specific output.
mmseg/datasets/custom.py:238
↓ 1 callersMethodforward
Forward function.
mmseg/models/decode_heads/isa_head.py:205
↓ 1 callersMethodforward
Forward function.
mmseg/models/decode_heads/da_head.py:145
↓ 1 callersMethodforward
(self, x)
models/backbones/clip/models.py:36
↓ 1 callersMethodforward
(self, hidden_states: torch.Tensor)
models/backbones/siglip/modeling_siglip.py:683
↓ 1 callersMethodforward
(self, x: Tensor)
models/backbones/dino_layers/block.py:89
↓ 1 callersMethodforward
(self, x: Tensor)
models/backbones/dino_layers/attention.py:56
↓ 1 callersMethodforward_feats
Args: feats (list[Tensor]): Feature maps of each level. Each has shape of (batch_size, c, h, w). Returns
mmseg/models/plugins/msdeformattn_pixel_decoder.py:273
↓ 1 callersMethodforward_features
(self, x)
mmseg/models/backbones/mix_transformer.py:395
↓ 1 callersMethodforward_features
(self, x, masks=None)
models/backbones/dino_v2.py:250
↓ 1 callersMethodforward_features_list
(self, x_list, masks_list)
models/backbones/dino_v2.py:228
↓ 1 callersMethodforward_multiple
(self, x)
mmseg/models/uda/vgg.py:131
↓ 1 callersMethodforward_nested
x_list contains a list of tensors to nest together and run
models/backbones/dino_layers/block.py:212
↓ 1 callersMethodforward_train
Placeholder for Forward function for training.
mmseg/models/segmentors/base.py:52
↓ 1 callersMethodfreeze_patch_emb
(self)
mmseg/models/backbones/mix_transformer.py:378
↓ 1 callersFunctiongather_features
( image_features, text_features, local_loss=False, gather_with_grad=False,
models/backbones/eva_clip/loss.py:21
↓ 1 callersFunctiongaussian_blur
(blur, data=None, target=None)
mmseg/models/utils/dacs_transforms.py:67
↓ 1 callersMethodgen_encoder_output_proposals
Generate proposals from encoded memory. Args: memory (Tensor) : The output of encoder, has shape (bs, num_key, em
mmseg/models/utils/transformer.py:688
↓ 1 callersFunctiongenerate_class_mask
(label, classes)
mmseg/models/utils/dacs_transforms.py:100
↓ 1 callersFunctiongeometric_progression
(a, r, n)
models/backbones/eva_clip/utils.py:162
↓ 1 callersFunctionget_backbone
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
models/backbones/eva_clip/factory.py:473
↓ 1 callersFunctionget_branges_scales
(x, sample_drop_ratio=0.0)
models/backbones/dino_layers/block.py:141
↓ 1 callersFunctionget_class_masks
(labels)
mmseg/models/utils/dacs_transforms.py:88
↓ 1 callersFunctionget_class_weight
Get class weight for loss function. Args: class_weight (list[float] | str | None): If class_weight is a str, take it as a fil
mmseg/models/losses/utils.py:10
↓ 1 callersMethodget_classes_and_palette
Get class names of current dataset. Args: classes (Sequence[str] | str | None): If classes is None, use default C
mmseg/datasets/custom.py:295
↓ 1 callersMethodget_gram_mask
(self, src_feat, stylized_src_feat)
mmseg/models/uda/stylization.py:179
↓ 1 callersMethodget_gt_seg_map_by_idx
Get one ground truth segmentation map for evaluation.
mmseg/datasets/custom.py:242
↓ 1 callersMethodget_gt_seg_maps
Get ground truth segmentation maps for evaluation.
mmseg/datasets/custom.py:250
↓ 1 callersFunctionget_mean_std
(img_metas, dev)
mmseg/models/utils/dacs_transforms.py:24
↓ 1 callersMethodget_pad_shape
(self, input_shape)
mmseg/models/utils/transformer.py:83
↓ 1 callersMethodget_palette_for_custom_classes
(self, class_names, palette=None)
mmseg/datasets/custom.py:339
↓ 1 callersMethodget_proposal_pos_embed
Get the position embedding of proposal.
mmseg/models/utils/transformer.py:800
↓ 1 callersMethodget_rare_class_sample
(self)
mmseg/datasets/ug_dataset.py:80
↓ 1 callersMethodget_rare_class_sample
(self)
mmseg/datasets/uda_dataset.py:85
↓ 1 callersFunctionget_rcs_class_probs
(data_root, temperature)
mmseg/datasets/ug_dataset.py:12
↓ 1 callersFunctionget_rcs_class_probs
(data_root, temperature)
mmseg/datasets/uda_dataset.py:12
↓ 1 callersMethodget_reference_points
Get the reference points used in decoder. Args: spatial_shapes (Tensor): The shape of all feature maps, has shape
mmseg/models/utils/transformer.py:756
↓ 1 callersFunctionget_siglip_config
(model_name)
models/backbones/siglip/convert_siglip_to_hf.py:66
↓ 1 callersMethodget_spm_processor
(self)
models/backbones/siglip/tokenization_siglip.py:137
↓ 1 callersMethodget_targets
Compute classification and mask targets for all images for a decoder layer. Args: cls_scores_list (list[Tensor]): Mask sc
mmseg/models/decode_heads/mask2former_head.py:158
↓ 1 callersMethodget_targets
Compute classification and mask targets for all images for a decoder layer. Args: cls_scores_list (list[Tensor]): Mask sc
mmseg/models/decode_heads/maskformer_head.py:153
↓ 1 callersMethodget_targets
Compute classification and mask targets for all images for a decoder layer. Args: cls_scores_list (list[Tensor]): Mask sc
mmseg/models/decode_heads/tqdm_head.py:126
↓ 1 callersFunctionget_uncertainty
Estimate uncertainty based on pred logits. We estimate uncertainty as L1 distance between 0.0 and the logits prediction in 'mask_pred' for th
mmseg/models/utils/point_sample.py:6
↓ 1 callersMethodget_valid_ratio
Get the valid radios of feature maps of all level.
mmseg/models/utils/transformer.py:790
↓ 1 callersMethodhue
Hue distortion.
mmseg/datasets/pipelines/transforms.py:842
↓ 1 callersMethodinit_layers
Initialize layers of the DeformableDetrTransformer.
mmseg/models/utils/transformer.py:662
↓ 1 callersMethodinit_parameters
(self)
models/backbones/eva_clip/modified_resnet.py:141
↓ 1 callersMethodinit_parameters
(self)
models/backbones/eva_clip/transformer.py:692
↓ 1 callersMethodinit_weights
Initialize weight of later layer.
mmseg/models/utils/self_attention_block.py:95
↓ 1 callersMethodinit_weights
(self)
mmseg/models/decode_heads/maskformer_head.py:150
↓ 1 callersMethodinterpolate_pos_encoding
(self, x, w, h)
models/backbones/dino_v2.py:182
↓ 1 callersMethodinterpolate_pos_encoding
(self, embeddings: torch.Tensor, height: int, width: int)
models/backbones/siglip/modeling_siglip.py:371
↓ 1 callersFunctionis_global_master
(args)
models/backbones/eva_clip/utils.py:293
↓ 1 callersFunctionis_local_master
(args)
models/backbones/eva_clip/utils.py:296
↓ 1 callersFunctionis_pretrained_cfg
(model: str, tag: str)
models/backbones/eva_clip/pretrained.py:221
↓ 1 callersFunctionlist_models
enumerate available model architectures based on config files
models/backbones/eva_clip/factory.py:52
↓ 1 callersFunctionlist_openai_models
Returns the names of available CLIP models
models/backbones/eva_clip/openai.py:18
↓ 1 callersFunctionlist_pretrained_models_by_tag
return all models having the specified pretrain tag
models/backbones/eva_clip/pretrained.py:203
↓ 1 callersMethodload_annotations
Load annotation from directory. Args: img_dir (str): Path to image directory img_suffix (str): Suffix of images.
mmseg/datasets/custom.py:130
↓ 1 callersFunctionload_openai_model
Load a CLIP model Parameters ---------- name : str A model name listed by `clip.available_models()`, or the path to a model check
models/backbones/eva_clip/openai.py:23
↓ 1 callersFunctionload_pretrained_checkpoint
( model, visual_checkpoint_path, text_checkpoint_path, strict=True, vi
models/backbones/eva_clip/factory.py:165
↓ 1 callersMethodloss
Loss function. Args: all_cls_scores (Tensor): Classification scores for all decoder layers with shape [num_decode
mmseg/models/decode_heads/mask2former_head.py:363
↓ 1 callersMethodloss
Loss function. Args: all_cls_scores (Tensor): Classification scores for all decoder layers with shape [num_decode
mmseg/models/decode_heads/maskformer_head.py:259
↓ 1 callersMethodloss
Loss function. Args: all_cls_scores (Tensor): Classification scores for all decoder layers with shape [num_decode
mmseg/models/decode_heads/tqdm_head.py:331
↓ 1 callersMethodlosses
Compute segmentation loss.
mmseg/models/decode_heads/decode_head.py:221
↓ 1 callersFunctionmain
()
train.py:68
↓ 1 callersFunctionmain
()
test.py:77
↓ 1 callersFunctionmain
()
tools/convert_datasets/synthia.py:86
↓ 1 callersFunctionmain
()
tools/convert_datasets/cityscapes.py:67
↓ 1 callersFunctionmain
()
tools/convert_datasets/gta.py:84
↓ 1 callersMethodmake_res_layer
Pack all blocks in a stage into a ``ResLayer``.
mmseg/models/backbones/resnet.py:580
↓ 1 callersMethodmake_stage_plugins
make plugins for ResNet 'stage_idx'th stage . Currently we support to insert 'context_block', 'empirical_attention_block', 'nonlocal_
mmseg/models/backbones/resnet.py:527
↓ 1 callersMethodmask
(self, input_ids, vocab_size, device, targets=None, masked_indices=None, probability_matrix=None)
models/backbones/eva_clip/hf_model.py:152
↓ 1 callersFunctionnaive_dice_loss
Calculate naive dice loss, the coefficient in the denominator is the first power instead of the second power. Args: pred (torch.Tenso
mmseg/models/losses/dice_loss.py:47
↓ 1 callersMethodnorm0
nn.Module: the normalization layer named "norm0"
mmseg/models/backbones/resnest.py:110
↓ 1 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmseg/models/backbones/resnest.py:115
↓ 1 callersMethodnorm1
(self)
mmseg/models/backbones/vit.py:108
↓ 1 callersMethodnorm1
(self)
mmseg/models/backbones/vit.py:294
↓ 1 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmseg/models/backbones/resnet.py:61
↓ 1 callersMethodnorm2
(self)
mmseg/models/backbones/vit.py:112
↓ 1 callersMethodnorm2
nn.Module: normalization layer after the second convolution layer
mmseg/models/backbones/resnet.py:259
↓ 1 callersFunctionobj2tensor
Serialize picklable python object to tensor.
mmseg/core/utils/dist_utils.py:75
↓ 1 callersFunctionone_mix
(mask, data=None, target=None)
mmseg/models/utils/dacs_transforms.py:107
↓ 1 callersMethodpam_cls_seg
PAM feature classification.
mmseg/models/decode_heads/da_head.py:131
↓ 1 callersFunctionparse_args
()
train.py:24
↓ 1 callersFunctionparse_args
()
test.py:16
↓ 1 callersFunctionparse_args
()
tools/convert_datasets/synthia.py:52
↓ 1 callersFunctionparse_args
()
tools/convert_datasets/cityscapes.py:32
↓ 1 callersFunctionparse_args
()
tools/convert_datasets/gta.py:50
↓ 1 callersFunctionparse_version_info
(version_str)
mmseg/version.py:6
↓ 1 callersFunctionpre_eval_to_metrics
Convert pre-eval results to metrics. Args: pre_eval_results (list[tuple[torch.Tensor]]): per image eval results for computing
mmseg/core/evaluation/metrics.py:400
↓ 1 callersMethodprepare_for_tokenization
Performs any necessary transformations before tokenization. This method should pop the arguments from kwargs and return the remainin
models/backbones/siglip/tokenization_utils.py:983
↓ 1 callersMethodprepare_test_img
Get testing data after pipeline. Args: idx (int): Index of data. Returns: dict: Testing data after pipeline
mmseg/datasets/custom.py:222
↓ 1 callersMethodprepare_train_img
Get training data and annotations after pipeline. Args: idx (int): Index of data. Returns: dict: Training da
mmseg/datasets/custom.py:205
↓ 1 callersMethodpsp_forward
Forward function of PSP module.
mmseg/models/decode_heads/uper_head.py:78
↓ 1 callersMethodrandom_select
Randomly select an img_scale from given candidates. Args: img_scales (list[tuple]): Images scales for selection. Returns
mmseg/datasets/pipelines/transforms.py:73
← previousnext →301–400 of 1,143, ranked by callers