MCPcopy Create free account

hub / github.com/ADLab-AutoDrive/BEVFusion / functions

Functions3,657 in github.com/ADLab-AutoDrive/BEVFusion

↓ 3 callersMethod_add_conv_fc_branch
Add shared or separable branch. convs -> avg pool (optional) -> fcs
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/convfc_bbox_head.py:85
↓ 3 callersMethod_add_fc_branch
(self, num_branch_fcs, in_channels, roi_feat_size, fc_out_channels)
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/sabl_head.py:180
↓ 3 callersMethod_bbox_forward
Box head forward function used in both training and testing. Returns all regression, classification results and a intermediate feature.
mmdetection-2.11.0/mmdet/models/roi_heads/sparse_roi_head.py:72
↓ 3 callersFunction_check_bbox_head
(bbox_cfg, bbox_head)
tests/test_runtime/test_config.py:174
↓ 3 callersFunction_check_primitive_extractor
(config, primitive_extractor)
tests/test_runtime/test_config.py:261
↓ 3 callersFunction_check_roi_extractor
(config, roi_extractor, prev_roi_extractor=None)
mmdetection-2.11.0/tests/test_runtime/test_config.py:168
↓ 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:
mmdetection-2.11.0/mmdet/models/dense_heads/embedding_rpn_head.py:46
↓ 3 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions n
tests/test_models/test_forward.py:142
↓ 3 callersFunction_draw_bboxes
Draw bbox on visualizer and change the color of points inside bbox3d. Args: bbox3d (numpy.array | torch.tensor, shape=[M, 7]):
mmdet3d/core/visualizer/open3d_vis.py:58
↓ 3 callersMethod_gather_feat
Gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord index.
mmdetection-2.11.0/mmdet/models/dense_heads/corner_head.py:787
↓ 3 callersFunction_get_pts_bbox_head_cfg
Grab configs necessary to create a pts_bbox_head. These are deep copied to allow for safe modification of parameters without influencing othe
tests/test_models/test_heads/test_heads.py:100
↓ 3 callersMethod_init
(self, runner)
mmcv_custom/runner/optimizer.py:84
↓ 3 callersMethod_init_cls_convs
Initialize classification conv layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/anchor_free_head.py:85
↓ 3 callersMethod_init_reg_convs
Initialize bbox regression conv layers of the head.
mmdetection-2.11.0/mmdet/models/dense_heads/anchor_free_head.py:105
↓ 3 callersMethod_make_stage
(self, layer_config, in_channels, multiscale_output=True)
mmdetection-2.11.0/mmdet/models/backbones/hrnet.py:438
↓ 3 callersMethod_make_transition_layer
(self, num_channels_pre_layer, num_channels_cur_layer)
mmdetection-2.11.0/mmdet/models/backbones/hrnet.py:357
↓ 3 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdetection-2.11.0/mmdet/models/roi_heads/standard_roi_head.py:196
↓ 3 callersMethod_mask_forward_train
Run forward function and calculate loss for mask head in training.
mmdetection-2.11.0/mmdet/models/roi_heads/scnet_roi_head.py:197
↓ 3 callersMethodadd_bboxes
Add bounding box to visualizer. Args: bbox3d (numpy.array, shape=[M, 7]): 3D bbox (x, y, z, x_size, y_size, z_size
mmdet3d/core/visualizer/open3d_vis.py:397
↓ 3 callersMethodadd_gt_
Add ground truth as assigned results. Args: gt_labels (torch.Tensor): Labels of gt boxes
mmdetection-2.11.0/mmdet/core/bbox/assigners/assign_result.py:190
↓ 3 callersMethodadd_sin_difference
Convert the rotation difference to difference in sine function. Args: boxes1 (torch.Tensor): Original Boxes in shape (NxC), where
mmdet3d/models/dense_heads/anchor3d_head.py:278
↓ 3 callersFunctionaligned_3d_nms
3d nms for aligned boxes. Args: boxes (torch.Tensor): Aligned box with shape [n, 6]. scores (torch.Tensor): Scores of each box.
mmdet3d/core/post_processing/box3d_nms.py:91
↓ 3 callersMethodanchor_center
Get anchor centers from anchors. Args: anchors (Tensor): Anchor list with shape (N, 4), "xyxy" format. Returns:
mmdetection-2.11.0/mmdet/models/dense_heads/gfl_head.py:196
↓ 3 callersMethodanchors_single_range
Generate anchors in a single range. Args: feature_size (list[float] | tuple[float]): Feature map size. It is eith
mmdet3d/core/anchor/anchor_3d_generator.py:147
↓ 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,
mmdetection-2.11.0/mmdet/core/bbox/assigners/max_iou_assigner.py:127
↓ 3 callersFunctionasync_inference_detector
Async inference image(s) with the detector. Args: model (nn.Module): The loaded detector. img (str | ndarray): Either image files
mmdetection-2.11.0/mmdet/apis/inference.py:155
↓ 3 callersMethodaug_test_bboxes
Test det bboxes with test time augmentation. Args: feats (list[Tensor]): the outer list indicates test-time augme
mmdetection-2.11.0/mmdet/models/dense_heads/dense_test_mixins.py:38
↓ 3 callersMethodaug_test_rpn
(self, feats, img_metas)
mmdetection-2.11.0/mmdet/models/dense_heads/rpn_test_mixin.py:39
↓ 3 callersFunctionbbox2distance
Decode bounding box based on distances. Args: points (Tensor): Shape (n, 2), [x, y]. bbox (Tensor): Shape (n, 4), "xyxy" format
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:159
↓ 3 callersFunctionbbox2fields
The key correspondence from bboxes to labels, masks and segmentations.
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:28
↓ 3 callersMethodbbox2result_kitti2d
Convert 2D detection results to kitti format for evaluation and test submission. Args: net_outputs (list[np.ndarray]): Li
mmdet3d/datasets/kitti_dataset.py:475
↓ 3 callersFunctionbbox3d2roi
Convert a list of bounding boxes to roi format. Args: bbox_list (list[torch.Tensor]): A list of bounding boxes corresponding
mmdet3d/core/bbox/transforms.py:26
↓ 3 callersFunctionbbox_overlaps_nearest_3d
Calculate nearest 3D IoU. Note: This function first finds the nearest 2D boxes in bird eye view (BEV), and then calculates the 2D
mmdet3d/core/bbox/iou_calculators/iou3d_calculator.py:94
↓ 3 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
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:229
↓ 3 callersFunctionbuild_neck
Build neck.
mmdetection-2.11.0/mmdet/models/builder.py:42
↓ 3 callersFunctioncarl_loss
Classification-Aware Regression Loss (CARL). Args: cls_score (Tensor): Predicted classification scores. labels (Tensor): Targets
mmdetection-2.11.0/mmdet/models/losses/pisa_loss.py:122
↓ 3 callersFunctioncenter_to_corner_box2d
Convert kitti locations, dimensions and angles to corners. format: center(xy), dims(xy), angles(clockwise when positive) Args: center
mmdet3d/core/bbox/box_np_ops.py:98
↓ 3 callersFunctioncheck_norm_state
Check if norm layer is in correct train state.
mmdetection-2.11.0/tests/test_models/test_backbones/utils.py:25
↓ 3 callersFunctioncircle_nms
Circular NMS. An object is only counted as positive if no other center with a higher confidence exists within a radius r using a bird-eye
mmdet3d/core/post_processing/box3d_nms.py:142
↓ 3 callersFunctioncompleted
Async context manager that waits for work to complete on given CUDA streams.
mmdetection-2.11.0/mmdet/utils/contextmanagers.py:16
↓ 3 callersFunctionconstruct_toy_data
(poly2mask=True)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_translate.py:134
↓ 3 callersFunctionconvert_bn
(blobs, state_dict, caffe_name, torch_name, converted_names)
mmdetection-2.11.0/tools/model_converters/detectron2pytorch.py:10
↓ 3 callersFunctionconvert_conv_fc
(blobs, state_dict, caffe_name, torch_name, converted_names)
mmdetection-2.11.0/tools/model_converters/detectron2pytorch.py:23
↓ 3 callersFunctionconvert_result_list
Convert the torch forward outputs containing tuple or list to a list only containing torch.Tensor. Args: output (list(Tensor) | tuple
mmdetection-2.11.0/tests/test_onnx/utils.py:94
↓ 3 callersFunctioncorners_nd
Generate relative box corners based on length per dim and origin point. Args: dims (np.ndarray, shape=[N, ndim]): Array of length per dim
mmdet3d/core/bbox/box_np_ops.py:48
↓ 3 callersMethodcreate_2D_grid
(self, x_size, y_size)
mmdet3d/models/dense_heads/transfusion_head.py:760
↓ 3 callersFunctioncreate_groundtruth_database
Given the raw data, generate the ground truth database. Args: dataset_class_name (str): Name of the input dataset. data_path (str
tools/data_converter/create_gt_database.py:108
↓ 3 callersMethodcrop
see :func:`BaseInstanceMasks.crop`
mmdetection-2.11.0/mmdet/core/mask/structures.py:663
↓ 3 callersMethodcrop_and_resize
See :func:`BaseInstanceMasks.crop_and_resize`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:328
↓ 3 callersMethodcurrent_lr
Get current learning rates. Returns: list[float] | dict[str, list[float]]: Current learning rates of all param gr
mmcv_custom/base_runner.py:205
↓ 3 callersMethoddense
(self, channels_first=True)
mmdet3d/ops/sst/sst_ops.py:338
↓ 3 callersMethoddepth_dist_loss
(self, predict_depth_dist, gt_depth, loss_method='kld', img=None)
mmdet3d/models/detectors/bevf_faster_rcnn.py:203
↓ 3 callersFunctiondo_eval
(gt_annos, dt_annos, current_classes, min_overlaps, eval_types
mmdet3d/core/evaluation/kitti_utils/eval.py:587
↓ 3 callersFunctionenhance_level_to_value
Map from level to values.
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:18
↓ 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
mmdetection-2.11.0/mmdet/core/evaluation/recall.py:64
↓ 3 callersMethodextract_feat
Directly extract features from the backbone+neck.
mmdetection-2.11.0/mmdet/models/detectors/single_stage.py:52
↓ 3 callersMethodextract_feats
Extract point and image features of multiple samples.
mmdet3d/models/detectors/mvx_two_stage.py:462
↓ 3 callersFunctionflat2window_v2
(feat, inds_dict)
mmdet3d/ops/sst/sst_ops.py:140
↓ 3 callersMethodflip
Flip the boxes in BEV along given BEV direction. In LIDAR coordinates, it flips the y (horizontal) or x (vertical) axis. Args:
mmdet3d/core/bbox/structures/lidar_box3d.py:153
↓ 3 callersMethodformat_results
Format the results to json (standard format for COCO evaluation). Args: results (list[dict]): Testing results of the dataset.
mmdet3d/datasets/lyft_dataset.py:307
↓ 3 callersMethodformat_results
Format the results to json (standard format for COCO evaluation). Args: results (list[tuple | numpy.ndarray]): Testing results of
mmdetection-2.11.0/mmdet/datasets/coco.py:337
↓ 3 callersMethodforward
(ctx, input)
mmdet3d/ops/norm.py:12
↓ 3 callersMethodforward_train
Args: img (Tensor): Input images of shape (N, C, H, W). Typically these should be mean centered and std scaled.
mmdetection-2.11.0/mmdet/models/detectors/rpn.py:65
↓ 3 callersMethodgenerate
Generate voxels given points.
mmdet3d/core/voxel/voxel_generator.py:35
↓ 3 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. input_m
mmdet3d/models/dense_heads/anchor3d_head.py:171
↓ 3 callersMethodget_ann_info
Get annotation info according to the given index. Args: index (int): Index of the annotation data to get. Returns:
mmdet3d/datasets/sunrgbd_dataset.py:112
↓ 3 callersMethodget_cat_ids
Get category ids of repeat dataset by index. Args: idx (int): Index of data. Returns: list[int]: All categor
mmdetection-2.11.0/mmdet/datasets/dataset_wrappers.py:153
↓ 3 callersMethodget_cat_ids
Get COCO category ids by index. Args: idx (int): Index of data. Returns: list[int]: All categories in the im
mmdetection-2.11.0/mmdet/datasets/coco.py:85
↓ 3 callersFunctionget_kitti_image_info
KITTI annotation format version 2: { [optional]points: [N, 3+] point cloud [optional, for kitti]image: { image_id
tools/data_converter/kitti_data_utils.py:140
↓ 3 callersFunctionget_results
(filename, dataset='coco', task='bbox', metric=None,
mmdetection-2.11.0/tools/analysis_tools/robustness_eval.py:155
↓ 3 callersMethodget_targets
Generate targets of vote head. Args: points (list[torch.Tensor]): Points of each batch. gt_bboxes_3d (list[:obj:`Base
mmdet3d/models/dense_heads/vote_head.py:353
↓ 3 callersMethodget_targets
Generate targets of proposal module. Args: points (list[torch.Tensor]): Points of each batch. gt_bboxes_3d (list[:obj
mmdet3d/models/roi_heads/bbox_heads/h3d_bbox_head.py:661
↓ 3 callersMethodget_targets
A wrapper for computing ATSS and FCOS targets for points in multiple images. Args: cls_scores (list[Tensor]): Box iou-awa
mmdetection-2.11.0/mmdet/models/dense_heads/vfnet_head.py:622
↓ 3 callersFunctionget_velodyne_path
(idx, prefix, training=True, relative_path=T
tools/data_converter/kitti_data_utils.py:61
↓ 3 callersFunctionget_waymo_image_info
Waymo annotation format version like KITTI: { [optional]points: [N, 3+] point cloud [optional, for kitti]image: {
tools/data_converter/kitti_data_utils.py:264
↓ 3 callersFunctionindoor_eval
Indoor Evaluation. Evaluate the result of the detection. Args: gt_annos (list[dict]): Ground truth annotations. dt_annos (li
mmdet3d/core/evaluation/indoor_eval.py:203
↓ 3 callersFunctioninit_detector
Initialize a detector from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object.
mmdet3d/apis/inference.py:30
↓ 3 callersMethodinit_weights
Initialize model weights.
mmdet3d/models/detectors/transfusion.py:28
↓ 3 callersMethodinit_weights
Initialize the weights in detector. Args: pretrained (str, optional): Path to pre-trained weights. Defaults to No
mmdetection-2.11.0/mmdet/models/detectors/rpn.py:31
↓ 3 callersFunctionisr_p
Importance-based Sample Reweighting (ISR_P), positive part. Args: cls_score (Tensor): Predicted classification scores. bbox_pred
mmdetection-2.11.0/mmdet/models/losses/pisa_loss.py:8
↓ 3 callersFunctionlevel_to_value
Map from level to values based on max_value.
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:13
↓ 3 callersMethodmulticlass_nms_single
Multi-class nms in single batch. Args: obj_scores (torch.Tensor): Objectness score of bounding boxes. sem_scores (tor
mmdet3d/models/dense_heads/vote_head.py:608
↓ 3 callersMethodnonempty
Find boxes that are non-empty. A box is considered empty, if either of its side is no larger than threshold. Args:
mmdet3d/core/bbox/structures/base_box3d.py:230
↓ 3 callersMethodnorm1
nn.Module: normalization layer after the first convolution layer
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:246
↓ 3 callersFunctionnuscenes_data_prep
Prepare data related to nuScenes dataset. Related data consists of '.pkl' files recording basic infos, 2D annotations and groundtruth databas
tools/create_data.py:35
↓ 3 callersFunctionplot_rect3d_on_img
Plot the boundary lines of 3D rectangular on 2D images. Args: img (numpy.array): The numpy array of image. num_rects (int): Numbe
mmdet3d/core/visualizer/image_vis.py:205
↓ 3 callersFunctionpoints_in_boxes_batch
Find points that are in boxes (CUDA) Args: points (torch.Tensor): [B, M, 3], [x, y, z] in LiDAR coordinate boxes (torch.Tensor):
mmdet3d/ops/roiaware_pool3d/points_in_boxes.py:85
↓ 3 callersFunctionpoints_in_boxes_gpu
Find points that are in boxes (CUDA) Args: points (torch.Tensor): [B, M, 3], [x, y, z] in LiDAR coordinate boxes (torch.Tensor):
mmdet3d/ops/roiaware_pool3d/points_in_boxes.py:6
↓ 3 callersMethodprepare_train_img
Get training data and annotations after pipeline. Args: idx (int): Index of data. Returns: dict: Training da
mmdetection-2.11.0/mmdet/datasets/custom.py:199
↓ 3 callersFunctionprint_coco_results
(results)
mmdetection-2.11.0/tools/analysis_tools/robustness_eval.py:8
↓ 3 callersFunctionrandom_negative
Randomly negate value based on random_negative_prob.
mmdetection-2.11.0/mmdet/datasets/pipelines/auto_augment.py:23
↓ 3 callersFunctionretinanet_config
RetinanNet Head Config.
mmdetection-2.11.0/tests/test_onnx/test_head.py:22
↓ 3 callersMethodrun_iter
(self, data_batch, train_mode, **kwargs)
mmcv_custom/runner/epoch_based_runner.py:24
↓ 3 callersMethodsample
Sample positive and negative bboxes. This is a simple implementation of bbox sampling given candidates, assigning results and ground
mmdetection-2.11.0/mmdet/core/bbox/samplers/score_hlr_sampler.py:215
↓ 3 callersMethodsample_single
Sample features from single level image feature map. Args: img_feats (torch.Tensor): Image feature map in shape (
mmdet3d/models/fusion_layers/point_fusion.py:272
↓ 3 callersFunctionsave_checkpoint
Save checkpoint to file. The checkpoint will have 4 fields: ``meta``, ``state_dict`` and ``optimizer``, ``amp``. By default ``meta`` will con
mmcv_custom/runner/checkpoint.py:19
↓ 3 callersFunctionscale_boxes
Expand an array of boxes by a given scale. Args: bboxes (Tensor): Shape (m, 4) scale (float): The scale factor of bboxes Ret
mmdetection-2.11.0/mmdet/core/bbox/assigners/center_region_assigner.py:9
↓ 3 callersFunctionshow_result_pyplot
Visualize the detection results on the image. Args: model (nn.Module): The loaded detector. img (str or np.ndarray): Image filena
mmdetection-2.11.0/mmdet/apis/inference.py:189
↓ 3 callersMethodsimple_test_bboxes
Test only det bboxes without augmentation. Args: x (tuple[Tensor]): Feature maps of all scale level. img_metas (list[
mmdetection-2.11.0/mmdet/models/roi_heads/test_mixins.py:52
↓ 3 callersMethodsimple_test_mask
Simple test for mask head without augmentation.
mmdetection-2.11.0/mmdet/models/roi_heads/test_mixins.py:246
← previousnext →301–400 of 3,657, ranked by callers