MCPcopy Create free account

hub / github.com/FenHua/DetDak / functions

Functions1,414 in github.com/FenHua/DetDak

↓ 37 callersFunctionbbox2roi
Convert a list of bboxes to roi format. Args: bbox_list (list[Tensor]): a list of bboxes corresponding to a batch of images.
mmdetection/mmdet/core/bbox/transforms.py:54
↓ 35 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print(f'self = {self.to(None)}
mmdetection/mmdet/core/bbox/samplers/sampling_result.py:56
↓ 32 callersMethodassign
Assign gt to bboxes. The assignment is done in following steps 1. compute iou between all bbox (bbox of all pyramid levels) and gt
mmdetection/mmdet/core/bbox/assigners/atss_assigner.py:33
↓ 31 callersMethoddecode
Decode the predicted bboxes according to prediction and base boxes.
mmdetection/mmdet/core/bbox/coder/base_bbox_coder.py:16
↓ 30 callersMethodexpand
See :func:`BaseInstanceMasks.expand`.
mmdetection/mmdet/core/mask/structures.py:288
↓ 27 callersFunctionimages_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
mmdetection/mmdet/core/anchor/utils.py:4
↓ 27 callersFunctionmulti_apply
Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and map the multiple outputs o
mmdetection/mmdet/core/utils/misc.py:35
↓ 27 callersMethodto_ndarray
See :func:`BaseInstanceMasks.to_ndarray`.
mmdetection/mmdet/core/mask/structures.py:305
↓ 27 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
mmdetection/mmdet/core/utils/misc.py:57
↓ 25 callersFunctionbuild_loss
Build loss.
mmdetection/mmdet/models/builder.py:60
↓ 24 callersFunctiondummy_raw_bitmap_masks
Args: size (tuple): expected shape of dummy masks, (H, W) or (N, H, W) Return: ndarray: dummy mask
mmdetection/tests/test_masks.py:8
↓ 21 callersFunctiondummy_raw_polygon_masks
Args: size (tuple): expected shape of dummy masks, (N, H, W) Return: list[list[ndarray]]: dummy mask
mmdetection/tests/test_masks.py:19
↓ 20 callersMethodforward
(self, x, y)
mmdetection/tests/test_fp16.py:71
↓ 20 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmdetection/mmdet/core/bbox/samplers/base_sampler.py:34
↓ 20 callersMethodtrain
Convert the model into training mode whill keeping the normalization layer freezed.
mmdetection/mmdet/models/backbones/hrnet.py:529
↓ 19 callersMethodinit_weights
Initialize the weights of FPN module.
mmdetection/mmdet/models/necks/fpn.py:158
↓ 16 callersFunctionconvert2cpu
(gpu_matrix)
util_copy/utils.py:233
↓ 16 callersMethodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level Has shape (N, num_an
mmdetection/mmdet/models/dense_heads/ssd_head.py:182
↓ 16 callersMethodrandom
Create random AssignResult for tests or debugging. Args: num_preds: number of predicted boxes num_gts: number of true
mmdetection/mmdet/core/bbox/assigners/assign_result.py:97
↓ 16 callersMethodresize
See :func:`BaseInstanceMasks.resize`.
mmdetection/mmdet/core/mask/structures.py:202
↓ 15 callersFunctionbuild_detector
Build detector.
mmdetection/mmdet/models/builder.py:65
↓ 15 callersFunctioncast_tensor_type
Recursively convert Tensor in inputs from src_type to dst_type. Args: inputs: Inputs that to be casted. src_type (torch.dtype): S
mmdetection/mmdet/core/fp16/utils.py:7
↓ 14 callersFunctionprepare_data
Inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str/ndarray or list[str/ndarray]): Eith
mmdetection/mmdet/apis/inference.py:77
↓ 13 callersFunctionbuild_head
Build head.
mmdetection/mmdet/models/builder.py:55
↓ 13 callersMethodgrid_anchors
Generate grid anchors in multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
mmdetection/mmdet/core/anchor/anchor_generator.py:206
↓ 12 callersFunction_print
(result, ap=1, iouThr=None, areaRng='all', maxDets=100)
mmdetection/tools/robustness_eval.py:10
↓ 12 callersFunctionaccuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor): The model prediction, shape (N, num_class)
mmdetection/mmdet/models/losses/accuracy.py:4
↓ 12 callersMethodbackward
(ctx, grad_output)
efficientnet/utils.py:46
↓ 12 callersFunctionbuild_sampler
Builder of box sampler.
mmdetection/mmdet/core/bbox/builder.py:13
↓ 12 callersFunctionis_block
Check if is ResNet building block.
mmdetection/tests/test_models/test_backbones.py:15
↓ 12 callersMethodloss
(self, grid_pred, grid_targets)
mmdetection/mmdet/models/roi_heads/mask_heads/grid_head.py:288
↓ 12 callersFunctionmulticlass_nms
NMS for multi-class bboxes. Args: multi_bboxes (Tensor): shape (n, #class*4) or (n, 4) multi_scores (Tensor): shape (n, #class),
mmdetection/mmdet/core/post_processing/bbox_nms.py:5
↓ 11 callersFunctionbbox_overlaps
Calculate the ious between each bbox of bboxes1 and bboxes2. Args: bboxes1(ndarray): shape (n, 4) bboxes2(ndarray): shape (k, 4)
mmdetection/mmdet/core/evaluation/bbox_overlaps.py:4
↓ 11 callersFunctionbuild_assigner
Builder of box assigner.
mmdetection/mmdet/core/bbox/builder.py:8
↓ 11 callersMethodget_targets
(self, sampling_results, rcnn_train_cfg)
mmdetection/mmdet/models/roi_heads/mask_heads/grid_head.py:220
↓ 10 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdetection/mmdet/models/roi_heads/cascade_roi_head.py:166
↓ 10 callersFunctionbbox2result
Convert detection results to a list of numpy arrays. Args: bboxes (Tensor): shape (n, 5) labels (Tensor): shape (n, ) num
mmdetection/mmdet/core/bbox/transforms.py:95
↓ 10 callersMethodget_seg_masks
Get segmentation masks from mask_pred and bboxes. Args: mask_pred (Tensor or ndarray): shape (n, #class, h, w). F
mmdetection/mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:151
↓ 10 callersMethodrandom_choice
Random select some elements from the gallery. If `gallery` is a Tensor, the returned indices will be a Tensor; If `gallery` is a ndar
mmdetection/mmdet/core/bbox/samplers/random_sampler.py:31
↓ 9 callersMethodassign
Assign gt to bboxes. This method assign a gt bbox to every bbox (proposal/anchor), each bbox will be assigned with -1, or a semi-posi
mmdetection/mmdet/core/bbox/assigners/max_iou_assigner.py:60
↓ 9 callersMethodencode
Encode deltas between bboxes and ground truth boxes.
mmdetection/mmdet/core/bbox/coder/base_bbox_coder.py:11
↓ 9 callersMethodflip
See :func:`BaseInstanceMasks.flip`.
mmdetection/mmdet/core/mask/structures.py:213
↓ 9 callersMethodforward_plugin
(self, x, plugin_names)
mmdetection/mmdet/models/backbones/resnet.py:239
↓ 9 callersMethodget_targets
Get targets for GFL head. This method is almost the same as `AnchorHead.get_targets()`. Besides returning the targets as the parent m
mmdetection/mmdet/models/dense_heads/gfl_head.py:458
↓ 9 callersFunctioninit_detector
Initialize a detector from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object.
mmdetection/mmdet/apis/inference.py:15
↓ 9 callersMethodto_ndarray
Convert masks to the format of ndarray.
mmdetection/mmdet/core/mask/structures.py:541
↓ 8 callersFunctionbbox_mapping
Map bboxes from the original image scale to testing scale.
mmdetection/mmdet/core/bbox/transforms.py:30
↓ 8 callersFunctionbuild_anchor_generator
(cfg, default_args=None)
mmdetection/mmdet/core/anchor/builder.py:6
↓ 8 callersFunctionbuild_dataset
(cfg, default_args=None)
mmdetection/mmdet/datasets/builder.py:49
↓ 8 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_met
mmdetection/mmdet/models/dense_heads/anchor_head.py:150
↓ 8 callersMethodget_bboxes
(self, det_bboxes, grid_pred, img_metas)
mmdetection/mmdet/models/roi_heads/mask_heads/grid_head.py:294
↓ 8 callersMethodpad
See :func:`BaseInstanceMasks.pad`.
mmdetection/mmdet/core/mask/structures.py:226
↓ 7 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions n
mmdetection/tests/test_models/test_forward.py:275
↓ 7 callersFunctionbuild
Build a module. Args: cfg (dict, list[dict]): The config of modules, is is either a dict or a list of configs. regist
mmdetection/mmdet/models/builder.py:13
↓ 7 callersFunctionget_root_logger
Get root logger. Args: log_file (str, optional): File path of log. Defaults to None. log_level (int, optional): The level of logg
mmdetection/mmdet/utils/logger.py:6
↓ 7 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
mmdetection/setup.py:114
↓ 7 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
mmdetection/mmdet/models/losses/utils.py:26
↓ 6 callersMethod__init__
(self)
tool/darknet2pytorch.py:11
↓ 6 callersMethod_bbox_forward
Box forward function used in both training and testing.
mmdetection/mmdet/models/roi_heads/pisa_roi_head.py:88
↓ 6 callersFunction_get_detector_cfg
Grab configs necessary to create a detector. These are deep copied to allow for safe modification of parameters without influencing other tes
mmdetection/tests/test_models/test_forward.py:34
↓ 6 callersMethod_make_layers
Initialize conv sequential for CornerHead.
mmdetection/mmdet/models/dense_heads/corner_head.py:142
↓ 6 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
mmdetection/mmdet/models/detectors/base.py:176
↓ 6 callersMethod_transpose_and_gather_feat
Transpose and gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord
mmdetection/mmdet/models/dense_heads/corner_head.py:794
↓ 6 callersFunctionbuild_roi_extractor
Build roi extractor.
mmdetection/mmdet/models/builder.py:45
↓ 6 callersFunctioncreate_random_bboxes
(num_bboxes, img_w, img_h)
mmdetection/tests/test_data/test_transform.py:138
↓ 6 callersMethodcrop
See :func:`BaseInstanceMasks.crop`.
mmdetection/mmdet/core/mask/structures.py:237
↓ 6 callersFunctionget_color
(c, x, max_val)
util_copy/utils.py:414
↓ 6 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_meta
mmdetection/mmdet/models/dense_heads/reppoints_head.py:295
↓ 6 callersFunctionmerge_aug_masks
Merge augmented mask prediction. Args: aug_masks (list[ndarray]): shape (n, #class, h, w) img_shapes (list[ndarray]): shape (3, )
mmdetection/mmdet/core/post_processing/merge_augs.py:87
↓ 6 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmdetection/mmdet/models/backbones/hrnet.py:348
↓ 6 callersMethodvalid_flags
(self, featmap_size, valid_size, device='cuda')
mmdetection/mmdet/core/anchor/point_generator.py:27
↓ 5 callersFunctionanchor_inside_flags
Check whether the anchors are inside the border. Args: flat_anchors (torch.Tensor): Flatten anchors, shape (n, 4). valid_flags (t
mmdetection/mmdet/core/anchor/utils.py:20
↓ 5 callersFunctionbbox_iou
(box1, box2, x1y1x2y2=True)
util_copy/utils.py:145
↓ 5 callersFunctionbuild_bbox_coder
Builder of box coder.
mmdetection/mmdet/core/bbox/builder.py:18
↓ 5 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
mmdetection/mmdet/datasets/builder.py:68
↓ 5 callersFunctiondistance2bbox
Decode distance prediction to bounding box. Args: points (Tensor): Shape (n, 2), [x, y]. distance (Tensor): Distance from the giv
mmdetection/mmdet/core/bbox/transforms.py:117
↓ 5 callersMethodevaluate
Evaluate in VOC protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[str]
mmdetection/mmdet/datasets/voc.py:23
↓ 5 callersMethodget_cat_ids
Get category ids of concatenated dataset by index. Args: idx (int): Index of data. Returns: list[int]: All c
mmdetection/mmdet/datasets/dataset_wrappers.py:31
↓ 5 callersFunctioninference_detector
Inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str/ndarray or list[str/ndarray]): Eith
mmdetection/mmdet/apis/inference.py:115
↓ 5 callersMethodinfo
dict: a dictionary of info about the object
mmdetection/mmdet/core/bbox/assigners/assign_result.py:65
↓ 5 callersFunctionnms
(boxes, nms_thresh)
util_copy/utils.py:211
↓ 5 callersMethodregress_by_class
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: rois (Tensor): shape (n, 4) or (n, 5) label (T
mmdetection/mmdet/models/roi_heads/bbox_heads/bbox_head.py:306
↓ 5 callersMethodresize
see :func:`BaseInstanceMasks.resize`
mmdetection/mmdet/core/mask/structures.py:385
↓ 5 callersFunctionround_filters
Calculate and round number of filters based on depth multiplier.
efficientnet/utils.py:62
↓ 5 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
mmdetection/mmdet/datasets/pipelines/formating.py:11
↓ 4 callersMethod__init__
Args: num_channels: conv_channels: first_time: whether the input comes directly from the efficientnet,
efficientdet/model.py:60
↓ 4 callersMethod__init__
(self, eps=1e-6, reduction='mean', loss_weight=1.0)
mmdetection/mmdet/models/losses/iou_loss.py:244
↓ 4 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdetection/mmdet/models/roi_heads/htc_roi_head.py:166
↓ 4 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdetection/mmdet/models/roi_heads/cascade_roi_head.py:138
↓ 4 callersFunction_context_for_ohem
()
mmdetection/tests/test_data/test_sampler.py:94
↓ 4 callersMethod_freeze_stages
(self)
mmdetection/mmdet/models/backbones/resnet.py:573
↓ 4 callersFunctionarea
(bboxes)
mmdetection/tests/test_data/test_transform.py:160
↓ 4 callersFunctionbuild_backbone
Build backbone.
mmdetection/mmdet/models/builder.py:35
↓ 4 callersFunctionbuild_iou_calculator
Builder of IoU calculator.
mmdetection/mmdet/core/bbox/iou_calculators/builder.py:6
↓ 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
mmdetection/mmdet/core/anchor/utils.py:49
↓ 4 callersFunctiondummy_bboxes
(num, max_height, max_width)
mmdetection/tests/test_masks.py:35
↓ 4 callersFunctiondummy_masks
(h, w, num_obj=3, mode='bitmap')
mmdetection/tests/test_config.py:104
↓ 4 callersFunctionencode_mask_results
Encode bitmap mask to RLE code. Args: mask_results (list | tuple[list]): bitmap mask results. In mask scoring rcnn, mask_resu
mmdetection/mmdet/core/mask/utils.py:36
↓ 4 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmdetection/mmdet/models/detectors/two_stage.py:80
↓ 4 callersMethodget_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmdetection/mmdet/models/dense_heads/atss_head.py:320
next →1–100 of 1,414, ranked by callers