Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IIM-TTIJ/MVA2023SmallObjectDetection4SpottingBirds
/ functions
Functions
2,185 in github.com/IIM-TTIJ/MVA2023SmallObjectDetection4SpottingBirds
⨍
Functions
2,185
◇
Types & classes
416
↓ 3 callers
Method
norm1
nn.Module: normalization layer after the first convolution layer
mmdet/models/backbones/resnet.py:249
↓ 3 callers
Function
parse_shape
(shape)
tools/deployment/onnx2tensorrt.py:208
↓ 3 callers
Function
print_coco_results
(results)
tools/analysis_tools/robustness_eval.py:9
↓ 3 callers
Function
random_negative
Randomly negate value based on random_negative_prob.
mmdet/datasets/pipelines/auto_augment.py:24
↓ 3 callers
Method
resize_feats
Downsample the first feat and upsample last feat in feats.
mmdet/models/dense_heads/solo_head.py:132
↓ 3 callers
Function
scale_boxes
Expand an array of boxes by a given scale. Args: bboxes (Tensor): Shape (m, 4) scale (float): The scale factor of bboxes Ret
mmdet/core/bbox/assigners/center_region_assigner.py:10
↓ 3 callers
Method
set_meta_info
Add meta information. Args: meta_info (dict): A dict contains the meta information of image. such as `img_shape`,
mmdet/core/data_structures/general_data.py:97
↓ 3 callers
Function
setup_multi_processes
Setup multi-processing environment variables.
mmdet/utils/setup_env.py:10
↓ 3 callers
Method
simple_test_bboxes
Test only det bboxes without augmentation. Args: x (tuple[Tensor]): Feature maps of all scale level. img_metas (list[
mmdet/models/roi_heads/test_mixins.py:51
↓ 3 callers
Method
single_level_grid_priors
Generate grid anchors of a single level. Note: This function is usually called by method ``self.grid_priors``. Args:
mmdet/core/anchor/anchor_generator.py:241
↓ 2 callers
Method
__init__
(self, dataset, input_shape, logger, devic
tools/analysis_tools/optimize_anchors.py:80
↓ 2 callers
Method
__init__
(self, momentum=0.0002, interval=1, skip_buffers=False,
mmdet/core/hook/ema.py:32
↓ 2 callers
Method
__init__
(self, engine_file, class_names, device_id, output_names=None)
mmdet/core/export/model_wrappers.py:155
↓ 2 callers
Method
__init__
(self, in_channels, out_channels, num_blocks=6,
mmdet/models/necks/dyhead.py:146
↓ 2 callers
Method
__init__
(self, block, inplanes, planes, num_blocks
mmdet/models/backbones/detectors_resnet.py:146
↓ 2 callers
Method
__init__
(self, scales=4, base_width=26, style='pytorch',
mmdet/models/backbones/res2net.py:303
↓ 2 callers
Method
__init__
(self, in_channels, out_channels, kernel_size,
mmdet/models/backbones/trident_resnet.py:33
↓ 2 callers
Method
__init__
(self, in_channels, out_channels, kernel_size=1,
mmdet/models/backbones/csp_darknet.py:30
↓ 2 callers
Method
__init__
(self, in_channels, out_channels, kernel_size=3,
mmdet/models/dense_heads/cascade_rpn_head.py:42
↓ 2 callers
Method
__init__
( self, num_classes, in_channels, feat_channels=256, stacked_convs=4,
mmdet/models/dense_heads/solo_head.py:49
↓ 2 callers
Method
__init__
(self, num_shared_convs=0, num_shared_fcs=0, num_cls_convs=
mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:22
↓ 2 callers
Method
__nice__
str: a "nice" summary string describing this module
mmdet/utils/util_mixins.py:76
↓ 2 callers
Method
_assign
Assign gt to priors using SimOTA. Args: pred_scores (Tensor): Classification scores of one image, a 2D-Tensor with
mmdet/core/bbox/assigners/sim_ota_assigner.py:95
↓ 2 callers
Method
_bbox_decode
(self, priors, bbox_preds)
mmdet/models/dense_heads/yolox_head.py:299
↓ 2 callers
Method
_build_stacked_convs
Initialize conv layers of a single level head.
mmdet/models/dense_heads/yolox_head.py:144
↓ 2 callers
Function
_calc_dynamic_intervals
(start_interval, dynamic_interval_list)
mmdet/core/evaluation/eval_hooks.py:12
↓ 2 callers
Method
_check_head
Check whether the `num_classes` in head matches the length of `CLASSES` in `dataset`. Args: runner (obj:`EpochBasedRunner
mmdet/datasets/utils.py:120
↓ 2 callers
Method
_decide_interval
(self, runner)
mmdet/core/evaluation/eval_hooks.py:34
↓ 2 callers
Method
_decide_interval
(self, runner)
mmdet/core/evaluation/eval_hooks.py:78
↓ 2 callers
Method
_fuse_glbctx
Fuse global context feats with roi feats.
mmdet/models/roi_heads/scnet_roi_head.py:73
↓ 2 callers
Function
_get_adaptive_scales
Get adaptive scales according to areas. The scale range is [0.5, 1.0]. When the area is less than ``'min_area'``, the scale is 0.5 while the
mmdet/core/visualization/image.py:38
↓ 2 callers
Method
_get_bboxes_single
Transform outputs of a single image into bbox predictions. Args: cls_score_list (list[Tensor]): Box scores from all scale
mmdet/models/dense_heads/paa_head.py:537
↓ 2 callers
Method
_get_bboxes_single
Transform outputs for a single batch item into bbox predictions. Args: tl_heat (Tensor): Top-left corner heatmap for current leve
mmdet/models/dense_heads/corner_head.py:704
↓ 2 callers
Method
_get_fine_grained_point_feats
Sample fine grained feats from each level feature map and concatenate them together. Args: x (tuple[Tensor]): Feature map
mmdet/models/roi_heads/point_rend_roi_head.py:66
↓ 2 callers
Function
_interpolate_as
Interpolate the `source` (4D) to the shape of the `target`.
mmdet/models/utils/misc.py:55
↓ 2 callers
Method
_load_bboxes
Private function to load bounding box annotations. Args: results (dict): Result dict from :obj:`mmdet.CustomDataset`. Re
mmdet/datasets/pipelines/loading.py:245
↓ 2 callers
Method
_load_labels
Private function to load label annotations. Args: results (dict): Result dict from :obj:`mmdet.CustomDataset`. Returns:
mmdet/datasets/pipelines/loading.py:277
↓ 2 callers
Method
_mask_point_forward_test
Mask refining process with point head in testing. Args: x (tuple[Tensor]): Feature maps of all scale level. rois (Ten
mmdet/models/roi_heads/point_rend_roi_head.py:104
↓ 2 callers
Method
_meshgrid
(self, x, y, row_major=True)
mmdet/core/anchor/point_generator.py:12
↓ 2 callers
Method
_meshgrid
(self, x, y, row_major=True)
mmdet/core/anchor/point_generator.py:70
↓ 2 callers
Method
_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
mmdet/models/detectors/base.py:176
↓ 2 callers
Method
_random_scale
Randomly sample an img_scale according to ``ratio_range`` and ``multiscale_mode``. If ``ratio_range`` is specified, a ratio will be s
mmdet/datasets/pipelines/transforms.py:182
↓ 2 callers
Method
_save_image_gts_results
(self, dataset, results, mAPs, out_dir=None)
tools/analysis_tools/analyze_results.py:65
↓ 2 callers
Method
_segm2json
Convert instance segmentation results to COCO json style.
mmdet/datasets/coco.py:256
↓ 2 callers
Method
_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
↓ 2 callers
Method
_swap_ema_parameters
Swap the parameter of model with parameter in ema_buffer.
mmdet/core/hook/ema.py:94
↓ 2 callers
Function
adaptive_avg_pool2d
Handle empty batch dimension to adaptive_avg_pool2d. Args: input (tensor): 4D tensor. output_size (int, tuple[int,int]): the targ
mmdet/models/utils/brick_wrappers.py:15
↓ 2 callers
Function
addAnnItem
(annotation_id, image_id, category_id, bbox, difficult_flag)
tools/dataset_converters/pascal_voc.py:106
↓ 2 callers
Method
add_gt_
Add ground truth as assigned results. Args: gt_labels (torch.Tensor): Labels of gt boxes
mmdet/core/bbox/assigners/assign_result.py:192
↓ 2 callers
Method
albu_builder
Import a module from albumentations. It inherits some of :func:`build_from_cfg` logic. Args: cfg (dict): Config dict. It
mmdet/datasets/pipelines/transforms.py:1417
↓ 2 callers
Method
anchor_offset
Get offset for deformable conv based on anchor shape NOTE: currently support deformable kernel_size=3 and dilation=1 Args:
mmdet/models/dense_heads/cascade_rpn_head.py:328
↓ 2 callers
Function
autolabel
Attach a text label above each bar in *rects*, displaying its height.
tools/analysis_tools/coco_error_analysis.py:54
↓ 2 callers
Function
bbox_flip
Flip bboxes horizontally or vertically. Args: bboxes (Tensor): Shape (..., 4*k) img_shape (tuple): Image shape. direction
mmdet/core/bbox/transforms.py:22
↓ 2 callers
Method
bbox_pred_split
Split batch bbox prediction back to each image.
mmdet/models/roi_heads/bbox_heads/sabl_head.py:301
↓ 2 callers
Function
bbox_rescale
Rescale bounding box w.r.t. scale_factor. Args: bboxes (Tensor): Shape (n, 4) for bboxes or (n, 5) for rois scale_factor (float):
mmdet/core/bbox/transforms.py:213
↓ 2 callers
Function
build_model_from_cfg
Build a model from config and load the given checkpoint. Args: config_path (str): the OpenMMLab config for the model we want to
mmdet/core/export/pytorch2onnx.py:65
↓ 2 callers
Function
cast_tensor_type
(x, scale=1., dtype=None)
mmdet/core/bbox/iou_calculators/iou2d_calculator.py:7
↓ 2 callers
Method
centerness_target
(self, anchors, gts)
mmdet/models/dense_heads/atss_head.py:305
↓ 2 callers
Function
collect_env
Collect the information of the running environments.
mmdet/utils/collect_env.py:8
↓ 2 callers
Function
collect_results_cpu
(result_part, size, tmpdir=None)
mmdet/apis/test.py:136
↓ 2 callers
Method
crop
See :func:`BaseInstanceMasks.crop`.
mmdet/core/mask/structures.py:314
↓ 2 callers
Method
crop
Crop predicted masks by zeroing out everything not in the predicted bbox. Args: masks (Tensor): shape [H, W, N].
mmdet/models/dense_heads/yolact_head.py:876
↓ 2 callers
Function
cvt_annotations
(devkit_path, years, split, out_file)
tools/dataset_converters/pascal_voc.py:68
↓ 2 callers
Function
distance2bbox
Decode distance prediction to bounding box. Args: points (Tensor): Shape (B, N, 2) or (N, 2). distance (Tensor): Distance from th
mmdet/core/bbox/transforms.py:136
↓ 2 callers
Function
download_one
(url, dir)
tools/misc/download_dataset.py:37
↓ 2 callers
Function
draw_labels
Draw labels on the axes. Args: ax (matplotlib.Axes): The input axes. labels (ndarray): The labels with the shape of (n, ).
mmdet/core/visualization/image.py:112
↓ 2 callers
Method
extract_feat
Directly extract features from the backbone and neck.
mmdet/models/detectors/single_stage_instance_seg.py:56
↓ 2 callers
Method
fast_eval_recall
(self, results, proposal_nums, iou_thrs, logger=None)
mmdet/datasets/coco.py:334
↓ 2 callers
Function
flip_tensor
flip tensor base on flip_direction. Args: src_tensor (Tensor): input feature map, shape (B, C, H, W). flip_direction (str): The f
mmdet/core/utils/misc.py:65
↓ 2 callers
Method
forward
Placeholder of forward function. Returns: dict[str, Tensor]: A dictionary, including features and predicted score
mmdet/models/seg_heads/base_semantic_head.py:55
↓ 2 callers
Method
forward
Forward features from the upstream network. Args: feats (tuple[Tensor]): Features from the upstream network, each is
mmdet/models/dense_heads/ssd_head.py:196
↓ 2 callers
Method
forward
Args: x (Tensor): Has shape (B, C, H, W). In most case, C is 3. Returns: tuple: Contains merged results and
mmdet/models/utils/transformer.py:236
↓ 2 callers
Method
forward_head
Forward for head part which is called after every decoder layer. Args: decoder_out (Tensor): in shape (num_queries, batch_size, c
mmdet/models/dense_heads/mask2former_head.py:309
↓ 2 callers
Function
gaussian_radius
r"""Generate 2D gaussian radius. This function is modified from the `official github repo <https://github.com/princeton-vl/CornerNet-Lite/blo
mmdet/models/utils/gaussian_target.py:68
↓ 2 callers
Method
gen_base_anchors
Generate base anchors. Returns: list(torch.Tensor): Base anchors of a feature grid in multiple \ feature levels.
mmdet/core/anchor/anchor_generator.py:131
↓ 2 callers
Method
gen_grid_from_reg
Base on the previous bboxes and regression values, we compute the regressed bboxes and generate the grids on the bboxes. :param reg:
mmdet/models/dense_heads/reppoints_head.py:221
↓ 2 callers
Method
gen_single_level_base_anchors
Generate base anchors of a single level. Args: base_size (int | float): Basic size of an anchor. scales (torch.Tensor
mmdet/core/anchor/anchor_generator.py:151
↓ 2 callers
Method
get_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
mmdet/models/dense_heads/guided_anchor_head.py:299
↓ 2 callers
Method
get_anchors
Get squares according to feature map sizes and guided anchors. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes.
mmdet/models/dense_heads/sabl_retina_head.py:210
↓ 2 callers
Method
get_ann_info
Get annotation of concatenated dataset by index. Args: idx (int): Index of data. Returns: dict: Annotation i
mmdet/datasets/dataset_wrappers.py:72
↓ 2 callers
Method
get_ann_info
Get OpenImages annotation by index. Args: idx (int): Index of data. Returns: dict: Annotation info of specif
mmdet/datasets/openimages.py:220
↓ 2 callers
Method
get_bboxes
(self)
mmdet/core/mask/structures.py:532
↓ 2 callers
Method
get_bboxes
get_bboxes() is implemented in StageCascadeRPNHead.
mmdet/models/dense_heads/cascade_rpn_head.py:724
↓ 2 callers
Function
get_classes
Get class names of a dataset.
mmdet/core/evaluation/class_names.py:318
↓ 2 callers
Method
get_classes
Get class names of current dataset. Args: classes (Sequence[str] | str | None): If classes is None, use default C
mmdet/datasets/custom.py:262
↓ 2 callers
Method
get_classes_from_csv
Get classes name from file. Args: label_file (str): File path of the label description file that maps the classes
mmdet/datasets/openimages.py:127
↓ 2 callers
Method
get_cls_channels
Get custom classification channels. Args: num_classes (int): The number of classes. Returns: int: The custom
mmdet/models/losses/seesaw_loss.py:145
↓ 2 callers
Method
get_meta_from_pipeline
Get image metas from pipeline.
mmdet/datasets/openimages.py:308
↓ 2 callers
Method
get_pad_shape
(self, input_shape)
mmdet/models/utils/transformer.py:109
↓ 2 callers
Method
get_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_meta
mmdet/models/dense_heads/reppoints_head.py:304
↓ 2 callers
Method
get_relation_matrix
Get hierarchy for classes. Args: hierarchy_file (sty): File path to the hierarchy for classes. Returns: ndar
mmdet/datasets/openimages.py:357
↓ 2 callers
Method
get_roi_rel_points_test
Get ``num_points`` most uncertain points during test. Args: mask_pred (Tensor): A tensor of shape (num_rois, num_classes,
mmdet/models/roi_heads/mask_heads/mask_point_head.py:215
↓ 2 callers
Method
get_sampled_approxs
Get sampled approxs and inside flags according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map s
mmdet/models/dense_heads/guided_anchor_head.py:249
↓ 2 callers
Method
get_targets
Compute corresponding GT box and classification targets for proposals. Args: proposals_list (list[list]): Multi level poi
mmdet/models/dense_heads/reppoints_head.py:442
↓ 2 callers
Method
get_targets
Compute semantic segmentation targets for each image. Args: segm_pred (Tensor): Predicted semantic segmentation map
mmdet/models/dense_heads/yolact_head.py:542
↓ 2 callers
Function
get_uncertain_point_coords_with_randomness
Get ``num_points`` most uncertain points with random points during train. Sample points in [0, 1] x [0, 1] coordinate space based on their
mmdet/models/utils/point_sample.py:32
↓ 2 callers
Function
get_uncertainty
Estimate uncertainty based on pred logits. We estimate uncertainty as L1 distance between 0.0 and the logits prediction in 'mask_pred' for th
mmdet/models/utils/point_sample.py:6
↓ 2 callers
Method
get_zero_center_bbox_tensor
Get a tensor of bboxes centered at (0, 0). Returns: Tensor: Tensor of bboxes with shape (num_bboxes, 4) in [xmin, ymi
tools/analysis_tools/optimize_anchors.py:124
↓ 2 callers
Method
hard_mining
(self, inds, num_expected, bboxes, labels, feats)
mmdet/core/bbox/samplers/ohem_sampler.py:34
↓ 2 callers
Function
inference_detector
Inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str/ndarray or list[str/ndarray] or tup
mmdet/apis/inference.py:93
← previous
next →
201–300 of 2,185, ranked by callers