MCPcopy Create free account

hub / github.com/ChenhongyiYang/PGD / functions

Functions2,117 in github.com/ChenhongyiYang/PGD

↓ 6 callersFunctioncompute_iou_matrix
(dboxes:np.ndarray, gboxes:np.ndarray)
crowd_code/evaluate/JIToolkits/JI_tools.py:117
↓ 6 callersMethoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: bboxes (torch.Tensor): Basic boxes.Shape (B, N, 4) or (N, 4) pre
mmdet/core/bbox/coder/tblr_bbox_coder.py:49
↓ 6 callersMethodget_activation
Get custom activation of cls_score. Args: cls_score (torch.Tensor): The prediction with shape (N, C + 2). Returns:
mmdet/models/losses/seesaw_loss.py:156
↓ 6 callersMethodload_anns
(self, ids)
mmdet/datasets/api_wrappers/coco_api.py:35
↓ 6 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
mmdet/models/backbones/resnet.py:218
↓ 6 callersMethodrefine_bboxes
Refine bboxes during training. Args: rois (Tensor): Shape (n*bs, 5), where n is image number per GPU, and bs is t
mmdet/models/roi_heads/bbox_heads/bbox_head.py:375
↓ 6 callersMethodresize
see :func:`BaseInstanceMasks.resize`
mmdet/core/mask/structures.py:628
↓ 6 callersMethodvalid_flags
(self, featmap_size, valid_size, device='cuda')
mmdet/core/anchor/point_generator.py:29
↓ 5 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdet/models/roi_heads/scnet_roi_head.py:93
↓ 5 callersFunction_dummy_bbox_sampling
Create sample results that can be passed to BBoxHead.get_targets.
tests/test_models/test_roi_heads/utils.py:6
↓ 5 callersMethod_freeze_stages
(self)
mmdet/models/backbones/resnet.py:612
↓ 5 callersFunctionadd_dummy_nms_for_onnx
Create a dummy onnx::NonMaxSuppression op while exporting to ONNX. This function helps exporting to onnx with batch and multiclass NMS op. It
mmdet/core/export/onnx_helper.py:81
↓ 5 callersMethodbox_overlap_opr
(self, dboxes:np.ndarray, gboxes:np.ndarray, if_iou)
crowd_code/evaluate/APMRToolkits/image.py:163
↓ 5 callersFunctioncheck_norm_state
Check if norm layer is in correct train state.
tests/test_models/test_backbones/utils.py:25
↓ 5 callersFunctioncheck_translate
(results, results_translated, offset,
tests/test_data/test_pipelines/test_transform/test_translate.py:334
↓ 5 callersFunctionconstruct_toy_data
(poly2mask=True)
tests/test_data/test_pipelines/test_transform/test_rotate.py:11
↓ 5 callersFunctionconstruct_toy_data
(poly2mask=True)
tests/test_data/test_pipelines/test_transform/test_shear.py:11
↓ 5 callersMethodcrop
See :func:`BaseInstanceMasks.crop`.
mmdet/core/mask/structures.py:313
↓ 5 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmdet/models/detectors/two_stage.py:64
↓ 5 callersMethodget_cat_ids
Get category ids of concatenated dataset by index. Args: idx (int): Index of data. Returns: list[int]: All c
mmdet/datasets/dataset_wrappers.py:46
↓ 5 callersMethodget_extra_property
Get user-defined property.
mmdet/core/bbox/assigners/assign_result.py:60
↓ 5 callersMethodinfo
dict: a dictionary of info about the object
mmdet/core/bbox/assigners/assign_result.py:65
↓ 5 callersFunctionmerge_aug_bboxes
Merge augmented detection bboxes and scores. Args: aug_bboxes (list[Tensor]): shape (n, 4*#class) aug_scores (list[Tensor] or Non
mmdet/core/post_processing/merge_augs.py:83
↓ 5 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
mmdet/models/backbones/resnet.py:258
↓ 5 callersMethodsimple_test_rpn
Simple forward test function.
mmdet/models/dense_heads/cascade_rpn_head.py:758
↓ 5 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
mmdet/datasets/pipelines/formating.py:11
↓ 4 callersMethod__init__
(self, linear=False, eps=1e-6, reduction='mean',
mmdet/models/losses/iou_loss.py:236
↓ 4 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdet/models/roi_heads/htc_roi_head.py:155
↓ 4 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdet/models/roi_heads/cascade_roi_head.py:129
↓ 4 callersFunction_check_fields
(results, results_rotated, keys)
tests/test_data/test_pipelines/test_transform/test_rotate.py:41
↓ 4 callersFunction_check_fields
(results, results_sheared, keys)
tests/test_data/test_pipelines/test_transform/test_shear.py:42
↓ 4 callersFunction_context_for_ohem
()
tests/test_data/test_pipelines/test_sampler.py:94
↓ 4 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdet/models/roi_heads/standard_roi_head.py:179
↓ 4 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdet/models/roi_heads/cascade_roi_head.py:157
↓ 4 callersFunction_pad
(h, w, c, pad_val, axis=-1, dtype=np.float32)
tests/test_data/test_pipelines/test_transform/test_translate.py:19
↓ 4 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:213
↓ 4 callersFunctionanchor_ctr_inside_region_flags
Get the flag indicate whether anchor centers are inside regions.
mmdet/core/bbox/assigners/region_assigner.py:26
↓ 4 callersFunctionarea
(bboxes)
tests/test_data/test_pipelines/test_transform/test_transform.py:224
↓ 4 callersFunctionassignLabel
(w, t, p)
crowd_code/evaluate/JIToolkits/matching.py:213
↓ 4 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale.
mmdet/core/bbox/transforms.py:46
↓ 4 callersFunctionbuild_backbone
Build backbone.
mmdet/models/builder.py:17
↓ 4 callersFunctionbuild_linear_layer
Build linear layer. Args: cfg (None or dict): The linear layer config, which should contain: - type (str): Layer type.
mmdet/models/utils/builder.py:16
↓ 4 callersFunctioncalc_region
Calculate region of the box defined by the ratio, the ratio is from the center of the box to every edge.
mmdet/core/bbox/assigners/region_assigner.py:9
↓ 4 callersFunctioncalc_region
Calculate a proportional bbox region. The bbox center are fixed and the new h' and w' is h * ratio and w * ratio. Args: bbox (Tensor
mmdet/core/anchor/utils.py:49
↓ 4 callersFunctionconstruct_toy_data
(poly2mask=True)
tests/test_data/test_pipelines/test_transform/test_img_augment.py:12
↓ 4 callersFunctiondummy_bboxes
(num, max_height, max_width)
tests/test_utils/test_masks.py:35
↓ 4 callersFunctiondummy_masks
(h, w, num_obj=3, mode='bitmap')
tests/test_runtime/test_config.py:324
↓ 4 callersFunctiondynamic_clip_for_onnx
Clip boxes dynamically for onnx. Since torch.clamp cannot have dynamic `min` and `max`, we scale the boxes by 1/max_shape and clamp in the
mmdet/core/export/onnx_helper.py:6
↓ 4 callersFunctionensure_rng
Coerces input into a random number generator. If the input is None, then a global random state is returned. If the input is a numeric value,
mmdet/utils/util_random.py:5
↓ 4 callersFunctioneval_map
Evaluate mAP of a dataset. Args: det_results (list[list]): [[cls1_det, cls2_det, ...], ...]. The outer list indicates images,
mmdet/core/evaluation/mean_ap.py:267
↓ 4 callersFunctioneval_recalls
Calculate recalls. Args: gts (list[ndarray]): a list of arrays of shape (n, 4) proposals (list[ndarray]): a list of arrays of sha
mmdet/core/evaluation/recall.py:64
↓ 4 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmdet/models/detectors/single_stage.py:40
↓ 4 callersMethodextract_feats
Extract features from multiple images. Args: imgs (list[torch.Tensor]): A list of images. The images are augmente
mmdet/models/detectors/base.py:49
↓ 4 callersMethodflip
see :func:`BaseInstanceMasks.flip`
mmdet/core/mask/structures.py:647
↓ 4 callersMethodformat_results
Format the results to json (standard format for COCO evaluation). Args: results (list[tuple | numpy.ndarray]): Testing results of
mmdet/datasets/coco.py:333
↓ 4 callersMethodget_ann_info
Get annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified index.
mmdet/datasets/custom.py:119
↓ 4 callersMethodget_img_ids
(self, img_ids=[], cat_ids=[])
mmdet/datasets/api_wrappers/coco_api.py:32
↓ 4 callersMethodget_num_level_anchors_inside
(self, num_level_anchors, inside_flags)
mmdet/models/dense_heads/gfl_head.py:659
↓ 4 callersMethodgrid_priors
Generate grid anchors in multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
mmdet/core/anchor/anchor_generator.py:215
↓ 4 callersFunctionimshow_det_bboxes
Draw bboxes and class labels (with scores) on an image. Args: img (str or ndarray): The image to be displayed. bboxes (ndarray):
mmdet/core/visualization/image.py:28
↓ 4 callersFunctioninference_detector
Inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str/ndarray or list[str/ndarray] or tup
mmdet/apis/inference.py:89
↓ 4 callersMethodload_det_boxes
(self, dict_input, key_name, key_box, key_score=None, key_tag=None)
crowd_code/evaluate/APMRToolkits/image.py:234
↓ 4 callersMethodload_imgs
(self, ids)
mmdet/datasets/api_wrappers/coco_api.py:41
↓ 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:493
↓ 4 callersFunctionmaxWeightMatching
Compute a maximum-weighted matching in the general undirected weighted graph given by "edges". If "maxcardinality" is true, only maximum-card
crowd_code/evaluate/JIToolkits/matching.py:41
↓ 4 callersFunctionmodel_aug_test_template
(cfg_file)
tests/test_data/test_pipelines/test_transform/test_models_aug_test.py:12
↓ 4 callersMethodpad
See :func:`BaseInstanceMasks.pad`.
mmdet/core/mask/structures.py:302
↓ 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:168
↓ 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:105
↓ 4 callersMethodresize
See :func:`BaseInstanceMasks.resize`.
mmdet/core/mask/structures.py:277
↓ 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/coco.py:269
↓ 4 callersMethodside_aware_split
Split side-aware features aligned with orders of bucketing targets.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:276
↓ 4 callersFunctionsingle_gpu_test
(model, data_loader, show=False, out_dir=None,
mmdet/apis/test.py:16
↓ 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:212
↓ 4 callersMethodto_tensor
See :func:`BaseInstanceMasks.to_tensor`.
mmdet/core/mask/structures.py:506
↓ 4 callersMethodxyxy2xywh
Convert ``xyxy`` style bounding boxes to ``xywh`` style for COCO evaluation. Args: bbox (numpy.ndarray): The bounding box
mmdet/datasets/crowdhuman.py:166
↓ 4 callersMethodxyxy2xywh
Convert ``xyxy`` style bounding boxes to ``xywh`` style for COCO evaluation. Args: bbox (numpy.ndarray): The bounding box
mmdet/datasets/coco.py:179
↓ 3 callersMethod__init__
(self, in_channels, out_channels, num_outs,
mmdet/models/necks/fpg.py:149
↓ 3 callersMethod__init__
(self, groups=1, base_width=4, radix=2, re
mmdet/models/backbones/resnest.py:298
↓ 3 callersMethod__init__
(self, depth, in_channels=3, stem_channels=None,
mmdet/models/backbones/resnet.py:368
↓ 3 callersMethod__init__
(self, num_classes, in_channels, anchor_generator=dict(
mmdet/models/dense_heads/yolact_head.py:42
↓ 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:110
↓ 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:208
↓ 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:79
↓ 3 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdet/models/roi_heads/standard_roi_head.py:116
↓ 3 callersMethod_bboxes_nms
(self, bboxes, labels, cfg)
mmdet/models/dense_heads/corner_head.py:789
↓ 3 callersMethod_build_head
Build head for each branch.
mmdet/models/dense_heads/centernet_head.py:63
↓ 3 callersFunction_check_roi_extractor
(config, roi_extractor, prev_roi_extractor=None)
tests/test_runtime/test_config.py:171
↓ 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:53
↓ 3 callersMethod_get_bboxes_single
Transform outputs for a single batch item into bbox predictions. Args: cls_scores (list[Tensor]): Box scores of all scale level
mmdet/models/dense_heads/rpn_head.py:134
↓ 3 callersMethod_init_cls_convs
Initialize classification conv layers of the head.
mmdet/models/dense_heads/anchor_free_head.py:95
↓ 3 callersMethod_init_reg_convs
Initialize bbox regression conv layers of the head.
mmdet/models/dense_heads/anchor_free_head.py:115
↓ 3 callersMethod_make_stage
(self, layer_config, in_channels, multiscale_output=True)
mmdet/models/backbones/hrnet.py:480
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
mmdet/models/backbones/hrnet.py:387
↓ 3 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
mmdet/models/roi_heads/scnet_roi_head.py:176
↓ 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:195
↓ 3 callersMethod_split_cls_score
(self, cls_score)
mmdet/models/losses/seesaw_loss.py:137
↓ 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:127
↓ 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:155
↓ 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:38
← previousnext →101–200 of 2,117, ranked by callers