Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devinxzhang/MFuser
/ functions
Functions
1,143 in github.com/devinxzhang/MFuser
⨍
Functions
1,143
◇
Types & classes
269
Method
__len__
Size of the full vocabulary with the added tokens.
models/backbones/siglip/tokenization_utils.py:499
Method
__nice__
(self)
mmseg/core/box/samplers/mask_sampling_result.py:40
Method
__nice__
(self)
mmseg/core/box/samplers/sampling_result.py:70
Method
__repr__
(self)
mmseg/ops/encoding.py:72
Method
__repr__
(self)
mmseg/datasets/pipelines/test_time_aug.py:130
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:232
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:292
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:360
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:402
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:449
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:493
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:569
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:645
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:704
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:743
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:773
Method
__repr__
(self)
mmseg/datasets/pipelines/transforms.py:885
Method
__repr__
(self)
mmseg/datasets/pipelines/loading.py:83
Method
__repr__
(self)
mmseg/datasets/pipelines/loading.py:151
Method
__repr__
(self)
mmseg/datasets/pipelines/compose.py:47
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:64
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:102
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:135
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:175
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:216
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:292
Method
__repr__
(self)
mmseg/datasets/pipelines/formating.py:365
Method
__repr__
(self)
mmseg/models/utils/encoding.py:71
Method
__repr__
str: a string that describes the module
mmseg/models/utils/positional_encoding.py:94
Method
__repr__
str: a string that describes the module
mmseg/models/utils/positional_encoding.py:155
Method
_batch_encode_plus
( self, batch_text_or_text_pairs: Union[ List[TextInput], List[TextInp
models/backbones/siglip/tokenization_utils.py:824
Function
_colorize
(img, cmap, mask_zero=False)
mmseg/models/utils/visualization.py:66
Method
_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
models/backbones/siglip/tokenization_siglip.py:335
Function
_convert_to_rgb
(image)
models/backbones/eva_clip/transform.py:39
Method
_convert_token_to_id
Converts a token (str) in an id using the vocab.
models/backbones/siglip/tokenization_siglip.py:330
Function
_convert_weights
(l)
models/backbones/eva_clip/model.py:323
Method
_decode
( self, token_ids: Union[int, List[int]], skip_special_tokens: bool = False, c
models/backbones/siglip/tokenization_utils.py:1081
Method
_do_evaluate
perform evaluation and save ckpt.
mmseg/core/evaluation/eval_hooks.py:30
Method
_do_evaluate
perform evaluation and save ckpt.
mmseg/core/evaluation/eval_hooks.py:66
Method
_encode_plus
( self, text: Union[TextInput, PreTokenizedInput, EncodedInput], text_pair: Optional[U
models/backbones/siglip/tokenization_utils.py:744
Method
_get_target_single
Compute classification and mask targets for one image. Args: cls_score (Tensor): Mask score logits from a single decoder layer
mmseg/models/decode_heads/mask2former_head.py:203
Method
_get_target_single
Compute classification and mask targets for one image. Args: cls_score (Tensor): Mask score logits from a single decoder layer
mmseg/models/decode_heads/maskformer_head.py:198
Method
_get_target_single
Compute classification and mask targets for one image. Args: cls_score (Tensor): Mask score logits from a single decoder layer
mmseg/models/decode_heads/tqdm_head.py:171
Method
_ignore_causal_mask_sdpa
Detects whether the optional user-specified attention_mask & the automatically created causal mask can be ignored in case PyTorch's S
models/backbones/siglip/modeling_siglip.py:278
Method
_init_weights
(self, m)
models/backbones/clip/models.py:570
Method
_init_weights
(self, m)
models/backbones/dino_layers/dino_head.py:30
Method
_init_weights
(self, m)
models/backbones/eva_clip/eva_vit_model.py:521
Method
_inner_forward
(x)
mmseg/models/backbones/resnest.py:230
Method
_inner_forward
(x)
mmseg/models/backbones/vit.py:117
Method
_inner_forward
(x)
mmseg/models/backbones/resnet.py:73
Method
_inner_forward
(x)
mmseg/models/backbones/resnet.py:271
Method
_inner_forward
(x)
mmseg/models/utils/inverted_residual.py:88
Method
_inner_forward
(x)
mmseg/models/utils/inverted_residual.py:190
Function
_insert_one_token_to_ordered_list
Inserts one token to an ordered list if it does not already exist. Note: token_list must be sorted.
models/backbones/siglip/tokenization_utils.py:394
Function
_is_end_of_word
Checks whether the last character in text is one of a punctuation, control or whitespace character.
models/backbones/siglip/tokenization_utils.py:382
Function
_is_start_of_word
Checks whether the first character in text is one of a punctuation, control or whitespace character.
models/backbones/siglip/tokenization_utils.py:388
Function
_params_equal
(ema_model, model)
mmseg/models/uda/dacs.py:25
Method
_sample_neg
Sample negative samples.
mmseg/core/box/samplers/mask_pseudo_sampler.py:22
Method
_sample_pos
Sample positive samples.
mmseg/core/box/samplers/mask_pseudo_sampler.py:18
Method
_tokenize
Returns a tokenized string. We de-activated the `add_dummy_prefix` option, thus the sentencepiece internals will always strip any
models/backbones/siglip/tokenization_siglip.py:309
Method
_unlock
(x)
models/backbones/eva_clip/transformer.py:591
Method
_unmask_unattended
( expanded_mask: torch.FloatTensor, min_dtype: float, )
models/backbones/siglip/modeling_siglip.py:266
Function
add_model_config
add model config path or file and update registry
models/backbones/eva_clip/factory.py:57
Function
add_synonym
(texts)
models/backbones/utils.py:186
Method
added_tokens_decoder
Returns the added tokens in the vocabulary as a dictionary of index to AddedToken. Returns: `Dict[str, int]`: The added
models/backbones/siglip/tokenization_utils.py:466
Method
added_tokens_encoder
Returns the sorted mapping from string to index. The added tokens encoder is cached for performance optimisation in `self._added_toke
models/backbones/siglip/tokenization_utils.py:458
Function
ade_classes
ADE20K class names for external use.
mmseg/core/evaluation/class_names.py:16
Function
ade_palette
ADE20K palette for external use.
mmseg/core/evaluation/class_names.py:65
Function
all_reduce_dict
Apply all reduce function for python dict object. The code is modified from https://github.com/Megvii- BaseDetection/YOLOX/blob/main/yolox/ut
mmseg/core/utils/dist_utils.py:96
Function
allreduce_grads
Allreduce gradients. Args: params (list[torch.Parameters]): List of parameters of a model coalesce (bool, optional): Whether allr
mmseg/core/utils/dist_utils.py:36
Method
assign
Computes one-to-one matching based on the weighted costs. This method assign each query prediction to a ground truth or background. T
mmseg/models/utils/assigner.py:69
Method
assign
(self, cls_pred, mask_pred, gt_labels, gt_masks,
mmseg/models/utils/assigner.py:174
Method
attn_residual_func
(x: Tensor)
models/backbones/dino_layers/block.py:90
Method
attn_residual_func
(x: Tensor, attn_bias=None)
models/backbones/dino_layers/block.py:220
Method
aug_test
Test with augmentations. Only rescale=True is supported.
mmseg/models/segmentors/encoder_decoder.py:291
Method
aug_test
Test with augmentations. Only rescale=True is supported.
mmseg/models/uda/uda_decorator.py:93
Method
aug_test
Test with augmentations. Only rescale=True is supported.
models/segmentors/mfuser_eva_clip.py:261
Method
aug_test
Test with augmentations. Only rescale=True is supported.
models/segmentors/mfuser_clip.py:259
Method
aug_test
Test with augmentations. Only rescale=True is supported.
models/segmentors/mfuser_siglip.py:259
Method
batch_decode
This method forwards all its arguments to SiglipTokenizer's [`~PreTrainedTokenizer.batch_decode`]. Please refer to the docstring of t
models/backbones/siglip/processing_siglip.py:130
Method
bboxes
torch.Tensor: concatenated positive and negative boxes
mmseg/core/box/samplers/sampling_result.py:51
Function
binary_cross_entropy
Calculate the binary CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, 1). label (torch.Tensor): The le
mmseg/models/losses/cross_entropy_loss.py:88
Function
build_anchor_generator
(cfg, default_args=None)
mmseg/core/anchor/builder.py:15
Function
build_backbone
Build backbone.
mmseg/models/builder.py:41
Function
build_bbox_coder
Builder of box coder.
mmseg/core/box/builder.py:13
Function
build_head
Build head.
mmseg/models/builder.py:51
Function
build_neck
Build neck.
mmseg/models/builder.py:46
Function
build_train_model
Build model.
mmseg/models/builder.py:61
Function
build_transformer
Build Transformer.
mmseg/models/builder.py:35
Function
cityscapes_classes
Cityscapes class names for external use.
mmseg/core/evaluation/class_names.py:6
Function
cityscapes_palette
Cityscapes palette for external use.
mmseg/core/evaluation/class_names.py:56
Function
convert_json_to_label
(json_file)
tools/convert_datasets/cityscapes.py:14
Function
convert_to_train_id
(file)
tools/convert_datasets/synthia.py:11
Function
convert_to_train_id
(file)
tools/convert_datasets/gta.py:10
Method
convert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
models/backbones/siglip/tokenization_siglip.py:340
Function
create_model_and_transforms
( model_name: str, pretrained: Optional[str] = None, precision: str = 'fp32',
models/backbones/eva_clip/factory.py:369
Function
create_model_from_pretrained
( model_name: str, pretrained: str, precision: str = 'fp32', device: Union[str
models/backbones/eva_clip/factory.py:423
Method
create_token_type_ids_from_sequences
Create a mask from the two sequences passed to be used in a sequence-pair classification task. T5 does not make use of token type ids
models/backbones/siglip/tokenization_siglip.py:203
Function
cross_entropy
cross_entropy. The wrapper function for :func:`F.cross_entropy` Args: pred (torch.Tensor): The prediction with shape (N, 1). labe
mmseg/models/losses/cross_entropy_loss.py:11
Function
default_flax_embed_init
(tensor)
models/backbones/siglip/modeling_siglip.py:123
← previous
next →
701–800 of 1,143, ranked by callers