MCPcopy Create free account

hub / github.com/VincentHancoder/SSGD / functions

Functions2,751 in github.com/VincentHancoder/SSGD

↓ 1 callersMethod_resize_bboxes
Resize bounding boxes with ``results['scale_factor']``.
mmdet/datasets/pipelines/transforms.py:248
↓ 1 callersMethod_resize_img
Resize images with ``results['scale']``.
mmdet/datasets/pipelines/transforms.py:215
↓ 1 callersMethod_resize_masks
Resize masks with ``results['scale']``
mmdet/datasets/pipelines/transforms.py:258
↓ 1 callersMethod_resize_seg
Resize semantic segmentation map with ``results['scale']``.
mmdet/datasets/pipelines/transforms.py:268
↓ 1 callersMethod_rotate_bboxes
Rotate the bboxes.
mmdet/datasets/pipelines/auto_augment.py:427
↓ 1 callersMethod_rotate_img
Rotate the image. Args: results (dict): Result dict from loading pipeline. angle (float): Rotation angle in degrees,
mmdet/datasets/pipelines/auto_augment.py:408
↓ 1 callersMethod_rotate_masks
Rotate the masks.
mmdet/datasets/pipelines/auto_augment.py:462
↓ 1 callersMethod_rotate_seg
Rotate the segmentation map.
mmdet/datasets/pipelines/auto_augment.py:474
↓ 1 callersMethod_sample_neg
Sample negative samples.
mmdet/core/bbox/samplers/base_sampler.py:31
↓ 1 callersMethod_sample_neg
Sample negative samples. Score-HLR sampler is done in the following steps: 1. Take the maximum positive score prediction of each nega
mmdet/core/bbox/samplers/score_hlr_sampler.py:100
↓ 1 callersMethod_sample_pos
Sample positive samples.
mmdet/core/bbox/samplers/base_sampler.py:26
↓ 1 callersMethod_sample_pos
Randomly sample some positive samples.
mmdet/core/bbox/samplers/score_hlr_sampler.py:92
↓ 1 callersMethod_segm2json
Convert instance segmentation results to COCO json style.
mmdet/datasets/coco.py:256
↓ 1 callersMethod_select_object
Select some objects from the source results.
mmdet/datasets/pipelines/transforms.py:2835
↓ 1 callersMethod_set_group_flag
Set flag according to image aspect ratio. Images with aspect ratio greater than 1 will be set as group 1, otherwise group 0.
mmdet/datasets/custom.py:187
↓ 1 callersMethod_set_things_to_void
Merge thing classes to one class. In PanopticFPN, the background labels will be reset from `0` to `self.num_stuff_classes-1`, the for
mmdet/models/seg_heads/panoptic_fpn_head.py:108
↓ 1 callersMethod_shear_bboxes
Shear the bboxes.
mmdet/datasets/pipelines/auto_augment.py:205
↓ 1 callersMethod_shear_img
Shear the image. Args: results (dict): Result dict from loading pipeline. magnitude (int | float): The magnitude used
mmdet/datasets/pipelines/auto_augment.py:180
↓ 1 callersMethod_shear_masks
Shear the masks.
mmdet/datasets/pipelines/auto_augment.py:235
↓ 1 callersMethod_shear_seg
Shear the segmentation maps.
mmdet/datasets/pipelines/auto_augment.py:251
↓ 1 callersMethod_slice_pos_feats
Get features from pos rois.
mmdet/models/roi_heads/scnet_roi_head.py:83
↓ 1 callersMethod_test_aug
Around padding the original image without cropping. The padding mode and value are from ``test_pad_mode``. Args: results
mmdet/datasets/pipelines/transforms.py:1820
↓ 1 callersFunction_test_memory_profiler_hook
()
tests/test_utils/test_hook.py:400
↓ 1 callersMethod_train_aug
Random crop and around padding the original image. Args: results (dict): Image infomations in the augment pipeline. Retu
mmdet/datasets/pipelines/transforms.py:1752
↓ 1 callersFunction_translate_bbox
(bboxes, offset, direction, max_h, max_w)
tests/test_data/test_pipelines/test_transform/test_translate.py:216
↓ 1 callersMethod_translate_bboxes
Shift bboxes horizontally or vertically, according to offset.
mmdet/datasets/pipelines/auto_augment.py:628
↓ 1 callersMethod_translate_img
Translate the image. Args: results (dict): Result dict from loading pipeline. offset (int | float): The offset for tr
mmdet/datasets/pipelines/auto_augment.py:613
↓ 1 callersMethod_translate_masks
Translate masks horizontally or vertically.
mmdet/datasets/pipelines/auto_augment.py:646
↓ 1 callersMethod_translate_seg
Translate segmentation maps horizontally or vertically.
mmdet/datasets/pipelines/auto_augment.py:657
↓ 1 callersMethod_update_wandb_config
Update wandb config.
mmdet/core/hook/wandblogger_hook.py:281
↓ 1 callersFunctionadd_mim_extension
Add extra files that are required to support MIM into the package. These files will be added by creating a symlink to the originals if the pa
setup.py:134
↓ 1 callersFunctionadd_plot_parser
(subparsers)
tools/analysis_tools/analyze_logs.py:104
↓ 1 callersMethodadd_supercategory_ann
Add parent classes of the corresponding class of the ground truth bboxes.
mmdet/datasets/openimages.py:426
↓ 1 callersFunctionadd_time_parser
(subparsers)
tools/analysis_tools/analyze_logs.py:142
↓ 1 callersMethodadjust_width_group
Adjusts the compatibility of widths and groups. Args: widths (list[int]): Width of each stage. bottleneck_ratio (floa
mmdet/models/backbones/regnet.py:297
↓ 1 callersFunctionae_loss_per_image
Associative Embedding Loss in one image. Associative Embedding Loss including two parts: pull loss and push loss. Pull loss makes embedding v
mmdet/models/losses/ae_loss.py:11
↓ 1 callersMethodaforward_test
(self, *, img, img_metas, **kwargs)
mmdet/models/detectors/base.py:94
↓ 1 callersMethodafter_iter
(self, runner)
mmdet/core/hook/memory_profiler_hook.py:34
↓ 1 callersFunctionall_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
mmdet/core/utils/dist_utils.py:98
↓ 1 callersFunctionanalyze_per_img_dets
Analyze detection results on each image. Args: confusion_matrix (ndarray): The confusion matrix, has shape (num_classes + 1,
tools/analysis_tools/confusion_matrix.py:96
↓ 1 callersFunctionanalyze_results
(res_file, ann_file, res_types, out_dir,
tools/analysis_tools/coco_error_analysis.py:235
↓ 1 callersMethodanchor_center
Get anchor centers from anchors. Args: anchors (Tensor): Anchor list with shape (N, 4), "xyxy" format. Returns:
mmdet/models/dense_heads/tood_head.py:297
↓ 1 callersMethodapredict
(self, img)
tests/test_runtime/test_async.py:54
↓ 1 callersMethodassign_one_hot_gt_indices
Assign only one gt index to each prior box. Gts with large gt_priority are more likely to be assigned. Args: is_bbox_in_
mmdet/core/bbox/assigners/center_region_assigner.py:257
↓ 1 callersMethodasync_simple_test
(self, img, img_metas, **kwargs)
mmdet/models/detectors/base.py:82
↓ 1 callersMethodasync_simple_test_rpn
(self, x, img_metas)
mmdet/models/dense_heads/dense_test_mixins.py:169
↓ 1 callersMethodasync_test_bboxes
Asynchronized test for box head without augmentation.
mmdet/models/roi_heads/test_mixins.py:19
↓ 1 callersMethodasync_test_mask
Asynchronized test for mask head without augmentation.
mmdet/models/roi_heads/test_mixins.py:183
↓ 1 callersMethodattention_pool
Extract direction-specific features fx and fy with attention methanism.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:237
↓ 1 callersMethodaug_test
Test function with test time augmentation.
mmdet/models/detectors/base.py:90
↓ 1 callersMethodaug_test_bboxes
Test det bboxes with test time augmentation.
mmdet/models/roi_heads/test_mixins.py:138
↓ 1 callersMethodaug_test_mask
Test for mask head with test time augmentation.
mmdet/models/roi_heads/test_mixins.py:281
↓ 1 callersFunctionauto_scale_lr
Automatically scaling LR according to GPU number and sample per GPU. Args: cfg (config): Training config. distributed (bool): Usi
mmdet/apis/train.py:71
↓ 1 callersFunctionaverage_precision
Calculate average precision (for single or multiple scales). Args: recalls (ndarray): shape (num_scales, num_dets) or (num_dets, )
mmdet/core/evaluation/mean_ap.py:13
↓ 1 callersFunctionbalanced_l1_loss
Calculate balanced L1 loss. Please see the `Libra R-CNN <https://arxiv.org/pdf/1904.02701.pdf>`_ Args: pred (torch.Tensor): The pred
mmdet/models/losses/balanced_l1_loss.py:13
↓ 1 callersFunctionbbox2bucket
Generate buckets estimation and fine regression targets. Args: proposals (Tensor): Shape (n, 4) gt (Tensor): Shape (n, 4)
mmdet/core/bbox/coder/bucketing_bbox_coder.py:145
↓ 1 callersFunctionbbox2delta
Compute deltas of proposals w.r.t. gt. We usually compute the deltas of x, y, w, h of proposals w.r.t ground truth bboxes to get regression t
mmdet/core/bbox/coder/delta_xywh_bbox_coder.py:118
↓ 1 callersFunctionbbox2distance
Decode bounding box based on distances. Args: points (Tensor): Shape (n, 2), [x, y]. bbox (Tensor): Shape (n, 4), "xyxy" format
mmdet/core/bbox/transforms.py:189
↓ 1 callersMethodbbox_flip
Flip bboxes horizontally. Args: bboxes (numpy.ndarray): Bounding boxes, shape (..., 4*k) img_shape (tuple[int]): Imag
mmdet/datasets/pipelines/transforms.py:396
↓ 1 callersMethodbbox_onnx_export
Export bbox branch to onnx which supports batch inference. Args: x (tuple[Tensor]): Feature maps of all scale level.
mmdet/models/roi_heads/standard_roi_head.py:350
↓ 1 callersFunctionbboxes2tblr
Encode ground truth boxes to tblr coordinate. It first convert the gt coordinate to tblr format, (top, bottom, left, right), relative to pri
mmdet/core/bbox/coder/tblr_bbox_coder.py:77
↓ 1 callersFunctionbboxes_area
Compute the area of an array of bboxes. Args: bboxes (Tensor): The coordinates ox bboxes. Shape: (m, 4) Returns: Tensor: Are
mmdet/core/bbox/assigners/center_region_assigner.py:55
↓ 1 callersMethodbefore_train_epoch
Evaluate the model only at the start of training by epoch.
mmdet/core/evaluation/eval_hooks.py:42
↓ 1 callersMethodbefore_train_iter
(self, runner)
mmdet/core/evaluation/eval_hooks.py:47
↓ 1 callersMethodbinary_mask_dice_loss
Args: mask_preds (Tensor): Mask prediction in shape (num_query, *). gt_masks (Tensor): Ground truth in shape (num_gt,
mmdet/core/bbox/match_costs/match_cost.py:260
↓ 1 callersFunctionbitmap_to_polygon
Convert masks from the form of bitmaps to polygons. Args: bitmap (ndarray): masks in bitmap representation. Return: list[nda
mmdet/core/mask/structures.py:1075
↓ 1 callersFunctionbounded_iou_loss
BIoULoss. This is an implementation of paper `Improving Object Localization with Fitness NMS and Bounded IoU Loss. <https://arxiv.org/abs
mmdet/models/losses/iou_loss.py:55
↓ 1 callersFunctionbucket2bbox
Apply bucketing estimation (cls preds) and fine regression (offset preds) to generate det bboxes. Args: proposals (Tensor): Boxes to
mmdet/core/bbox/coder/bucketing_bbox_coder.py:269
↓ 1 callersMethodbucket_target
(self, pos_proposals_list, neg_proposals_list,
mmdet/models/roi_heads/bbox_heads/sabl_head.py:351
↓ 1 callersFunctionbuild_optimizer_constructor
(cfg)
mmdet/core/optimizers/builder.py:11
↓ 1 callersMethodbuild_roi_layers
Build RoI operator to extract feature from each level feature map. Args: layer_cfg (dict): Dictionary to construct and config RoI
mmdet/models/roi_heads/roi_extractors/base_roi_extractor.py:37
↓ 1 callersFunctionbuild_shared_head
Build shared head.
mmdet/models/builder.py:33
↓ 1 callersMethodcalc_sub_regions
Compute point specific representation regions. See Grid R-CNN Plus (https://arxiv.org/abs/1906.05688) for details.
mmdet/models/roi_heads/mask_heads/grid_head.py:193
↓ 1 callersFunctioncalculate_confusion_matrix
Calculate the confusion matrix. Args: dataset (Dataset): Test or val dataset. results (list[ndarray]): A list of detection result
tools/analysis_tools/confusion_matrix.py:60
↓ 1 callersMethodcalculate_pos_recall
Calculate positive recall with score threshold. Args: cls_scores (list[Tensor]): Classification scores at all fpn levels.
mmdet/models/dense_heads/fsaf_head.py:317
↓ 1 callersMethodcenterness_target
Compute centerness targets. Args: pos_bbox_targets (Tensor): BBox targets of positive bboxes in shape (num_pos, 4
mmdet/models/dense_heads/fcos_head.py:415
↓ 1 callersMethodcenters_to_bboxes
Get bboxes according to center points. Only used in :class:`MaxIoUAssigner`.
mmdet/models/dense_heads/reppoints_head.py:332
↓ 1 callersFunctionciou_loss
r"""`Implementation of paper `Enhancing Geometric Factors into Model Learning and Inference for Object Detection and Instance Segmentation <ht
mmdet/models/losses/iou_loss.py:177
↓ 1 callersMethodcls_forward
(self, cls_x)
mmdet/models/roi_heads/bbox_heads/sabl_head.py:230
↓ 1 callersFunctioncoco_eval_with_return
(result_files, result_types, coco,
tools/analysis_tools/test_robustness.py:24
↓ 1 callersFunctioncollect_annotations
(files, nproc=1)
tools/dataset_converters/cityscapes.py:29
↓ 1 callersFunctioncollect_files
(img_dir, gt_dir)
tools/dataset_converters/cityscapes.py:12
↓ 1 callersFunctioncollect_image_infos
(path, exclude_extensions=None)
tools/dataset_converters/images2coco.py:30
↓ 1 callersFunctioncollect_results_gpu
(result_part, size)
mmdet/apis/test.py:179
↓ 1 callersFunctionconvert
Convert keys in checkpoints. There can be some breaking changes during the development of mmdetection, and this tool is used for upgrading ch
tools/model_converters/upgrade_model_version.py:115
↓ 1 callersFunctionconvert
(in_file, out_file)
tools/model_converters/upgrade_ssd_version.py:22
↓ 1 callersFunctionconvert
Convert keys in detectron pretrained ResNet models to pytorch style.
tools/model_converters/detectron2pytorch.py:35
↓ 1 callersFunctionconvert
Convert keys in pycls pretrained RegNet models to mmdet style.
tools/model_converters/regnet2mmdet.py:55
↓ 1 callersFunctionconvert_head
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:16
↓ 1 callersFunctionconvert_reslayer
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:23
↓ 1 callersFunctionconvert_stem
(model_key, model_weight, state_dict, converted_names)
tools/model_converters/regnet2mmdet.py:8
↓ 1 callersFunctioncorrect_unfold_norm_order
(x)
mmdet/models/utils/ckpt_convert.py:96
↓ 1 callersFunctioncorrect_unfold_reduction_order
(x)
mmdet/models/utils/ckpt_convert.py:89
↓ 1 callersMethodcreateIndex
(self)
mmdet/datasets/coco_panoptic.py:46
↓ 1 callersFunctioncross_entropy
Calculate the CrossEntropy loss. Args: pred (torch.Tensor): The prediction with shape (N, C), C is the number of classes.
mmdet/models/losses/cross_entropy_loss.py:12
↓ 1 callersFunctioncvt_annotations
(image_infos, out_json_name)
tools/dataset_converters/cityscapes.py:85
↓ 1 callersFunctioncvt_annotations
(img_path, xml_path, out_file)
tools/prepare_data/voc_to_json.py:55
↓ 1 callersFunctioncvt_to_coco_json
(img_infos, classes)
tools/dataset_converters/images2coco.py:49
↓ 1 callersFunctioncvt_to_coco_json
(annotations)
tools/dataset_converters/pascal_voc.py:96
↓ 1 callersMethoddecode
Decode distance prediction to bounding box. Args: points (Tensor): Shape (B, N, 2) or (N, 2). pred_bboxes (Tensor): D
mmdet/core/bbox/coder/distance_point_bbox_coder.py:41
← previousnext →701–800 of 2,751, ranked by callers