MCPcopy Create free account

hub / github.com/Traffic-X/ViT-CoMer / functions

Functions528 in github.com/Traffic-X/ViT-CoMer

↓ 27 callersMethodinfo
(self)
segmentation/mmseg_custom/models/utils/assigner.py:23
↓ 18 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print(f'self = {self.to(None)}
segmentation/mmseg_custom/core/box/samplers/sampling_result.py:55
↓ 10 callersMethodlog
(self, runner)
segmentation/mmcv_custom/customized_text.py:90
↓ 9 callersMethod__init__
(self, inplanes=64, embed_dim=384)
detection/mmdet_custom/models/backbones/comer_modules.py:430
↓ 9 callersMethod__init__
(self, inplanes=64, embed_dim=384)
segmentation/mmseg_custom/models/backbones/comer_modules.py:436
↓ 9 callersMethod__init__
(self, embed_dims=256, feedforward_channels=1024, num_fcs=2
segmentation/mmseg_custom/models/utils/transformer.py:282
↓ 8 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
segmentation/mmcv_custom/checkpoint.py:319
↓ 7 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
detection/mmdet_custom/models/backbones/base/beit.py:74
↓ 7 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
segmentation/mmseg_custom/models/backbones/beit_baseline.py:41
↓ 7 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
segmentation/mmseg_custom/models/backbones/base/beit.py:41
↓ 6 callersMethod__init__
(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, drop=0., with_cp=False, attn_drop=0., dr
detection/mmdet_custom/models/backbones/base/vit.py:293
↓ 6 callersFunctionadd_prefix
Add prefix for dict. Args: inputs (dict): The input dict with str keys. prefix (str): The prefix to add. Returns: d
segmentation/mmseg_custom/core/utils/misc.py:24
↓ 5 callersMethod__init__
(self, dim, num_heads=8, qkv_bias=False, attn_drop=0., proj_drop=0.)
detection/mmdet_custom/models/backbones/base/uniperceiver.py:44
↓ 5 callersMethod__init__
(self, dim, num_heads=8, qkv_bias=False, attn_drop=0., proj_drop=0.)
segmentation/mmseg_custom/models/backbones/base/uniperceiver.py:44
↓ 5 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL,
detection/mmcv_custom/checkpoint.py:312
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
detection/mmcv_custom/checkpoint.py:109
↓ 5 callersFunctionload_url_dist
In distributed setting, this function only download checkpoint at local rank 0.
segmentation/mmcv_custom/checkpoint.py:110
↓ 4 callersMethod__init__
(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, drop=0., attn_drop=0., drop_path=0., act
segmentation/mmseg_custom/models/backbones/base/vit.py:211
↓ 4 callersFunctionmulti_apply
Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and map the multiple outputs o
segmentation/mmseg_custom/core/utils/misc.py:2
↓ 3 callersMethod_reset_parameters
(self)
detection/ops/modules/ms_deform_attn.py:64
↓ 3 callersFunctionbuild_match_cost
Build Match Cost.
segmentation/mmseg_custom/models/builder.py:11
↓ 3 callersFunctiondeform_inputs_only_one
(x, h, w)
detection/mmdet_custom/models/backbones/comer_modules.py:50
↓ 3 callersFunctiondeform_inputs_only_one
(x, h, w)
segmentation/mmseg_custom/models/backbones/comer_modules.py:50
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:70
↓ 3 callersMethodencode_decode
Encode images with backbone and decode into a semantic segmentation map of the same size as input.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:70
↓ 3 callersMethodforward_train
Forward function for training. Args: img (Tensor): Input images. img_metas (list[dict]): List of image info dict wher
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:122
↓ 3 callersMethodforward_train
Forward function for training. Args: img (Tensor): Input images. img_metas (list[dict]): List of image info dict wher
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:122
↓ 3 callersFunctionget_reference_points
(spatial_shapes, device)
detection/mmdet_custom/models/backbones/comer_modules.py:13
↓ 3 callersFunctionget_reference_points
(spatial_shapes, device)
segmentation/mmseg_custom/models/backbones/comer_modules.py:13
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:220
↓ 3 callersMethodinference
Inference with slide/whole style. Args: img (Tensor): The input image of shape (N, 3, H, W). img_meta (dict): Image i
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:224
↓ 2 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
detection/mmdet_custom/models/necks/extra_attention.py:14
↓ 2 callersFunction_get_mmcv_home
()
detection/mmcv_custom/checkpoint.py:31
↓ 2 callersFunction_get_mmcv_home
()
segmentation/mmcv_custom/checkpoint.py:32
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
segmentation/mmseg_custom/core/anchor/point_generator.py:11
↓ 2 callersMethod_meshgrid
(self, x, y, row_major=True)
segmentation/mmseg_custom/core/anchor/point_generator.py:68
↓ 2 callersMethodassign
Assign boxes to either a ground truth boxes or a negative boxes.
segmentation/mmseg_custom/models/utils/assigner.py:35
↓ 2 callersFunctionbuild_assigner
Build Assigner.
segmentation/mmseg_custom/models/builder.py:16
↓ 2 callersMethodextract_feat
Extract features from images.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:63
↓ 2 callersMethodextract_feat
Extract features from images.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:63
↓ 2 callersMethodforward
Forward function for `FFN`. The function would add x to the output tensor if residue is None.
segmentation/mmseg_custom/models/utils/transformer.py:318
↓ 2 callersMethodforward_head
Forward for head part which is called after every decoder layer. Args: decoder_out (Tensor): in shape (num_queries, batch_size, c
segmentation/mmseg_custom/models/decode_heads/mask2former_head.py:404
↓ 2 callersMethodforward_test
Test segment without test-time aumengtation. Only the output of last decoder layers was used. Args: inputs (list[Tensor]
segmentation/mmseg_custom/models/decode_heads/maskformer_head.py:497
↓ 2 callersFunctionget_torchvision_models
()
detection/mmcv_custom/checkpoint.py:176
↓ 2 callersFunctionget_torchvision_models
()
segmentation/mmcv_custom/checkpoint.py:177
↓ 2 callersMethodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
detection/mmdet_custom/models/backbones/base/beit.py:401
↓ 2 callersMethodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
segmentation/mmseg_custom/models/backbones/base/beit.py:348
↓ 2 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
segmentation/mmseg_custom/models/utils/transformer.py:235
↓ 2 callersFunctionload_state_dict
Load state_dict to a module. This method is modified from :meth:`torch.nn.Module.load_state_dict`. Default value for ``strict`` is set to ``F
detection/mmcv_custom/my_checkpoint.py:33
↓ 2 callersFunctionload_state_dict
Load state_dict to a module. This method is modified from :meth:`torch.nn.Module.load_state_dict`. Default value for ``strict`` is set to ``F
segmentation/mmcv_custom/my_checkpoint.py:33
↓ 2 callersMethodmerge_aug_results
(self, aug_bboxes, aug_scores, img_metas)
detection/mmdet_custom/models/detectors/htc_aug.py:26
↓ 2 callersFunctionms_deform_attn_core_pytorch
(value, value_spatial_shapes, sampling_locations, attention_weights)
detection/ops/functions/ms_deform_attn_func.py:49
↓ 2 callersMethodrandom_sample
Randomly sample an img_scale when ``multiscale_mode=='range'``. Args: img_scales (list[tuple]): Images scale range for sampling.
segmentation/mmseg_custom/datasets/pipelines/transform.py:83
↓ 2 callersFunctionreduce_mean
Obtain the mean of tensor on different GPUs.
segmentation/mmseg_custom/core/utils/dist_utils.py:66
↓ 2 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
segmentation/mmseg_custom/core/box/samplers/base_sampler.py:34
↓ 2 callersMethodsingle_level_grid_priors
Generate grid Points of a single level. Note: This function is usually called by method ``self.grid_priors``. Args:
segmentation/mmseg_custom/core/anchor/point_generator.py:116
↓ 1 callersMethod__init__
(self, num_feats, temperature=10000, normalize=False,
segmentation/mmseg_custom/models/utils/positional_encoding.py:35
↓ 1 callersMethod__init__
(self, in_channels, feat_channels, out_channels,
segmentation/mmseg_custom/models/plugins/pixel_decoder.py:31
↓ 1 callersMethod_add_level_embed
(self, c2, c3, c4)
detection/mmdet_custom/models/backbones/vit_comer.py:96
↓ 1 callersMethod_add_level_embed
(self, c2, c3, c4)
segmentation/mmseg_custom/models/backbones/vit_comer.py:94
↓ 1 callersFunction_allreduce_coalesced
(tensors, world_size, bucket_size_mb=-1)
segmentation/mmseg_custom/core/utils/dist_utils.py:14
↓ 1 callersMethod_auxiliary_head_forward_train
Run forward function and calculate loss for auxiliary head in training.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:99
↓ 1 callersMethod_auxiliary_head_forward_train
Run forward function and calculate loss for auxiliary head in training.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:99
↓ 1 callersMethod_binary_cross_entropy
Args: cls_pred (Tensor): The prediction with shape (num_query, 1, *) or (num_query, *). gt_labels (Te
segmentation/mmseg_custom/models/losses/match_costs.py:196
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:93
↓ 1 callersMethod_decode_head_forward_test
Run forward function and calculate loss for decode head in inference.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:93
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:82
↓ 1 callersMethod_decode_head_forward_train
Run forward function and calculate loss for decode head in training.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:82
↓ 1 callersFunction_expand_onehot_labels
Expand onehot labels to match the size of prediction.
segmentation/mmseg_custom/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.
segmentation/mmseg_custom/core/utils/dist_utils.py:87
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, H, W)
detection/mmdet_custom/models/backbones/vit_baseline.py:64
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, H, W)
detection/mmdet_custom/models/backbones/vit_comer.py:85
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, H, W)
detection/mmdet_custom/models/backbones/base/uniperceiver.py:199
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, H, W)
segmentation/mmseg_custom/models/backbones/vit_baseline.py:68
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, H, W)
segmentation/mmseg_custom/models/backbones/vit_comer.py:83
↓ 1 callersMethod_get_pos_embed
(self, pos_embed, H, W)
segmentation/mmseg_custom/models/backbones/base/uniperceiver.py:200
↓ 1 callersMethod_init_auxiliary_head
Initialize ``auxiliary_head``
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:53
↓ 1 callersMethod_init_auxiliary_head
Initialize ``auxiliary_head``
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:53
↓ 1 callersMethod_init_decode_head
Initialize ``decode_head``
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:47
↓ 1 callersMethod_init_decode_head
Initialize ``decode_head``
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:47
↓ 1 callersFunction_is_power_of_2
(n)
detection/ops/modules/ms_deform_attn.py:22
↓ 1 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
detection/mmcv_custom/checkpoint.py:229
↓ 1 callersFunction_load_checkpoint
Load checkpoint from somewhere (modelzoo, file, url). Args: filename (str): Accept local filepath, URL, ``torchvision://xxx``,
segmentation/mmcv_custom/checkpoint.py:230
↓ 1 callersMethod_log_info
(self, log_dict, runner)
detection/mmcv_custom/customized_text.py:21
↓ 1 callersMethod_log_info
(self, log_dict, runner)
segmentation/mmcv_custom/customized_text.py:22
↓ 1 callersMethod_pad_img
Pad images according to ``self.size``.
segmentation/mmseg_custom/datasets/pipelines/transform.py:267
↓ 1 callersMethod_pad_seg
Pad masks according to ``results['pad_shape']``.
segmentation/mmseg_custom/datasets/pipelines/transform.py:280
↓ 1 callersFunction_process_mmcls_checkpoint
(checkpoint)
detection/mmcv_custom/checkpoint.py:218
↓ 1 callersFunction_process_mmcls_checkpoint
(checkpoint)
segmentation/mmcv_custom/checkpoint.py:219
↓ 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
segmentation/mmseg_custom/datasets/pipelines/transform.py:136
↓ 1 callersMethod_resize_img
Resize images with ``results['scale']``.
segmentation/mmseg_custom/datasets/pipelines/transform.py:169
↓ 1 callersMethod_resize_seg
Resize semantic segmentation map with ``results['scale']``.
segmentation/mmseg_custom/datasets/pipelines/transform.py:207
↓ 1 callersMethod_sample_neg
Sample negative samples.
segmentation/mmseg_custom/core/box/samplers/base_sampler.py:30
↓ 1 callersMethod_sample_pos
Sample positive samples.
segmentation/mmseg_custom/core/box/samplers/base_sampler.py:25
↓ 1 callersFunction_save_to_state_dict
Saves module state to `destination` dictionary. This method is modified from :meth:`torch.nn.Module._save_to_state_dict`. Args: modul
detection/mmcv_custom/checkpoint.py:514
↓ 1 callersFunction_save_to_state_dict
Saves module state to `destination` dictionary. This method is modified from :meth:`torch.nn.Module._save_to_state_dict`. Args: modul
segmentation/mmcv_custom/checkpoint.py:531
↓ 1 callersMethodaug_bbox_forward
(self, x, proposal_list, img_metas, rescale=False)
detection/mmdet_custom/models/detectors/htc_aug.py:67
↓ 1 callersMethodaug_segm_forward
(self, img_feats, det_bboxes, det_labels, semantic_feats, img_metas)
detection/mmdet_custom/models/detectors/htc_aug.py:148
↓ 1 callersMethodaug_test_vote
(self, imgs, img_metas, rescale=False)
detection/mmdet_custom/models/detectors/htc_aug.py:203
↓ 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)
segmentation/mmseg_custom/models/losses/match_loss.py:149
next →1–100 of 528, ranked by callers