MCPcopy Create free account

hub / github.com/IIM-TTIJ/MVA2023SmallObjectDetection4SpottingBirds / functions

Functions2,185 in github.com/IIM-TTIJ/MVA2023SmallObjectDetection4SpottingBirds

↓ 383 callersMethodcat
Concat the predictions of all :obj:`InstanceData` in the list. Args: instances_list (list[:obj:`InstanceData`]): A list
mmdet/core/data_structures/instance_data.py:151
↓ 261 callersMethodget
(self, *args)
mmdet/core/data_structures/general_data.py:231
↓ 78 callersMethoddetach
Apply same name function to all tensors in data_fields.
mmdet/core/data_structures/general_data.py:297
↓ 72 callersMethodcpu
Apply same name function to all tensors in data_fields.
mmdet/core/data_structures/general_data.py:267
↓ 72 callersMethodto
Apply same name function to all tensors in data_fields.
mmdet/core/data_structures/general_data.py:257
↓ 67 callersFunctionmulti_apply
Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and map the multiple outputs o
mmdet/core/utils/misc.py:11
↓ 66 callersMethoditems
(self)
mmdet/core/data_structures/general_data.py:187
↓ 63 callersFunctionbuild_loss
Build loss.
mmdet/models/builder.py:43
↓ 57 callersMethodpop
(self, *args)
mmdet/core/data_structures/general_data.py:235
↓ 55 callersMethoddecode
Decode the predicted bboxes according to prediction and base boxes.
mmdet/core/bbox/coder/base_bbox_coder.py:16
↓ 51 callersMethodexpand
See :func:`BaseInstanceMasks.expand`.
mmdet/core/mask/structures.py:369
↓ 49 callersFunctionbbox2roi
Convert a list of bboxes to roi format. Args: bbox_list (list[Tensor]): a list of bboxes corresponding to a batch of images.
mmdet/core/bbox/transforms.py:75
↓ 48 callersMethodnumpy
Apply same name function to all tensors in data_fields.
mmdet/core/data_structures/general_data.py:307
↓ 46 callersFunctionimages_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
mmdet/core/anchor/utils.py:5
↓ 40 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
mmdet/core/utils/misc.py:33
↓ 26 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print(f'self = {self.to(None)}
mmdet/core/bbox/samplers/sampling_result.py:57
↓ 25 callersFunctionbuild_head
Build head.
mmdet/models/builder.py:38
↓ 24 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmdet/core/bbox/samplers/base_sampler.py:35
↓ 23 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
mmdet/core/bbox/assigners/atss_assigner.py:34
↓ 23 callersFunctionbbox_overlaps
Calculate the ious between each bbox of bboxes1 and bboxes2. Args: bboxes1 (ndarray): Shape (n, 4) bboxes2 (ndarray): Shape (k, 4
mmdet/core/evaluation/bbox_overlaps.py:5
↓ 23 callersMethodextract_feat
Extract features. Args: img (torch.Tensor): Image tensor with shape (n, c, h ,w). Returns: list[torch.Tensor
mmdet/models/detectors/rpn.py:39
↓ 23 callersMethodkeys
Returns: list: Contains all keys in data_fields.
mmdet/core/data_structures/general_data.py:159
↓ 23 callersFunctionreduce_mean
Obtain the mean of tensor on different GPUs.
mmdet/core/utils/dist_utils.py:68
↓ 22 callersMethodinfo
dict: a dictionary of info about the object
mmdet/core/bbox/assigners/assign_result.py:66
↓ 20 callersFunctionbbox2result
Convert detection results to a list of numpy arrays. Args: bboxes (torch.Tensor | np.ndarray): shape (n, 5) labels (torch.Tensor
mmdet/core/bbox/transforms.py:116
↓ 20 callersFunctionbuild_assigner
Builder of box assigner.
mmdet/core/bbox/builder.py:9
↓ 20 callersFunctionbuild_sampler
Builder of box sampler.
mmdet/core/bbox/builder.py:14
↓ 18 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:216
↓ 18 callersMethodloss
Loss function of DIIHead, get loss of all images. Args: cls_score (Tensor): Classification prediction results of
mmdet/models/roi_heads/bbox_heads/dii_head.py:201
↓ 16 callersMethodencode
Encode deltas between bboxes and ground truth boxes.
mmdet/core/bbox/coder/base_bbox_coder.py:12
↓ 16 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_met
mmdet/models/dense_heads/vfnet_head.py:568
↓ 15 callersMethodforward_plugin
(self, x, plugin_names)
mmdet/models/backbones/resnet.py:242
↓ 15 callersMethodget_targets
Calculate the ground truth for all samples in a batch according to the sampling_results. Almost the same as the implementation in bbo
mmdet/models/roi_heads/bbox_heads/dii_head.py:359
↓ 14 callersFunctionbuild_dataset
(cfg, default_args=None)
mmdet/datasets/builder.py:59
↓ 14 callersMethodvalues
Returns: list: Contains all values in data_fields.
mmdet/core/data_structures/general_data.py:173
↓ 13 callersMethodflip
See :func:`BaseInstanceMasks.flip`.
mmdet/core/mask/structures.py:290
↓ 13 callersMethodget_seg_masks
Get segmentation masks from mask_pred and bboxes. Args: mask_pred (Tensor or ndarray): shape (n, #class, h, w). F
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:179
↓ 13 callersMethodnew
Return a new results with same image meta information. Args: meta_info (dict, optional): A dict contains the meta information
mmdet/core/data_structures/general_data.py:141
↓ 13 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
mmdet/models/losses/utils.py:30
↓ 12 callersFunction_print
(result, ap=1, iouThr=None, areaRng='all', maxDets=100)
tools/analysis_tools/robustness_eval.py:11
↓ 11 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdet/models/roi_heads/scnet_roi_head.py:125
↓ 11 callersFunctionbbox_mapping
Map bboxes from the original image scale to testing scale.
mmdet/core/bbox/transforms.py:51
↓ 11 callersMethodget_bboxes
(self, det_bboxes, grid_pred, img_metas)
mmdet/models/roi_heads/mask_heads/grid_head.py:298
↓ 11 callersFunctionlevels_to_images
Concat multi-level feature maps by image. [feature_level0, feature_level1...] -> [feature_image0, feature_image1...] Convert the shape of eac
mmdet/models/dense_heads/paa_head.py:18
↓ 11 callersFunctionmulticlass_nms
NMS for multi-class bboxes. Args: multi_bboxes (Tensor): shape (n, #class*4) or (n, 4) multi_scores (Tensor): shape (n, #class),
mmdet/core/post_processing/bbox_nms.py:8
↓ 10 callersMethod_make_layers
Initialize conv sequential for CornerHead.
mmdet/models/dense_heads/corner_head.py:158
↓ 10 callersFunctionbbox_xyxy_to_cxcywh
Convert bbox coordinates from (x1, y1, x2, y2) to (cx, cy, w, h). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns: Ten
mmdet/core/bbox/transforms.py:259
↓ 10 callersMethodevaluate
Evaluate in VOC protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[str]
mmdet/datasets/voc.py:34
↓ 10 callersMethodget_targets
Get targets for PAA head. This method is almost the same as `AnchorHead.get_targets()`. We direct return the results from _get_target
mmdet/models/dense_heads/paa_head.py:402
↓ 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
mmdet/core/bbox/samplers/random_sampler.py:32
↓ 10 callersFunctionreplace_ImageToTensor
Replace the ImageToTensor transform in a data pipeline to DefaultFormatBundle, which is normally useful in batch inference. Args: pip
mmdet/datasets/utils.py:15
↓ 10 callersFunctionupdate_data_root
Update data root according to env MMDET_DATASETS. If set env MMDET_DATASETS, update cfg.data_root according to MMDET_DATASETS. Otherwise, usi
mmdet/utils/misc.py:45
↓ 9 callersMethod__init__
( self, in_channels=3, embed_dims=768, conv_type='Conv2d', kernel_size
mmdet/models/utils/transformer.py:162
↓ 9 callersMethod_bbox_forward
Box forward function used in both training and testing.
mmdet/models/roi_heads/pisa_roi_head.py:87
↓ 9 callersFunctionbbox_cxcywh_to_xyxy
Convert bbox coordinates from (cx, cy, w, h) to (x1, y1, x2, y2). Args: bbox (Tensor): Shape (n, 4) for bboxes. Returns: Ten
mmdet/core/bbox/transforms.py:245
↓ 9 callersFunctionbuild_bbox_coder
Builder of box coder.
mmdet/core/bbox/builder.py:19
↓ 9 callersFunctionbuild_detector
Build detector.
mmdet/models/builder.py:48
↓ 9 callersFunctionbuild_prior_generator
(cfg, default_args=None)
mmdet/core/anchor/builder.py:11
↓ 9 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmdet/models/backbones/hrnet.py:403
↓ 8 callersFunctionanchor_inside_flags
Check whether the anchors are inside the border. Args: flat_anchors (torch.Tensor): Flatten anchors, shape (n, 4). valid_flags (t
mmdet/core/anchor/utils.py:21
↓ 8 callersFunctionbuild_roi_extractor
Build roi extractor.
mmdet/models/builder.py:28
↓ 8 callersFunctiondigit_version
(version_str)
mmdet/__init__.py:7
↓ 8 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:358
↓ 8 callersFunctionselect_single_mlvl
Extract a multi-scale single image tensor from a multi-scale batch tensor based on batch index. Note: The default value of detach is True, be
mmdet/core/utils/misc.py:88
↓ 8 callersFunctiontranspose_and_gather_feat
Transpose and gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord index.
mmdet/models/utils/gaussian_target.py:255
↓ 7 callersFunctionaccuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor): The model prediction, shape (N, num_class)
mmdet/models/losses/accuracy.py:7
↓ 7 callersFunctionbuild_backbone
Build backbone.
mmdet/models/builder.py:18
↓ 7 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
mmdet/datasets/builder.py:87
↓ 7 callersFunctionbuild_iou_calculator
Builder of IoU calculator.
mmdet/core/bbox/iou_calculators/builder.py:7
↓ 7 callersMethodbuild_trans
(self, cfg, in_channels, out_channels, **extra_args)
mmdet/models/necks/fpg.py:317
↓ 7 callersMethodcuda
Apply same name function to all tensors in data_fields.
mmdet/core/data_structures/general_data.py:287
↓ 7 callersMethodget_bboxes
(self, cls_scores, bbox_preds, score_factors=None,
mmdet/models/dense_heads/paa_head.py:521
↓ 7 callersMethodget_cat_ids
Get COCO category ids by index. Args: idx (int): Index of data. Returns: list[int]: All categories in the im
mmdet/datasets/coco.py:106
↓ 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
mmdet/utils/logger.py:8
↓ 7 callersFunctionimshow_det_bboxes
Draw bboxes and class labels (with scores) on an image. Args: img (str | ndarray): The image to be displayed. bboxes (ndarray): B
mmdet/core/visualization/image.py:206
↓ 7 callersMethodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Cls and quality scores for each scale level has shap
mmdet/models/dense_heads/ld_head.py:185
↓ 7 callersFunctionmerge_aug_masks
Merge augmented mask prediction. Args: aug_masks (list[ndarray]): shape (n, #class, h, w) img_shapes (list[ndarray]): shape (3, )
mmdet/core/post_processing/merge_augs.py:121
↓ 7 callersMethodregress_by_class
Regress the bbox for the predicted class. Used in Cascade R-CNN. Args: rois (Tensor): Rois from `rpn_head` or last stage
mmdet/models/roi_heads/bbox_heads/bbox_head.py:460
↓ 7 callersMethodset_extra_property
Set user-defined new property.
mmdet/core/bbox/assigners/assign_result.py:56
↓ 6 callersMethod_bbox_post_process
bbox post-processing method. The boxes would be rescaled to the original image scale and do the nms operation. Usually with_nms is Fa
mmdet/models/dense_heads/paa_head.py:620
↓ 6 callersFunctionbbox_overlaps
Calculate overlap between two set of bboxes. FP16 Contributed by https://github.com/open-mmlab/mmdetection/pull/4889 Note: Assume bbo
mmdet/core/bbox/iou_calculators/iou2d_calculator.py:75
↓ 6 callersFunctionbuild_match_cost
Builder of IoU calculator.
mmdet/core/bbox/match_costs/builder.py:7
↓ 6 callersFunctionbuild_neck
Build neck.
mmdet/models/builder.py:23
↓ 6 callersFunctionfilter_scores_and_topk
Filter results using score threshold and topk candidates. Args: scores (Tensor): The scores, shape (num_bboxes, K). score_thr (fl
mmdet/core/utils/misc.py:119
↓ 6 callersMethodget_ann_info
Get COCO annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified in
mmdet/datasets/coco.py:91
↓ 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:219
↓ 6 callersMethodpad
See :func:`BaseInstanceMasks.pad`.
mmdet/core/mask/structures.py:303
↓ 6 callersMethodpre_pipeline
Prepare results dict for pipeline.
mmdet/datasets/custom.py:167
↓ 6 callersMethodshow_result
Show RPN proposals on the image. Args: data (str or np.ndarray): Image filename or loaded image. result (Tensor or tu
mmdet/models/detectors/rpn.py:142
↓ 6 callersMethodsimple_test_rpn
Simple forward test function.
mmdet/models/dense_heads/cascade_rpn_head.py:773
↓ 5 callersMethod__init__
(self, embed_dims, feedforward_channels, act_cfg=dict(type=
mmdet/models/backbones/pvt.py:47
↓ 5 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdet/models/roi_heads/scnet_roi_head.py:96
↓ 5 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdet/models/roi_heads/cascade_roi_head.py:130
↓ 5 callersMethod_freeze_stages
(self)
mmdet/models/backbones/resnet.py:613
↓ 5 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdet/models/roi_heads/cascade_roi_head.py:158
↓ 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:82
↓ 5 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:522
↓ 5 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmdet/models/detectors/two_stage.py:65
↓ 5 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:157
↓ 5 callersMethodget_ann_ids
(self, img_ids=[], cat_ids=[], area_rng=[], iscrowd=None)
mmdet/datasets/api_wrappers/coco_api.py:27
next →1–100 of 2,185, ranked by callers