MCPcopy Create free account

hub / github.com/devinxzhang/MFuser / functions

Functions1,143 in github.com/devinxzhang/MFuser

↓ 1 callersMethod__init__
(self, *args, by_epoch=False, efficient_test=False, **kwargs)
mmseg/core/evaluation/eval_hooks.py:26
↓ 1 callersMethod__init__
(self, groups=1, base_width=4, **kwargs)
mmseg/models/backbones/resnext.py:136
↓ 1 callersMethod__init__
(self, num_feats, temperature=10000, normalize=False,
mmseg/models/utils/positional_encoding.py:35
↓ 1 callersMethod__init__
(self, in_channels, out_channels, stride,
mmseg/models/utils/inverted_residual.py:32
↓ 1 callersMethod__init__
(self, in_channels: int, branch_channels: int, out_channels
mmseg/models/utils/ppm.py:32
↓ 1 callersMethod__init__
(self, c1_in_channels, c1_channels, **kwargs)
mmseg/models/decode_heads/sep_aspp_head.py:44
↓ 1 callersMethod__init__
(self, input_dim=2048, embed_dim=768)
mmseg/models/decode_heads/segformer_head.py:21
↓ 1 callersMethod__init__
(self, dilations=(1, 6, 12, 18), **kwargs)
mmseg/models/decode_heads/aspp_head.py:66
↓ 1 callersMethod__init__
(self, pool_scales, in_channels, channels, conv_cfg, norm_cfg, act_cfg, align_corners, **kwar
mmseg/models/decode_heads/psp_head.py:26
↓ 1 callersMethod__init__
(self, in_channels, channels, sep, dilatio
mmseg/models/decode_heads/daformer_head.py:16
↓ 1 callersMethod__init__
(self, in_channels, feat_channels, out_channels,
mmseg/models/plugins/pixel_decoder.py:31
↓ 1 callersMethod__init__
(self, level)
mmseg/models/uda/vgg.py:9
↓ 1 callersMethod__init__
( self, in_features: int, hidden_features: Optional[int] = None, out_features:
models/backbones/dino_layers/swiglu_ffn.py:15
↓ 1 callersMethod__init__
( self, dim, pt_seq_len, ft_seq_len=None, custom_freqs = None,
models/backbones/eva_clip/rope.py:31
↓ 1 callersMethod__init__
(self, use_pooler_output=True)
models/backbones/eva_clip/hf_model.py:60
↓ 1 callersMethod__init__
( self, embed_dim: int, vision_cfg: CLIPVisionCfg, text_cfg: C
models/backbones/eva_clip/model.py:215
↓ 1 callersMethod__setstate__
(self, d)
models/backbones/siglip/tokenization_siglip.py:259
↓ 1 callersMethod_add_tokens
Add a list of new tokens to the tokenizer class. If the new tokens are not in the vocabulary, they are added to it with indices start
models/backbones/siglip/tokenization_utils.py:513
↓ 1 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
mmseg/core/utils/dist_utils.py:14
↓ 1 callersMethod_auxiliary_head_forward_train
Run forward function and calculate loss for auxiliary head in training.
mmseg/models/segmentors/encoder_decoder.py:112
↓ 1 callersMethod_batch_prepare_for_model
Prepares a sequence of input id, or a pair of sequences of inputs ids so that it can be used by the model. It adds special tokens, tr
models/backbones/siglip/tokenization_utils.py:914
↓ 1 callersMethod_binary_cross_entropy
Args: cls_pred (Tensor): The prediction with shape (num_query, 1, *) or (num_query, *). gt_labels (Te
mmseg/models/losses/match_costs.py:196
↓ 1 callersFunction_build_mlp
(nlayers, in_dim, bottleneck_dim, hidden_dim=None, use_bn=False, bias=True)
models/backbones/dino_layers/dino_head.py:44
↓ 1 callersFunction_camel2snake
(s)
models/backbones/eva_clip/hf_model.py:31
↓ 1 callersMethod_collect_tokens
Generates all tokens in the Trie starting from a given node. Args: node (dict): The node in the Trie from which tokens n
models/backbones/siglip/tokenization_utils.py:325
↓ 1 callersFunction_concat_dataset
Build :obj:`ConcatDataset by.
mmseg/datasets/builder.py:30
↓ 1 callersMethod_convert_token_to_id
(self, token)
models/backbones/siglip/tokenization_utils.py:741
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
mmseg/models/segmentors/encoder_decoder.py:106
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
mmseg/models/segmentors/encoder_decoder.py:90
↓ 1 callersFunction_expand_onehot_labels
Expand onehot labels to match the size of prediction.
mmseg/models/losses/cross_entropy_loss.py:65
↓ 1 callersFunction_get_global_gloo_group
Return a process group based on gloo backend, containing all the ranks The result is cached.
mmseg/core/utils/dist_utils.py:87
↓ 1 callersMethod_get_intermediate_layers_chunked
(self, x, n=1)
models/backbones/dino_v2.py:284
↓ 1 callersMethod_get_intermediate_layers_not_chunked
(self, x, n=1)
models/backbones/dino_v2.py:268
↓ 1 callersMethod_get_node
Retrieves the node corresponding to the given token in the Trie. Args: token (str): The token for which the correspondin
models/backbones/siglip/tokenization_utils.py:307
↓ 1 callersFunction_in_projection_packed
https://github.com/pytorch/pytorch/blob/db2a237763eb8693a20788be94f8c192e762baa8/torch/nn/functional.py#L4726
models/backbones/eva_clip/transformer.py:123
↓ 1 callersMethod_init_auxiliary_head
Initialize ``auxiliary_head``
mmseg/models/segmentors/encoder_decoder.py:61
↓ 1 callersMethod_init_decode_head
Initialize ``decode_head``
mmseg/models/segmentors/encoder_decoder.py:55
↓ 1 callersMethod_init_ema_weights
(self)
mmseg/models/uda/dacs.py:86
↓ 1 callersMethod_init_inputs
Check and initialize input transforms. The in_channels, in_index and input_transform must match. Specifically, when input_transform i
mmseg/models/decode_heads/decode_head.py:101
↓ 1 callersMethod_init_weights
(self, m)
mmseg/models/backbones/mix_transformer.py:324
↓ 1 callersMethod_make_stem_layer
Make stem layer for ResNet.
mmseg/models/backbones/resnet.py:589
↓ 1 callersFunction_natural_key
(string_)
models/backbones/eva_clip/factory.py:25
↓ 1 callersFunction_ntuple
(n)
mmseg/models/utils/embed.py:15
↓ 1 callersMethod_pad_img
Pad images according to ``self.size``.
mmseg/datasets/pipelines/transforms.py:325
↓ 1 callersMethod_pad_seg
Pad masks according to ``results['pad_shape']``.
mmseg/datasets/pipelines/transforms.py:338
↓ 1 callersMethod_pos_embeding
Positioning embeding method. Resize the pos_embed, if the input image size doesn't match the training size. Args:
mmseg/models/backbones/vit.py:354
↓ 1 callersFunction_prepare_4d_attention_mask
Creates a non-causal 4D mask of shape `(batch_size, 1, query_length, key_value_length)` from a 2D mask of shape `(batch_size, key_value_lengt
models/backbones/siglip/modeling_siglip.py:335
↓ 1 callersMethod_random_scale
Randomly sample an img_scale according to ``ratio_range`` and ``multiscale_mode``. If ``ratio_range`` is specified, a ratio will be s
mmseg/datasets/pipelines/transforms.py:144
↓ 1 callersMethod_resize_img
Resize images with ``results['scale']``.
mmseg/datasets/pipelines/transforms.py:181
↓ 1 callersMethod_resize_seg
Resize semantic segmentation map with ``results['scale']``.
mmseg/datasets/pipelines/transforms.py:203
↓ 1 callersMethod_sample_neg
Sample negative samples.
mmseg/core/box/samplers/base_sampler.py:30
↓ 1 callersMethod_sample_pos
Sample positive samples.
mmseg/core/box/samplers/base_sampler.py:25
↓ 1 callersMethod_tokenize
Converts a string into a sequence of tokens (string), using the tokenizer. Split in words for word-based vocabulary or sub-words for
models/backbones/siglip/tokenization_utils.py:702
↓ 1 callersFunction_trunc_normal_
(tensor, mean, std, a, b)
models/backbones/siglip/modeling_siglip.py:50
↓ 1 callersMethod_update_ema
(self, iter)
mmseg/models/uda/dacs.py:97
↓ 1 callersMethod_update_trie
(self, unique_no_split_tokens: Optional[str] = [])
models/backbones/siglip/tokenization_utils.py:591
↓ 1 callersFunctionadd_residual
(x, brange, residual, residual_scale_factor, scaling_vector=None)
models/backbones/dino_layers/block.py:149
↓ 1 callersMethodaggregate
(assignment_weights, x, codewords)
mmseg/ops/encoding.py:48
↓ 1 callersMethodaggregate
(assignment_weights, x, codewords)
mmseg/models/utils/encoding.py:47
↓ 1 callersMethodattention
(self, x: torch.Tensor, attn_mask: Optional[torch.Tensor] = None)
models/backbones/eva_clip/transformer.py:478
↓ 1 callersMethodaug_test
Placeholder for augmentation test.
mmseg/models/segmentors/base.py:62
↓ 1 callersFunctionbasic_clean
(text)
models/backbones/utils.py:52
↓ 1 callersMethodbinary_mask_dice_loss
Args: mask_preds (Tensor): Mask prediction in shape (N1, H, W). gt_masks (Tensor): Ground truth in shape (N2, H, W)
mmseg/models/losses/match_loss.py:149
↓ 1 callersMethodbinary_mask_dice_loss
Args: mask_preds (Tensor): Mask prediction in shape (N1, H, W). gt_masks (Tensor): Ground truth in shape (N2, H, W)
mmseg/models/losses/match_costs.py:149
↓ 1 callersMethodbpe
(self, token)
models/backbones/utils.py:80
↓ 1 callersMethodbpe
(self, token)
models/backbones/eva_clip/tokenizer.py:98
↓ 1 callersMethodbrightness
Brightness distortion.
mmseg/datasets/pipelines/transforms.py:814
↓ 1 callersMethodbuild_attention_mask
(self)
models/backbones/clip/models.py:416
↓ 1 callersMethodbuild_attention_mask
(self)
models/backbones/clip/models.py:488
↓ 1 callersMethodbuild_attention_mask
(self)
models/backbones/eva_clip/transformer.py:720
↓ 1 callersMethodbuild_attn
(self, attn_cfg)
mmseg/models/backbones/vit.py:101
↓ 1 callersMethodbuild_ffn
(self, ffn_cfg)
mmseg/models/backbones/vit.py:104
↓ 1 callersMethodbuild_inputs_with_special_tokens
Build model inputs from a sequence or a pair of sequence for sequence classification tasks by concatenating and adding special tokens
models/backbones/siglip/tokenization_siglip.py:226
↓ 1 callersFunctionbuild_pixel_sampler
Build pixel sampler for segmentation map.
mmseg/core/seg/builder.py:6
↓ 1 callersFunctionbuild_prior_generator
(cfg, default_args=None)
mmseg/core/anchor/builder.py:11
↓ 1 callersMethodcalc_feat_dist
(self, img, gt, feat=None)
mmseg/models/uda/dacs.py:157
↓ 1 callersMethodcalc_style_disentanlge_loss
(self, stylized_src_grams, style, gram_masks)
mmseg/models/uda/stylization.py:162
↓ 1 callersMethodcalc_texture_regularization_loss
(self, src_grams, img)
mmseg/models/uda/stylization.py:141
↓ 1 callersMethodcam_cls_seg
CAM feature classification.
mmseg/models/decode_heads/da_head.py:138
↓ 1 callersMethodcanonicalize_text
Returns canonicalized `text` (puncuation removed). Args: text (`str`): String to be canonicalized. ke
models/backbones/siglip/tokenization_siglip.py:273
↓ 1 callersMethodcls_seg
(self, feat)
mmseg/models/decode_heads/maskclip_head.py:127
↓ 1 callersFunctioncolor_jitter
(color_jitter, mean, std, data=None, target=None, s=.25, p=.2)
mmseg/models/utils/dacs_transforms.py:50
↓ 1 callersFunctioncolorize_mask
(mask, palette)
mmseg/models/utils/visualization.py:57
↓ 1 callersFunctionconvert_siglip_checkpoint
Copy/paste/tweak model's weights to our SigLIP structure.
models/backbones/siglip/convert_siglip_to_hf.py:256
↓ 1 callersFunctionconvert_to_custom_text_state_dict
(state_dict: dict)
models/backbones/eva_clip/model.py:352
↓ 1 callersFunctionconvert_weights_to_lp
Convert applicable model parameters to low-precision (bf16 or fp16)
models/backbones/eva_clip/model.py:320
↓ 1 callersFunctioncreate_rename_keys
(config)
models/backbones/siglip/convert_siglip_to_hf.py:104
↓ 1 callersMethodcut_text
(self, text, offsets)
models/backbones/siglip/tokenization_utils.py:259
↓ 1 callersMethoddecode
(self, tokens)
models/backbones/utils.py:129
↓ 1 callersMethoddecode
(self, tokens)
models/backbones/eva_clip/tokenizer.py:147
↓ 1 callersFunctiondefault_bpe
()
models/backbones/utils.py:16
↓ 1 callersFunctiondefault_bpe
()
models/backbones/eva_clip/tokenizer.py:21
↓ 1 callersFunctiondenorm_
(img, mean, std)
mmseg/models/utils/dacs_transforms.py:42
↓ 1 callersFunctiondice_loss
Calculate dice loss, which is proposed in `V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation <https://arxiv
mmseg/models/losses/dice_loss.py:8
↓ 1 callersFunctiondownscale_label_ratio
(gt, scale_factor, min_ratio, n_
mmseg/utils/utils.py:18
↓ 1 callersMethodencode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
mmseg/models/uda/uda_decorator.py:41
↓ 1 callersMethodencode_image
(self, image, normalize: bool = False)
models/backbones/eva_clip/model.py:251
↓ 1 callersMethodencode_image
(self, image, normalize: bool = False)
models/backbones/eva_clip/model.py:306
↓ 1 callersMethodencode_text
(self, text, normalize: bool = False)
models/backbones/eva_clip/model.py:255
↓ 1 callersMethodencode_text
(self, text, normalize: bool = False)
models/backbones/eva_clip/model.py:310
← previousnext →201–300 of 1,143, ranked by callers