MCPcopy Create free account

hub / github.com/Sense-X/Co-DETR / functions

Functions2,920 in github.com/Sense-X/Co-DETR

↓ 1 callersMethod_load_masks_and_semantic_segs
Private function to load mask and semantic segmentation annotations. In gt_semantic_seg, the foreground label is from `0` to `num_thi
mmdet/datasets/pipelines/loading.py:453
↓ 1 callersMethod_load_semantic_seg
Private function to load semantic segmentation annotations. Args: results (dict): Result dict from :obj:`dataset`. Retur
mmdet/datasets/pipelines/loading.py:359
↓ 1 callersMethod_log_data_table
Log the W&B Tables for validation data as artifact and calls `use_artifact` on it so that the evaluation table can use the reference o
mmdet/core/hook/wandblogger_hook.py:559
↓ 1 callersMethod_make_branches
(self, num_branches, block, num_blocks, num_channels)
mmdet/models/backbones/hrnet.py:112
↓ 1 callersMethod_make_deconv_layer
use deconv layers to upsample backbone's output.
mmdet/models/necks/ct_resnet_neck.py:38
↓ 1 callersMethod_make_fuse_layers
(self)
mmdet/models/backbones/hrnet.py:121
↓ 1 callersMethod_make_layer
(self, block, inplanes, planes, blocks, stride=1)
mmdet/models/backbones/hrnet.py:458
↓ 1 callersMethod_make_one_branch
(self, branch_index, block, num_blo
mmdet/models/backbones/hrnet.py:66
↓ 1 callersMethod_make_stem_layer
(self, in_channels, stem_channels)
mmdet/models/backbones/resnet.py:565
↓ 1 callersMethod_make_stem_layer
(self, in_channels, base_channels)
mmdet/models/backbones/regnet.py:238
↓ 1 callersMethod_mask_focal_loss_cost
Args: cls_pred (Tensor): Predicted classfication logits in shape (num_query, d1, ..., dn), dtype=torch.float32.
mmdet/core/bbox/match_costs/match_cost.py:111
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
mmdet/models/roi_heads/sparse_roi_head.py:163
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
mmdet/models/roi_heads/standard_roi_head.py:146
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
mmdet/models/roi_heads/htc_roi_head.py:113
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
mmdet/models/roi_heads/cascade_roi_head.py:170
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
projects/models/co_detr.py:159
↓ 1 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
projects/models/co_roi_head.py:170
↓ 1 callersMethod_mask_point_forward_train
Run forward function and calculate loss for point head in training.
mmdet/models/roi_heads/point_rend_roi_head.py:45
↓ 1 callersMethod_mask_point_onnx_export
Export mask refining process with point head to onnx. Args: x (tuple[Tensor]): Feature maps of all scale level. rois
mmdet/models/roi_heads/point_rend_roi_head.py:284
↓ 1 callersMethod_mixup_transform
MixUp transform function. Args: results (dict): Result dict. Returns: dict: Updated result dict.
mmdet/datasets/pipelines/transforms.py:2347
↓ 1 callersFunction_mock_memory_usage
()
tests/test_utils/test_hook.py:390
↓ 1 callersFunction_mock_swap_memory
()
tests/test_utils/test_hook.py:382
↓ 1 callersFunction_mock_virtual_memory
()
tests/test_utils/test_hook.py:373
↓ 1 callersMethod_mosaic_combine
Calculate global coordinate of mosaic image and local coordinate of cropped sub-image. Args: loc (str): Index for the sub
mmdet/datasets/pipelines/transforms.py:2155
↓ 1 callersMethod_mosaic_transform
Mosaic transform function. Args: results (dict): Result dict. Returns: dict: Updated result dict.
mmdet/datasets/pipelines/transforms.py:2058
↓ 1 callersMethod_onnx_get_fine_grained_point_feats
Export the process of sampling fine grained feats to onnx. Args: x (tuple[Tensor]): Feature maps of all scale level.
mmdet/models/roi_heads/point_rend_roi_head.py:250
↓ 1 callersMethod_pad_img
Pad images according to ``self.size``.
mmdet/datasets/pipelines/transforms.py:622
↓ 1 callersMethod_pad_masks
Pad masks according to ``results['pad_shape']``.
mmdet/datasets/pipelines/transforms.py:640
↓ 1 callersMethod_pad_seg
Pad semantic segmentation map according to ``results['pad_shape']``.
mmdet/datasets/pipelines/transforms.py:647
↓ 1 callersMethod_pan2json
Convert panoptic results to COCO panoptic json style.
mmdet/datasets/coco_panoptic.py:410
↓ 1 callersMethod_parse_ann_info
Parse annotations and load panoptic ground truths. Args: img_info (int): Image info of an image. ann_info (list[dict]
mmdet/datasets/coco_panoptic.py:322
↓ 1 callersMethod_parse_ann_info
Parse bbox and mask annotation. Args: ann_info (list[dict]): Annotation info of an image. with_mask (bool): Whether t
mmdet/datasets/coco.py:145
↓ 1 callersMethod_parse_anns
(self, results, anns, img)
mmdet/datasets/pipelines/instaboost.py:78
↓ 1 callersFunction_poly2mask
(mask_ann, img_h, img_w)
tests/test_data/test_pipelines/test_transform/test_translate.py:90
↓ 1 callersMethod_poly2mask
Private function to convert masks represented with polygon to bitmaps. Args: mask_ann (list | dict): Polygon mask annotat
mmdet/datasets/pipelines/loading.py:290
↓ 1 callersMethod_polygon_area
Compute the area of a component of a polygon. Using the shoelace formula: https://stackoverflow.com/questions/24467972/calculate-area
mmdet/core/mask/structures.py:884
↓ 1 callersMethod_preprocess
(self, img, gt_bboxes)
mmdet/models/detectors/yolox.py:105
↓ 1 callersFunction_process_mmcls_checkpoint
(checkpoint)
mmcv_custom/checkpoint.py:212
↓ 1 callersFunction_process_polygons
(polygons)
tests/test_data/test_pipelines/test_transform/test_translate.py:106
↓ 1 callersMethod_proposal2json
Convert proposal results to COCO json style.
mmdet/datasets/coco.py:224
↓ 1 callersMethod_rand_another
Get another random index from the same group as the given index.
mmdet/datasets/custom.py:201
↓ 1 callersMethod_random_jitter
Ramdom jitter positive proposals for training.
mmdet/models/roi_heads/grid_roi_head.py:28
↓ 1 callersMethod_random_resize
(self, device)
mmdet/models/detectors/yolox.py:119
↓ 1 callersFunction_recalls
(all_ious, proposal_nums, thrs)
mmdet/core/evaluation/recall.py:11
↓ 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 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: module
mmcv_custom/checkpoint.py:369
↓ 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:189
↓ 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:282
↓ 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 callersFunctionasync_main
(args)
demo/image_demo.py:48
↓ 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 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_bboxes
Test det bboxes with test-time augmentation. Args: feats (list[Tensor]): the outer list indicates test-time augmen
projects/models/co_deformable_detr_head.py:1063
↓ 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:72
↓ 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
← previousnext →701–800 of 2,920, ranked by callers