MCPcopy Create free account

hub / github.com/VincentHancoder/SSGD / functions

Functions2,751 in github.com/VincentHancoder/SSGD

↓ 4 callersMethodevaluate
Evaluation in COCO Panoptic protocol. Args: results (list[dict]): Testing results of the dataset. metric (str | list[
mmdet/datasets/coco_panoptic.py:568
↓ 4 callersMethodevaluate
Evaluation in COCO protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[s
mmdet/datasets/coco.py:592
↓ 4 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmdet/models/detectors/single_stage.py:41
↓ 4 callersMethodflip
see :func:`BaseInstanceMasks.flip`
mmdet/core/mask/structures.py:663
↓ 4 callersMethodforward
(self, x)
tests/test_data/test_datasets/test_common.py:326
↓ 4 callersMethodget_ann_info
Get annotation of concatenated dataset by index. Args: idx (int): Index of data. Returns: dict: Annotation i
mmdet/datasets/dataset_wrappers.py:72
↓ 4 callersFunctionget_k_for_topk
Get k of TopK for onnx exporting. The K of TopK in TensorRT should not be a Tensor, while in ONNX Runtime it could be a Tensor.Due to dynam
mmdet/core/export/onnx_helper.py:46
↓ 4 callersMethodmake_stage_plugins
Make plugins for ResNet ``stage_idx`` th stage. Currently we support to insert ``context_block``, ``empirical_attention_block``, ``no
mmdet/models/backbones/resnet.py:494
↓ 4 callersFunctionmask2bbox
Obtain tight bounding boxes of binary masks. Args: masks (Tensor): Binary mask of shape (n, h, w). Returns: Tensor: Bboxe wi
mmdet/core/mask/utils.py:68
↓ 4 callersFunctionmodel_aug_test_template
(cfg_file)
tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:13
↓ 4 callersFunctionnlc_to_nchw
Convert [N, L, C] shape tensor to [N, C, H, W] shape tensor. Args: x (Tensor): The input tensor of shape [N, L, C] before conversion.
mmdet/models/utils/transformer.py:32
↓ 4 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
mmdet/models/backbones/hrnet.py:408
↓ 4 callersMethodpoints2bbox
Converting the points set into bounding box. :param pts: the input points sets (fields), each points set (fields) is represented
mmdet/models/dense_heads/reppoints_head.py:170
↓ 4 callersMethodprepare_train_img
Get training data and annotations after pipeline. Args: idx (int): Index of data. Returns: dict: Training da
mmdet/datasets/custom.py:224
↓ 4 callersFunctionpreprocess_example_input
Prepare an example input image for ``generate_inputs_and_wrap_model``. Args: input_config (dict): customized config describing the exampl
mmdet/core/export/pytorch2onnx.py:102
↓ 4 callersMethodresize
See :func:`BaseInstanceMasks.resize`.
mmdet/core/mask/structures.py:278
↓ 4 callersMethodresize_feats
Downsample the first feat and upsample last feat in feats.
mmdet/models/dense_heads/solo_head.py:132
↓ 4 callersMethodresults2json
Dump the detection results to a COCO style json file. There are 3 types of results: proposals, bbox predictions, mask predictions, an
mmdet/datasets/ssgd.py:261
↓ 4 callersMethodside_aware_split
Split side-aware features aligned with orders of bucketing targets.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:289
↓ 4 callersMethodsimple_test_bboxes
Test det bboxes without test-time augmentation. Args: feats (tuple[torch.Tensor]): Multi-level features from the
mmdet/models/dense_heads/detr_head.py:685
↓ 4 callersFunctionsingle_gpu_test
(model, data_loader, show=False, out_dir=None,
mmdet/apis/test.py:17
↓ 4 callersMethodsparse_priors
Generate sparse points according to the ``prior_idxs``. Args: prior_idxs (Tensor): The index of corresponding anchors
mmdet/core/anchor/point_generator.py:234
↓ 4 callersFunctionsync_random_seed
Make sure different ranks share the same seed. All workers must call this function, otherwise it will deadlock. This method is generally used
mmdet/core/utils/dist_utils.py:157
↓ 4 callersFunctiontpfp_openimages
Check if detected bboxes are true positive or false positive. Args: det_bbox (ndarray): Detected bboxes of this image, of shape (m, 5).
mmdet/core/evaluation/mean_ap.py:272
↓ 4 callersMethodxyxy2xywh
Convert ``xyxy`` style bounding boxes to ``xywh`` style for COCO evaluation. Args: bbox (numpy.ndarray): The bounding box
mmdet/datasets/coco.py:204
↓ 4 callersMethodxyxy2xywh
Convert ``xyxy`` style bounding boxes to ``xywh`` style for COCO evaluation. Args: bbox (numpy.ndarray): The bounding box
mmdet/datasets/ssgd.py:171
↓ 3 callersMethod__init__
(self, in_channels, out_channels, num_outs,
mmdet/models/necks/fpg.py:150
↓ 3 callersMethod__init__
(self, groups=1, base_width=4, radix=2, re
mmdet/models/backbones/resnest.py:299
↓ 3 callersMethod__init__
(self, depth, in_channels=3, stem_channels=None,
mmdet/models/backbones/resnet.py:369
↓ 3 callersMethod__init__
(self, num_classes, in_channels, anchor_generator=dict(
mmdet/models/dense_heads/yolact_head.py:44
↓ 3 callersMethod__init__
(self)
tests/test_utils/test_hook.py:29
↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs
mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:118
↓ 3 callersMethod_add_fc_branch
(self, num_branch_fcs, in_channels, roi_feat_size, fc_out_channels)
mmdet/models/roi_heads/bbox_heads/sabl_head.py:221
↓ 3 callersMethod_bbox_forward
Box head forward function used in both training and testing. Returns all regression, classification results and a intermediate feature.
mmdet/models/roi_heads/sparse_roi_head.py:88
↓ 3 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdet/models/roi_heads/standard_roi_head.py:118
↓ 3 callersMethod_bboxes_nms
(self, cls_scores, bboxes, score_factor, cfg)
mmdet/models/dense_heads/yolox_head.py:313
↓ 3 callersMethod_build_head
Build head for each branch.
mmdet/models/dense_heads/centernet_head.py:64
↓ 3 callersFunction_check_roi_extractor
(config, roi_extractor, prev_roi_extractor=None)
tests/test_runtime/test_config.py:116
↓ 3 callersFunction_create_mask
(N, h, w)
tests/test_utils/test_nms.py:7
↓ 3 callersMethod_decode_init_proposals
Decode init_proposal_bboxes according to the size of images and expand dimension of init_proposal_features to batch_size. Args:
mmdet/models/dense_heads/embedding_rpn_head.py:54
↓ 3 callersFunction_do_paste_mask
Paste instance masks according to boxes. This implementation is modified from https://github.com/facebookresearch/detectron2/ Args:
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:344
↓ 3 callersMethod_init_cls_convs
Initialize classification conv layers of the head.
mmdet/models/dense_heads/anchor_free_head.py:113
↓ 3 callersMethod_init_reg_convs
Initialize bbox regression conv layers of the head.
mmdet/models/dense_heads/anchor_free_head.py:133
↓ 3 callersMethod_make_stage
(self, layer_config, in_channels, multiscale_output=True)
mmdet/models/backbones/hrnet.py:505
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
mmdet/models/backbones/hrnet.py:412
↓ 3 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdet/models/roi_heads/sparse_roi_head.py:151
↓ 3 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
mmdet/models/roi_heads/scnet_roi_head.py:179
↓ 3 callersMethod_meshgrid
Generate mesh grid of x and y. Args: x (torch.Tensor): Grids of x dimension. y (torch.Tensor): Grids of y dimension.
mmdet/core/anchor/anchor_generator.py:196
↓ 3 callersMethod_split_cls_score
(self, cls_score)
mmdet/models/losses/seesaw_loss.py:138
↓ 3 callersMethodanchor_center
Get anchor centers from anchors. Args: anchors (Tensor): Anchor list with shape (N, 4), "xyxy" format. Returns:
mmdet/models/dense_heads/gfl_head.py:205
↓ 3 callersMethodassign_wrt_overlaps
Assign w.r.t. the overlaps of bboxes with gts. Args: overlaps (Tensor): Overlaps between k gt_bboxes and n bboxes,
mmdet/core/bbox/assigners/max_iou_assigner.py:133
↓ 3 callersFunctionasync_inference_detector
Async inference image(s) with the detector. Args: model (nn.Module): The loaded detector. img (str | ndarray): Either image files
mmdet/apis/inference.py:159
↓ 3 callersMethodaug_test_bboxes
Test det bboxes with test time augmentation, can be applied in DenseHead except for ``RPNHead`` and its variants, e.g., ``GARPNHead``,
mmdet/models/dense_heads/dense_test_mixins.py:41
↓ 3 callersMethodaug_test_rpn
Augmented forward test function.
mmdet/models/dense_heads/cascade_rpn_head.py:798
↓ 3 callersFunctionbbox2fields
The key correspondence from bboxes to labels, masks and segmentations.
mmdet/datasets/pipelines/auto_augment.py:29
↓ 3 callersFunctionbuild_transformer
Builder for Transformer.
mmdet/models/utils/builder.py:9
↓ 3 callersFunctioncarl_loss
Classification-Aware Regression Loss (CARL). Args: cls_score (Tensor): Predicted classification scores. labels (Tensor): Targets
mmdet/models/losses/pisa_loss.py:123
↓ 3 callersFunctioncenter_of_mass
Calculate the centroid coordinates of the mask. Args: mask (Tensor): The mask to be calculated, shape (h, w). esp (float): Avoid
mmdet/core/utils/misc.py:168
↓ 3 callersFunctioncompat_cfg
This function would modify some filed to keep the compatibility of config. For example, it will move some args which will be deprecated to th
mmdet/utils/compat_config.py:8
↓ 3 callersFunctioncompleted
Async context manager that waits for work to complete on given CUDA streams.
mmdet/utils/contextmanagers.py:17
↓ 3 callersFunctionconstruct_toy_data
(poly2mask=True)
tests/test_data/test_pipelines/test_transform/test_translate.py:135
↓ 3 callersFunctionconvert_bn
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/model_converters/detectron2pytorch.py:11
↓ 3 callersFunctionconvert_conv_fc
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/model_converters/detectron2pytorch.py:24
↓ 3 callersMethodcrop
see :func:`BaseInstanceMasks.crop`
mmdet/core/mask/structures.py:687
↓ 3 callersMethodcrop_and_resize
See :func:`BaseInstanceMasks.crop_and_resize`.
mmdet/core/mask/structures.py:333
↓ 3 callersFunctionenhance_level_to_value
Map from level to values.
mmdet/datasets/pipelines/auto_augment.py:19
↓ 3 callersMethodevaluate
Evaluate in VOC protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[str]
mmdet/datasets/voc.py:34
↓ 3 callersMethodevaluate
Evaluate in OpenImages. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[str]):
mmdet/datasets/openimages.py:615
↓ 3 callersFunctionfcos_config
FCOS Head Config.
tests/test_onnx/test_head.py:243
↓ 3 callersFunctionfind_inside_bboxes
Find bboxes as long as a part of bboxes is inside the image. Args: bboxes (Tensor): Shape (N, 4). img_h (int): Image height.
mmdet/core/bbox/transforms.py:6
↓ 3 callersFunctionfp16_clamp
(x, min=None, max=None)
mmdet/core/bbox/iou_calculators/iou2d_calculator.py:14
↓ 3 callersFunctionfsaf_config
FSAF Head Config.
tests/test_onnx/test_head.py:311
↓ 3 callersFunctiongather_feat
Gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord index. mask (Tenso
mmdet/models/utils/gaussian_target.py:234
↓ 3 callersFunctiongen_gaussian_target
Generate 2D gaussian heatmap. Args: heatmap (Tensor): Input heatmap, the gaussian kernel will cover on it and maintain the ma
mmdet/models/utils/gaussian_target.py:32
↓ 3 callersMethodget_ann_info
Get annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified index.
mmdet/datasets/custom.py:143
↓ 3 callersMethodget_ann_info
Get annotation of repeat dataset by index. Args: idx (int): Index of data. Returns: dict: Annotation info of
mmdet/datasets/dataset_wrappers.py:192
↓ 3 callersMethodget_ann_info
Get OpenImages annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specif
mmdet/datasets/openimages.py:220
↓ 3 callersMethodget_cat_ids
Get category ids of repeat dataset by index. Args: idx (int): Index of data. Returns: list[int]: All categor
mmdet/datasets/dataset_wrappers.py:180
↓ 3 callersMethodget_cls_channels
Get custom classification channels. Args: num_classes (int): The number of classes. Returns: int: The custom
mmdet/models/losses/seesaw_loss.py:145
↓ 3 callersFunctionget_device
Returns an available device, cpu, cuda or mlu.
mmdet/utils/util_distribution.py:67
↓ 3 callersMethodget_label_assignment
Get label assignment (from teacher). Args: cls_scores (list[Tensor]): Box scores for each scale level. Has shape
mmdet/models/dense_heads/lad_head.py:16
↓ 3 callersFunctionget_loading_pipeline
Only keep loading image and annotations related configuration. Args: pipeline (list[dict]): Data pipeline configs. Returns:
mmdet/datasets/utils.py:75
↓ 3 callersFunctionget_local_maximum
Extract local maximum pixel with given kernel. Args: heat (Tensor): Target heatmap. kernel (int): Kernel size of max pooling. Def
mmdet/models/utils/gaussian_target.py:190
↓ 3 callersFunctionget_palette
Get palette from various inputs. Args: palette (list[tuple] | str | tuple | :obj:`Color`): palette inputs. num_classes (int): the
mmdet/core/visualization/palette.py:22
↓ 3 callersMethodget_relation_matrix
Get hierarchy for classes. Args: hierarchy_file (sty): File path to the hierarchy for classes. Returns: ndar
mmdet/datasets/openimages.py:357
↓ 3 callersFunctionget_results
(filename, dataset='coco', task='bbox', metric=None,
tools/analysis_tools/robustness_eval.py:156
↓ 3 callersMethodget_results
Get multi-image mask results. Args: mlvl_mask_preds (list[Tensor]): Multi-level mask prediction. Each element in
mmdet/models/dense_heads/solo_head.py:424
↓ 3 callersMethodget_targets
A wrapper for computing ATSS and FCOS targets for points in multiple images. Args: cls_scores (list[Tensor]): Box iou-awa
mmdet/models/dense_heads/vfnet_head.py:500
↓ 3 callersFunctionget_topk_from_heatmap
Get top k positions from heatmap. Args: scores (Tensor): Target heatmap with shape [batch, num_classes, height, width].
mmdet/models/utils/gaussian_target.py:207
↓ 3 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
mmdet/models/utils/transformer.py:388
↓ 3 callersFunctionisr_p
Importance-based Sample Reweighting (ISR_P), positive part. Args: cls_score (Tensor): Predicted classification scores. bbox_pred
mmdet/models/losses/pisa_loss.py:9
↓ 3 callersFunctionlevel_to_value
Map from level to values based on max_value.
mmdet/datasets/pipelines/auto_augment.py:14
↓ 3 callersMethodload_cats
(self, ids)
mmdet/datasets/api_wrappers/coco_api.py:39
↓ 3 callersFunctionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
mmdet/apis/test.py:81
↓ 3 callersFunctionnchw_to_nlc
Flatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
mmdet/models/utils/transformer.py:49
↓ 3 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmdet/models/backbones/resnet.py:249
↓ 3 callersFunctionparse_shape
(shape)
tools/deployment/onnx2tensorrt.py:208
↓ 3 callersFunctionprint_coco_results
(results)
tools/analysis_tools/robustness_eval.py:9
↓ 3 callersFunctionrandom_negative
Randomly negate value based on random_negative_prob.
mmdet/datasets/pipelines/auto_augment.py:24
↓ 3 callersMethodrescale
See :func:`BaseInstanceMasks.rescale`.
mmdet/core/mask/structures.py:265
← previousnext →201–300 of 2,751, ranked by callers