MCPcopy Create free account

hub / github.com/devinxzhang/MFuser / functions

Functions1,143 in github.com/devinxzhang/MFuser

Methodencode_decode
Placeholder for encode images with backbone and decode into a semantic segmentation map of the same size as input.
mmseg/models/segmentors/base.py:46
Functionencode_mask_results
Encode bitmap mask to RLE code. Args: mask_results (list | tuple[list]): bitmap mask results. In mask scoring rcnn, mask_resu
mmseg/core/mask/utils.py:38
Methodextensions
Generates all extensions of a given prefix token in the Trie. Example: ```python >>> trie = Trie() >>> trie
models/backbones/siglip/tokenization_utils.py:288
Methodextra_repr
Extra repr.
mmseg/models/decode_heads/decode_head.py:94
Methodextra_repr
Extra repr.
mmseg/models/losses/cross_entropy_loss.py:244
Methodextra_repr
(self)
models/backbones/clip/models.py:39
Methodextra_repr
(self)
models/backbones/eva_clip/eva_vit_model.py:48
Methodextract_feat
Placeholder for extract features from images.
mmseg/models/segmentors/base.py:41
Methodf
(*args, **kwargs)
models/backbones/dino_v2.py:140
Methodffn_residual_func
(x: Tensor)
models/backbones/dino_layers/block.py:93
Methodffn_residual_func
(x: Tensor, attn_bias=None)
models/backbones/dino_layers/block.py:223
Methodfill_all_templates_ensemble
(self, x='')
models/segmentors/mfuser_eva_clip.py:80
Methodflops
(self)
models/backbones/dino_layers/patch_embed.py:83
Methodforward
(self, x)
mmseg/ops/encoding.py:59
Methodforward
(self, x)
mmseg/ops/wrappers.py:47
Methodforward
Forward function. Args: inputs (tuple): Input data. kwargs (dict): Args for ``mmcv.parallel.scatter_g
mmseg/core/ddp_wrapper.py:102
Methodforward
Calls either :func:`forward_train` or :func:`forward_test` depending on whether ``return_loss`` is ``True``. Note this setting will c
mmseg/models/segmentors/base.py:104
Methodforward
(self, inputs)
mmseg/models/necks/fpn.py:162
Methodforward
(self, x)
mmseg/models/necks/segformer_adapter.py:16
Methodforward
(self, inputs)
mmseg/models/necks/featurepyramid.py:100
Methodforward
(self, x)
mmseg/models/backbones/resnest.py:30
Methodforward
(self, x)
mmseg/models/backbones/resnest.py:119
Methodforward
(self, x)
mmseg/models/backbones/resnest.py:228
Methodforward
(self, x, H, W)
mmseg/models/backbones/mix_transformer.py:37
Methodforward
(self, x, H, W)
mmseg/models/backbones/mix_transformer.py:78
Methodforward
(self, x, H, W)
mmseg/models/backbones/mix_transformer.py:144
Methodforward
(self, x)
mmseg/models/backbones/mix_transformer.py:177
Methodforward
(self, x)
mmseg/models/backbones/mix_transformer.py:433
Methodforward
(self, x, H, W)
mmseg/models/backbones/mix_transformer.py:446
Methodforward
(self, x)
mmseg/models/backbones/vit.py:115
Methodforward
(self, inputs)
mmseg/models/backbones/vit.py:416
Methodforward
Forward function.
mmseg/models/backbones/resnet.py:70
Methodforward
Forward function.
mmseg/models/backbones/resnet.py:268
Methodforward
Forward function.
mmseg/models/backbones/resnet.py:657
Methodforward
(self, x)
mmseg/models/utils/encoding.py:58
Methodforward
Forward function.
mmseg/models/utils/self_attention_block.py:133
Methodforward
(self, x)
mmseg/models/utils/se_layer.py:54
Methodforward
Forward function.
mmseg/models/utils/up_conv_block.py:95
Methodforward
Forward function for `SinePositionalEncoding`. Args: mask (Tensor): ByteTensor mask. Non-zero values representing
mmseg/models/utils/positional_encoding.py:55
Methodforward
Forward function for `LearnedPositionalEncoding`. Args: mask (Tensor): ByteTensor mask. Non-zero values representing
mmseg/models/utils/positional_encoding.py:131
Methodforward
(self, x)
mmseg/models/utils/transformer.py:95
Methodforward
Args: x (Tensor): Has shape (B, H*W, C_in). input_size (tuple[int]): The spatial shape of x, arrange as (H, W).
mmseg/models/utils/transformer.py:187
Methodforward
Forward function for `TransformerCoder`. Returns: Tensor: forwarded results with shape [num_query, bs, embed_dims].
mmseg/models/utils/transformer.py:399
Methodforward
Forward function for `TransformerDecoder`. Args: query (Tensor): Input query with shape `(num_query, bs, embed_di
mmseg/models/utils/transformer.py:434
Methodforward
Forward function for `Transformer`. Args: x (Tensor): Input query with shape [bs, c, h, w] where c = embed_dims.
mmseg/models/utils/transformer.py:498
Methodforward
Forward function for `TransformerDecoder`. Args: query (Tensor): Input query with shape `(num_query, bs, embed_di
mmseg/models/utils/transformer.py:562
Methodforward
Forward function for `Transformer`. Args: mlvl_feats (list(Tensor)): Input queries from different level. Each ele
mmseg/models/utils/transformer.py:818
Methodforward
Forward function for `DynamicConv`. Args: param_feature (Tensor): The feature can be used to generate the paramet
mmseg/models/utils/transformer.py:1040
Methodforward
(self, x)
mmseg/models/utils/inverted_residual.py:86
Methodforward
(self, x)
mmseg/models/utils/inverted_residual.py:188
Methodforward
(self, x)
mmseg/models/utils/embed.py:83
Methodforward
Args: x (Tensor): Has shape (B, C, H, W). In most case, C is 3. Returns: tuple: Contains merged results and
mmseg/models/utils/embed.py:196
Methodforward
Args: x (Tensor): Has shape (B, H*W, C_in). input_size (tuple[int]): The spatial shape of x, arrange as (H, W).
mmseg/models/utils/embed.py:298
Methodforward
(self, x)
mmseg/models/utils/wrappers.py:46
Methodforward
(self, inputs: Tensor)
mmseg/models/utils/ppm.py:119
Methodforward
(self, inputs: Tensor)
mmseg/models/utils/ppm.py:181
Methodforward
Forward function.
mmseg/models/decode_heads/dlv2_head.py:28
Methodforward
Forward function.
mmseg/models/decode_heads/sep_aspp_head.py:80
Methodforward
Forward function.
mmseg/models/decode_heads/uper_head.py:88
Methodforward
(self, x)
mmseg/models/decode_heads/segformer_head.py:25
Methodforward
(self, inputs)
mmseg/models/decode_heads/segformer_head.py:62
Methodforward
(self, inputs)
mmseg/models/decode_heads/identity_head.py:28
Methodforward
Forward function.
mmseg/models/decode_heads/isa_head.py:61
Methodforward
Forward function.
mmseg/models/decode_heads/isa_head.py:117
Methodforward
(self, inputs)
mmseg/models/decode_heads/maskclip_head.py:74
Methodforward
(self, inputs)
mmseg/models/decode_heads/fpn_head.py:54
Methodforward
Forward function.
mmseg/models/decode_heads/aspp_head.py:45
Methodforward
Forward function.
mmseg/models/decode_heads/aspp_head.py:95
Methodforward
Forward function.
mmseg/models/decode_heads/psp_head.py:49
Methodforward
Forward function.
mmseg/models/decode_heads/psp_head.py:96
Methodforward
Forward function. Args: feats (list[Tensor]): Multi scale Features from the upstream network, each is a 4D-tensor
mmseg/models/decode_heads/mask2former_head.py:455
Methodforward
(self, inputs)
mmseg/models/decode_heads/setr_mla_head.py:55
Methodforward
Forward function. Args: feats (list[Tensor]): Features from the upstream network, each is a 4D-tensor.
mmseg/models/decode_heads/maskformer_head.py:398
Methodforward
(self, x)
mmseg/models/decode_heads/setr_up_head.py:70
Methodforward
Forward function. Args: feats (list[Tensor]): Multi scale Features from the upstream network, each is a 4D-tensor
mmseg/models/decode_heads/tqdm_head.py:423
Methodforward
Forward function.
mmseg/models/decode_heads/fcn_head.py:76
Methodforward
Forward function.
mmseg/models/decode_heads/daformer_head.py:62
Methodforward
(self, inputs)
mmseg/models/decode_heads/daformer_head.py:153
Methodforward
Forward function.
mmseg/models/decode_heads/da_head.py:44
Methodforward
Forward function.
mmseg/models/decode_heads/da_head.py:59
Methodforward
Args: feats (list[Tensor]): Feature maps of each level. Each has shape of (batch_size, c, h, w). Returns
mmseg/models/plugins/tqdm_msdeformattn_pixel_decoder.py:167
Methodforward
Add padding to `x` Args: x (Tensor): Input tensor has shape (B, C, H, W). Returns: Tensor: The tensor with a
mmseg/models/plugins/transformerlayers.py:133
Methodforward
Args: x (Tensor): Has shape (B, C, H, W). In most case, C is 3. Returns: tuple: Contains merged results and
mmseg/models/plugins/transformerlayers.py:254
Methodforward
Args: x (Tensor): Has shape (B, H*W, C_in). input_size (tuple[int]): The spatial shape of x, arrange as (H, W).
mmseg/models/plugins/transformerlayers.py:359
Methodforward
Forward function for `MultiheadAttention`. **kwargs allow passing a more general data flow when combining with other operations in `t
mmseg/models/plugins/transformerlayers.py:462
Methodforward
Forward function for `FFN`. The function would add x to the output tensor if residue is None.
mmseg/models/plugins/transformerlayers.py:624
Methodforward
(self, query, key=None, value=None, query_pos=
mmseg/models/plugins/transformerlayers.py:768
Methodforward
(self, query, key, value, query_pos=None,
mmseg/models/plugins/transformerlayers.py:856
Methodforward
(self, q, k, v, soft_attn_mask)
mmseg/models/plugins/transformerlayers.py:901
Methodforward
(self, query, key=None, value=None, identity=N
mmseg/models/plugins/transformerlayers.py:955
Methodforward
(self, query, key=None, value=None, query_pos=
mmseg/models/plugins/transformerlayers.py:1105
Methodforward
(self, query, key, value, query_pos=None,
mmseg/models/plugins/transformerlayers.py:1195
Methodforward
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:162
Methodforward
Args: feats (list[Tensor]): Feature maps of each level. Each has shape of [bs, c, h, w]. img_metas (l
mmseg/models/plugins/pixel_decoder.py:85
Methodforward
Args: feats (list[Tensor]): Feature maps of each level. Each has shape of [bs, c, h, w]. img_metas (l
mmseg/models/plugins/pixel_decoder.py:185
Methodforward
Forward function. Args: pred (torch.Tensor): The prediction, has a shape (n, *). target (torch.Tensor): The label of
mmseg/models/losses/dice_loss.py:128
Methodforward
Forward function to calculate accuracy. Args: pred (torch.Tensor): Prediction of models. target (torch.Tensor): Targe
mmseg/models/losses/accuracy.py:70
Methodforward
Forward function.
mmseg/models/losses/cross_entropy_loss.py:249
Methodforward
Forward function. Args: pred (torch.Tensor): The prediction. target (torch.Tensor): The learning label of the predict
mmseg/models/losses/focal_loss.py:135
Methodforward
(self, input, target, **kwargs)
mmseg/models/losses/l2_loss.py:17
← previousnext →801–900 of 1,143, ranked by callers