MCPcopy Create free account

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

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

↓ 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_costs.py:149
↓ 1 callersFunctionbuild_prior_generator
(cfg, default_args=None)
segmentation/mmseg_custom/core/anchor/builder.py:11
↓ 1 callersFunctionbuild_sampler
Builder of box sampler.
segmentation/mmseg_custom/core/box/builder.py:8
↓ 1 callersFunctioncheck_forward_equal_with_pytorch_double
()
detection/ops/test.py:27
↓ 1 callersFunctioncheck_forward_equal_with_pytorch_float
()
detection/ops/test.py:54
↓ 1 callersFunctioncheck_gradient_numerical
(channels=4, grad_value=True, grad_sampling_loc=True
detection/ops/test.py:78
↓ 1 callersFunctiondeform_inputs
(x)
detection/mmdet_custom/models/backbones/comer_modules.py:28
↓ 1 callersFunctiondeform_inputs
(x)
segmentation/mmseg_custom/models/backbones/comer_modules.py:28
↓ 1 callersFunctiondice_loss
Calculate dice loss, which is proposed in `V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentation <https://arxiv
segmentation/mmseg_custom/models/losses/dice_loss.py:8
↓ 1 callersMethodffn_forward
(self, x)
detection/mmdet_custom/models/backbones/base/uniperceiver.py:132
↓ 1 callersMethodffn_forward
(self, x)
segmentation/mmseg_custom/models/backbones/base/uniperceiver.py:132
↓ 1 callersMethodforward_features
(self, x)
detection/mmdet_custom/models/backbones/vit_baseline.py:71
↓ 1 callersMethodforward_features
(self, x)
detection/mmdet_custom/models/backbones/base/vit.py:435
↓ 1 callersMethodforward_features
(self, x)
segmentation/mmseg_custom/models/backbones/vit_baseline.py:75
↓ 1 callersMethodforward_features
(self, x)
segmentation/mmseg_custom/models/backbones/beit_baseline.py:393
↓ 1 callersMethodforward_features
(self, x)
segmentation/mmseg_custom/models/backbones/base/vit.py:324
↓ 1 callersMethodgen_encoder_output_proposals
Generate proposals from encoded memory. Args: memory (Tensor) : The output of encoder, has shape (bs, num_key, em
segmentation/mmseg_custom/models/utils/transformer.py:688
↓ 1 callersFunctiongeometric_progression
(a, r, n)
detection/mmcv_custom/checkpoint.py:396
↓ 1 callersFunctiongeometric_progression
(a, r, n)
segmentation/mmcv_custom/checkpoint.py:412
↓ 1 callersFunctionget_deprecated_model_names
()
detection/mmcv_custom/checkpoint.py:209
↓ 1 callersFunctionget_deprecated_model_names
()
segmentation/mmcv_custom/checkpoint.py:210
↓ 1 callersFunctionget_extensions
()
detection/ops/setup.py:19
↓ 1 callersFunctionget_external_models
()
detection/mmcv_custom/checkpoint.py:188
↓ 1 callersFunctionget_external_models
()
segmentation/mmcv_custom/checkpoint.py:189
↓ 1 callersFunctionget_mmcls_models
()
detection/mmcv_custom/checkpoint.py:202
↓ 1 callersFunctionget_mmcls_models
()
segmentation/mmcv_custom/checkpoint.py:203
↓ 1 callersFunctionget_num_layer_for_vit
(var_name, num_max_layer)
detection/mmcv_custom/layer_decay_optimizer_constructor.py:17
↓ 1 callersFunctionget_num_layer_for_vit
(var_name, num_max_layer)
segmentation/mmcv_custom/layer_decay_optimizer_constructor.py:17
↓ 1 callersMethodget_num_layers
(self)
detection/mmdet_custom/models/backbones/base/beit.py:430
↓ 1 callersMethodget_num_layers
(self)
segmentation/mmseg_custom/models/backbones/base/beit.py:377
↓ 1 callersMethodget_pad_shape
(self, input_shape)
segmentation/mmseg_custom/models/utils/transformer.py:83
↓ 1 callersFunctionget_parameter_number
(model)
detection/train.py:89
↓ 1 callersFunctionget_parameter_number
(model)
segmentation/train.py:22
↓ 1 callersMethodget_proposal_pos_embed
Get the position embedding of proposal.
segmentation/mmseg_custom/models/utils/transformer.py:800
↓ 1 callersFunctionget_reference_points
(spatial_shapes, device)
detection/mmdet_custom/models/backbones/deformable_modules.py:6
↓ 1 callersMethodget_reference_points
Get the reference points used in decoder. Args: spatial_shapes (Tensor): The shape of all feature maps, has shape
segmentation/mmseg_custom/models/utils/transformer.py:756
↓ 1 callersFunctionget_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Key
detection/mmcv_custom/checkpoint.py:533
↓ 1 callersFunctionget_state_dict
Returns a dictionary containing a whole state of the module. Both parameters and persistent buffers (e.g. running averages) are included. Key
segmentation/mmcv_custom/checkpoint.py:550
↓ 1 callersMethodget_targets
Compute classification and mask targets for all images for a decoder layer. Args: cls_scores_list (list[Tensor]): Mask sc
segmentation/mmseg_custom/models/decode_heads/mask2former_head.py:154
↓ 1 callersMethodget_targets
Compute classification and mask targets for all images for a decoder layer. Args: cls_scores_list (list[Tensor]): Mask sc
segmentation/mmseg_custom/models/decode_heads/maskformer_head.py:153
↓ 1 callersFunctionget_uncertain_point_coords_with_randomness
Get ``num_points`` most uncertain points with random points during train. Sample points in [0, 1] x [0, 1] coordinate space based on their
segmentation/mmseg_custom/models/utils/point_sample.py:32
↓ 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
segmentation/mmseg_custom/models/utils/point_sample.py:6
↓ 1 callersMethodget_valid_ratio
Get the valid radios of feature maps of all level.
segmentation/mmseg_custom/models/utils/transformer.py:790
↓ 1 callersFunctioninference_detector
Inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str/ndarray or list[str/ndarray]): Eithe
detection/visualization.py:40
↓ 1 callersMethodinit_layers
Initialize layers of the DeformableDetrTransformer.
segmentation/mmseg_custom/models/utils/transformer.py:662
↓ 1 callersMethodinit_weights
(self, pretrained=None)
detection/mmdet_custom/models/backbones/base/vit.py:430
↓ 1 callersMethodinit_weights
(self, pretrained=None)
detection/mmdet_custom/models/backbones/base/uniperceiver.py:247
↓ 1 callersMethodinit_weights
Initialize the weights in backbone. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
segmentation/mmseg_custom/models/backbones/beit_baseline.py:379
↓ 1 callersMethodinit_weights
(self, pretrained=None)
segmentation/mmseg_custom/models/backbones/base/vit.py:319
↓ 1 callersMethodinit_weights
(self, pretrained=None)
segmentation/mmseg_custom/models/backbones/base/uniperceiver.py:248
↓ 1 callersMethodinit_weights
(self)
segmentation/mmseg_custom/models/utils/transformer.py:491
↓ 1 callersMethodinit_weights
(self)
segmentation/mmseg_custom/models/decode_heads/maskformer_head.py:150
↓ 1 callersFunctionload
(module, prefix='')
detection/mmcv_custom/checkpoint.py:67
↓ 1 callersFunctionload
(module, prefix='')
segmentation/mmcv_custom/checkpoint.py:68
↓ 1 callersFunctionload_fileclient_dist
In distributed setting, this function only download checkpoint at local rank 0.
detection/mmcv_custom/checkpoint.py:155
↓ 1 callersFunctionload_fileclient_dist
In distributed setting, this function only download checkpoint at local rank 0.
segmentation/mmcv_custom/checkpoint.py:156
↓ 1 callersFunctionload_pavimodel_dist
In distributed setting, this function only download checkpoint at local rank 0.
detection/mmcv_custom/checkpoint.py:127
↓ 1 callersFunctionload_pavimodel_dist
In distributed setting, this function only download checkpoint at local rank 0.
segmentation/mmcv_custom/checkpoint.py:128
↓ 1 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/checkpoint.py:42
↓ 1 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/checkpoint.py:43
↓ 1 callersMethodloss
Loss function. Args: all_cls_scores (Tensor): Classification scores for all decoder layers with shape [num_decode
segmentation/mmseg_custom/models/decode_heads/mask2former_head.py:361
↓ 1 callersMethodloss
Loss function. Args: all_cls_scores (Tensor): Classification scores for all decoder layers with shape [num_decode
segmentation/mmseg_custom/models/decode_heads/maskformer_head.py:259
↓ 1 callersFunctionmain
()
detection/train.py:95
↓ 1 callersFunctionmain
()
detection/test.py:110
↓ 1 callersFunctionmain
()
detection/visualization.py:70
↓ 1 callersFunctionmain
()
segmentation/train.py:104
↓ 1 callersFunctionmain
()
segmentation/test.py:111
↓ 1 callersFunctionmain
()
segmentation/image_demo.py:16
↓ 1 callersFunctionmain
()
segmentation/video_demo.py:13
↓ 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
segmentation/mmseg_custom/models/losses/dice_loss.py:47
↓ 1 callersFunctionobj2tensor
Serialize picklable python object to tensor.
segmentation/mmseg_custom/core/utils/dist_utils.py:75
↓ 1 callersFunctionparse_args
()
detection/train.py:23
↓ 1 callersFunctionparse_args
()
detection/test.py:23
↓ 1 callersFunctionparse_args
()
segmentation/train.py:27
↓ 1 callersFunctionparse_args
()
segmentation/test.py:22
↓ 1 callersMethodrandom_sample_ratio
Randomly sample an img_scale when ``ratio_range`` is specified. A ratio will be randomly sampled from the range specified by ``ratio_
segmentation/mmseg_custom/datasets/pipelines/transform.py:110
↓ 1 callersMethodrandom_select
Randomly select an img_scale from given candidates. Args: img_scales (list[tuple]): Images scales for selection. Returns
segmentation/mmseg_custom/datasets/pipelines/transform.py:65
↓ 1 callersMethodremove_boxes
(self, boxes, scales=['s', 'm', 'l'])
detection/mmdet_custom/models/detectors/htc_aug.py:43
↓ 1 callersMethodsingle_level_valid_flags
Generate the valid flags of points of a single feature map. Args: featmap_size (tuple[int]): The size of feature maps, arrange as
segmentation/mmseg_custom/core/anchor/point_generator.py:202
↓ 1 callersMethodslide_inference
Inference by sliding-window with overlap. If h_crop > h_img or w_crop > w_img, the small patch will be used to decode without padding
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:156
↓ 1 callersMethodslide_inference
Inference by sliding-window with overlap. If h_crop > h_img or w_crop > w_img, the small patch will be used to decode without padding
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:156
↓ 1 callersFunctiontensor2obj
Deserialize tensor to picklable python object.
segmentation/mmseg_custom/core/utils/dist_utils.py:81
↓ 1 callersFunctionweights_to_cpu
Copy a model state_dict to cpu. Args: state_dict (OrderedDict): Model weights on GPU. Returns: OrderedDict: Model weights on
detection/mmcv_custom/checkpoint.py:500
↓ 1 callersFunctionweights_to_cpu
Copy a model state_dict to cpu. Args: state_dict (OrderedDict): Model weights on GPU. Returns: OrderedDict: Model weights on
detection/mmcv_custom/my_checkpoint.py:144
↓ 1 callersFunctionweights_to_cpu
Copy a model state_dict to cpu. Args: state_dict (OrderedDict): Model weights on GPU. Returns: OrderedDict: Model weights on
segmentation/mmcv_custom/checkpoint.py:517
↓ 1 callersFunctionweights_to_cpu
Copy a model state_dict to cpu. Args: state_dict (OrderedDict): Model weights on GPU. Returns: OrderedDict: Model weights on
segmentation/mmcv_custom/my_checkpoint.py:144
↓ 1 callersMethodwhole_inference
Inference with full image.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former.py:201
↓ 1 callersMethodwhole_inference
Inference with full image.
segmentation/mmseg_custom/models/segmentors/encoder_decoder_mask2former_aug.py:205
↓ 1 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
detection/mmdet_custom/models/backbones/base/beit.py:27
↓ 1 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
detection/mmdet_custom/models/backbones/base/uniperceiver.py:13
↓ 1 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
segmentation/mmseg_custom/models/backbones/base/uniperceiver.py:13
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
detection/mmdet_custom/models/backbones/base/beit.py:42
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
detection/mmdet_custom/models/backbones/base/uniperceiver.py:27
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
segmentation/mmseg_custom/models/backbones/base/uniperceiver.py:27
FunctionPYBIND11_MODULE
detection/ops/src/vision.cpp:13
Method__call__
Call function to load images into results. Args: results (dict): A result dict contains the file name of the image
detection/visualization.py:18
Method__call__
Call function to resize images, bounding boxes, masks, semantic segmentation map. Args: results (dict): Result dict from
segmentation/mmseg_custom/datasets/pipelines/transform.py:220
Method__call__
Call function to pad images, masks, semantic segmentation maps. Args: results (dict): Result dict from loading pipeline.
segmentation/mmseg_custom/datasets/pipelines/transform.py:287
Method__call__
Call function to process the image with gamma correction. Args: results (dict): Result dict from loading pipeline. Retur
segmentation/mmseg_custom/datasets/pipelines/transform.py:324
Method__call__
Call function to transform and format common fields in results. Args: results (dict): Result dict contains the data to convert.
segmentation/mmseg_custom/datasets/pipelines/formatting.py:19
← previousnext →101–200 of 528, ranked by callers