MCPcopy Create free account

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

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

↓ 5 callersFunctionmake_divisible
Make divisible function. This function rounds the channel number to the nearest value that can be divisible by the divisor. It is taken from
mmdet/models/utils/make_divisible.py:2
↓ 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:84
↓ 5 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
mmdet/models/backbones/resnet.py:259
↓ 5 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
setup.py:56
↓ 5 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:381
↓ 5 callersFunctionsingle_gpu_test
(model, data_loader, show=False, out_dir=None,
mmdet/apis/test.py:17
↓ 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/formatting.py:12
↓ 4 callersMethod__init__
(self, embed_dims, num_heads, window_size,
mmdet/models/backbones/swin.py:41
↓ 4 callersMethod__init__
(self, linear=False, eps=1e-6, reduction='mean',
mmdet/models/losses/iou_loss.py:256
↓ 4 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdet/models/roi_heads/htc_roi_head.py:158
↓ 4 callersMethod_filter_boxes
Check whether the center of each box is in the patch. Args: patch (list[int]): The cropped area, [left, top, right, bottom].
mmdet/datasets/pipelines/transforms.py:1689
↓ 4 callersMethod_get_border
Get final border for the target size. This function generates a ``final_border`` according to image's shape. The area between ``final
mmdet/datasets/pipelines/transforms.py:1670
↓ 4 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdet/models/roi_heads/standard_roi_head.py:181
↓ 4 callersFunctionanchor_ctr_inside_region_flags
Get the flag indicate whether anchor centers are inside regions.
mmdet/core/bbox/assigners/region_assigner.py:27
↓ 4 callersFunctionbbox_mapping_back
Map bboxes from testing scale to original image scale.
mmdet/core/bbox/transforms.py:63
↓ 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:17
↓ 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:10
↓ 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:50
↓ 4 callersFunctioncompat_cfg
This function would modify some filed to keep the compatibility of config. For example, it will move some args which will be deprecated to th
mmdet/utils/compat_config.py:8
↓ 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:7
↓ 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
mmdet/core/mask/utils.py:38
↓ 4 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmdet/models/detectors/single_stage.py:41
↓ 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:50
↓ 4 callersFunctionget_device
Returns an available device, cpu, cuda or mlu.
mmdet/utils/util_distribution.py:67
↓ 4 callersMethodget_extra_property
Get user-defined property.
mmdet/core/bbox/assigners/assign_result.py:61
↓ 4 callersMethodget_img_ids
(self, img_ids=[], cat_ids=[])
mmdet/datasets/api_wrappers/coco_api.py:33
↓ 4 callersFunctionget_k_for_topk
Get k of TopK for onnx exporting. The K of TopK in TensorRT should not be a Tensor, while in ONNX Runtime it could be a Tensor.Due to dynam
mmdet/core/export/onnx_helper.py:46
↓ 4 callersMethodload_anns
Load anns with the specified ids. self.anns is a list of annotation lists instead of a list of annotations. Args:
mmdet/datasets/coco_panoptic.py:89
↓ 4 callersMethodload_imgs
(self, ids)
mmdet/datasets/api_wrappers/coco_api.py:42
↓ 4 callersMethodload_proposals
Load proposal from proposal file.
mmdet/datasets/custom.py:139
↓ 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:494
↓ 4 callersFunctionmulti_gpu_test
Test model with multiple gpus. This method tests model with multiple gpus and collects the results under two different modes: gpu and cpu mod
mmdet/apis/test.py:81
↓ 4 callersFunctionnlc_to_nchw
Convert [N, L, C] shape tensor to [N, C, H, W] shape tensor. Args: x (Tensor): The input tensor of shape [N, L, C] before conversion.
mmdet/models/utils/transformer.py:32
↓ 4 callersMethodnorm2
nn.Module: the normalization layer named "norm2"
mmdet/models/backbones/hrnet.py:408
↓ 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:170
↓ 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:102
↓ 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:294
↓ 4 callersMethodside_aware_split
Split side-aware features aligned with orders of bucketing targets.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:289
↓ 4 callersFunctionsync_random_seed
Make sure different ranks share the same seed. All workers must call this function, otherwise it will deadlock. This method is generally used
mmdet/core/utils/dist_utils.py:157
↓ 4 callersMethodto_tensor
See :func:`BaseInstanceMasks.to_tensor`.
mmdet/core/mask/structures.py:507
↓ 4 callersMethodvalid_flags
(self, featmap_size, valid_size, device='cuda')
mmdet/core/anchor/point_generator.py:30
↓ 4 callersMethodxyxy2xywh
Convert ``xyxy`` style bounding boxes to ``xywh`` style for COCO evaluation. Args: bbox (numpy.ndarray): The bounding box
mmdet/datasets/coco.py:204
↓ 3 callersMethod__init__
(self, in_channels, out_channels, num_outs,
mmdet/models/necks/fpg.py:150
↓ 3 callersMethod__init__
(self, groups=1, base_width=4, radix=2, re
mmdet/models/backbones/resnest.py:299
↓ 3 callersMethod__init__
(self, depth, in_channels=3, stem_channels=None,
mmdet/models/backbones/resnet.py:369
↓ 3 callersMethod__init__
(self, num_classes, in_channels, anchor_generator=dict(
mmdet/models/dense_heads/yolact_head.py:44
↓ 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:118
↓ 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:221
↓ 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:88
↓ 3 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdet/models/roi_heads/standard_roi_head.py:118
↓ 3 callersMethod_bboxes_nms
(self, cls_scores, bboxes, score_factor, cfg)
mmdet/models/dense_heads/yolox_head.py:311
↓ 3 callersMethod_build_head
Build head for each branch.
mmdet/models/dense_heads/centernet_head.py:64
↓ 3 callersMethod_crop_image_and_paste
Crop image with a given center and size, then paste the cropped image to a blank image with two centers align. This function is equiv
mmdet/datasets/pipelines/transforms.py:1705
↓ 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:54
↓ 3 callersFunction_do_paste_mask
Paste instance masks according to boxes. This implementation is modified from https://github.com/facebookresearch/detectron2/ Args:
mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:344
↓ 3 callersMethod_init_cls_convs
Initialize classification conv layers of the head.
mmdet/models/dense_heads/anchor_free_head.py:113
↓ 3 callersMethod_init_reg_convs
Initialize bbox regression conv layers of the head.
mmdet/models/dense_heads/anchor_free_head.py:133
↓ 3 callersMethod_make_stage
(self, layer_config, in_channels, multiscale_output=True)
mmdet/models/backbones/hrnet.py:505
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
mmdet/models/backbones/hrnet.py:412
↓ 3 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdet/models/roi_heads/sparse_roi_head.py:151
↓ 3 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
mmdet/models/roi_heads/scnet_roi_head.py:179
↓ 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:196
↓ 3 callersMethod_split_cls_score
(self, cls_score)
mmdet/models/losses/seesaw_loss.py:138
↓ 3 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:205
↓ 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:133
↓ 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:41
↓ 3 callersMethodaug_test_rpn
Augmented forward test function.
mmdet/models/dense_heads/cascade_rpn_head.py:798
↓ 3 callersFunctionbbox2fields
The key correspondence from bboxes to labels, masks and segmentations.
mmdet/datasets/pipelines/auto_augment.py:29
↓ 3 callersFunctionbuild_ddp
Build DistributedDataParallel module by device type. If device is cuda, return a MMDistributedDataParallel model; if device is mlu, return a
mmdet/utils/util_distribution.py:34
↓ 3 callersFunctionbuild_dp
build DataParallel module by device type. if device is cuda, return a MMDataParallel model; if device is mlu, return a MLUDataParallel model.
mmdet/utils/util_distribution.py:10
↓ 3 callersFunctionbuild_transformer
Builder for Transformer.
mmdet/models/utils/builder.py:9
↓ 3 callersFunctioncarl_loss
Classification-Aware Regression Loss (CARL). Args: cls_score (Tensor): Predicted classification scores. labels (Tensor): Targets
mmdet/models/losses/pisa_loss.py:123
↓ 3 callersFunctioncompleted
Async context manager that waits for work to complete on given CUDA streams.
mmdet/utils/contextmanagers.py:17
↓ 3 callersFunctionconvert_bn
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/model_converters/detectron2pytorch.py:11
↓ 3 callersFunctionconvert_conv_fc
(blobs, state_dict, caffe_name, torch_name, converted_names)
tools/model_converters/detectron2pytorch.py:24
↓ 3 callersFunctionenhance_level_to_value
Map from level to values.
mmdet/datasets/pipelines/auto_augment.py:19
↓ 3 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:6
↓ 3 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:65
↓ 3 callersMethodevaluate
Evaluation in COCO protocol. Args: results (list[list | tuple]): Testing results of the dataset. metric (str | list[s
mmdet/datasets/coco.py:592
↓ 3 callersMethodevaluate_det_segm
Instance segmentation and object detection evaluation in COCO protocol. Args: results (list[list | tuple | dict]): Testin
mmdet/datasets/coco.py:386
↓ 3 callersFunctionfind_inside_bboxes
Find bboxes as long as a part of bboxes is inside the image. Args: bboxes (Tensor): Shape (N, 4). img_h (int): Image height.
mmdet/core/bbox/transforms.py:6
↓ 3 callersFunctionfp16_clamp
(x, min=None, max=None)
mmdet/core/bbox/iou_calculators/iou2d_calculator.py:14
↓ 3 callersFunctiongather_feat
Gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord index. mask (Tenso
mmdet/models/utils/gaussian_target.py:234
↓ 3 callersFunctiongen_gaussian_target
Generate 2D gaussian heatmap. Args: heatmap (Tensor): Input heatmap, the gaussian kernel will cover on it and maintain the ma
mmdet/models/utils/gaussian_target.py:32
↓ 3 callersFunctiongenerate_coordinate
Generate the coordinate. Args: featmap_sizes (tuple): The feature to be calculated, of shape (N, C, W, H). device (st
mmdet/core/utils/misc.py:190
↓ 3 callersMethodget_ann_info
Get annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specified index.
mmdet/datasets/custom.py:143
↓ 3 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:50
↓ 3 callersFunctionget_local_maximum
Extract local maximum pixel with given kernel. Args: heat (Tensor): Target heatmap. kernel (int): Kernel size of max pooling. Def
mmdet/models/utils/gaussian_target.py:190
↓ 3 callersFunctionget_palette
Get palette from various inputs. Args: palette (list[tuple] | str | tuple | :obj:`Color`): palette inputs. num_classes (int): the
mmdet/core/visualization/palette.py:22
↓ 3 callersFunctionget_results
(filename, dataset='coco', task='bbox', metric=None,
tools/analysis_tools/robustness_eval.py:156
↓ 3 callersMethodget_results
Get multi-image mask results. Args: mlvl_mask_preds (list[Tensor]): Multi-level mask prediction. Each element in
mmdet/models/dense_heads/solo_head.py:419
↓ 3 callersMethodget_targets
A wrapper for computing ATSS and FCOS targets for points in multiple images. Args: cls_scores (list[Tensor]): Box iou-awa
mmdet/models/dense_heads/vfnet_head.py:500
↓ 3 callersFunctionget_topk_from_heatmap
Get top k positions from heatmap. Args: scores (Tensor): Target heatmap with shape [batch, num_classes, height, width].
mmdet/models/utils/gaussian_target.py:207
↓ 3 callersFunctioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
mmdet/models/utils/transformer.py:388
↓ 3 callersFunctionisr_p
Importance-based Sample Reweighting (ISR_P), positive part. Args: cls_score (Tensor): Predicted classification scores. bbox_pred
mmdet/models/losses/pisa_loss.py:9
↓ 3 callersFunctionlevel_to_value
Map from level to values based on max_value.
mmdet/datasets/pipelines/auto_augment.py:14
↓ 3 callersMethodload_annotations
Load annotation from COCO style annotation file. Args: ann_file (str): Path of annotation file. Returns: lis
mmdet/datasets/coco.py:62
↓ 3 callersMethodload_cats
(self, ids)
mmdet/datasets/api_wrappers/coco_api.py:39
↓ 3 callersFunctionlog_img_scale
Log image size. Args: img_scale (tuple): Image size to be logged. shape_order (str, optional): The order of image shape.
mmdet/utils/logger.py:37
↓ 3 callersFunctionnchw_to_nlc
Flatten [N, C, H, W] shape tensor to [N, L, C] shape tensor. Args: x (Tensor): The input tensor of shape [N, C, H, W] before conversion.
mmdet/models/utils/transformer.py:49
← previousnext →101–200 of 2,185, ranked by callers