MCPcopy Create free account

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

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

↓ 11 callersMethodadd
(self, module, name=None)
mmdet3d/ops/spconv/modules.py:118
↓ 11 callersFunctionapply_3d_transformation
Apply transformation to input point cloud. Args: pcd (torch.Tensor): The point cloud to be transformed. coords_type (str): 'DEPTH
mmdet3d/models/fusion_layers/coord_transform.py:7
↓ 11 callersFunctionbbox_mapping
Map bboxes from the original image scale to testing scale.
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:34
↓ 11 callersFunctionbuild_dataset
(cfg, default_args=None)
mmdet3d/datasets/builder.py:16
↓ 11 callersMethodevaluate
(self, results, logger=None)
mmdetection-2.11.0/tests/test_runtime/test_eval_hook.py:37
↓ 11 callersMethodget_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmdetection-2.11.0/mmdet/models/dense_heads/atss_head.py:317
↓ 11 callersMethodset_reuse
(self, key, do_shift, name, value, allow_override=False)
mmdet3d/ops/sst/sst_ops.py:330
↓ 10 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
mmdet3d/ops/spconv/conv.py:380
↓ 10 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-2.11.0/tests/test_models/test_forward.py:34
↓ 10 callersMethod_make_layers
Initialize conv sequential for CornerHead.
mmdetection-2.11.0/mmdet/models/dense_heads/corner_head.py:144
↓ 10 callersMethod_mask_forward
Mask head forward function used in both training and testing.
mmdetection-2.11.0/mmdet/models/roi_heads/scnet_roi_head.py:143
↓ 10 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-2.11.0/mmdet/core/bbox/assigners/max_iou_assigner.py:60
↓ 10 callersFunctionbbox3d2result
Convert detection results to a list of numpy arrays. Args: bboxes (torch.Tensor): Bounding boxes with shape of (n, 5). labels (to
mmdet3d/core/bbox/transforms.py:49
↓ 10 callersFunctionbuild_backbone
Build backbone.
mmdet3d/models/builder.py:8
↓ 10 callersFunctionload
(module, prefix='')
mmcv_custom/checkpoint.py:65
↓ 10 callersMethodload_pretrained_model
(self, data='imagenet', name='dla34', hash='ba72cf86')
mmdet3d/models/backbones/DLA.py:314
↓ 10 callersFunctionmake_cuda_ext
(name, module, sources, sources_cuda=[],
setup.py:30
↓ 10 callersMethodnorm1
nn.Module: the normalization layer named "norm1"
mmdetection-2.11.0/mmdet/models/backbones/hrnet.py:348
↓ 10 callersMethodpoints_in_boxes
Find the box which the points are in. Args: points (torch.Tensor): Points in shape (N, 3). Returns: torch.Te
mmdet3d/core/bbox/structures/lidar_box3d.py:242
↓ 10 callersMethodshow
Results visualization. Args: results (list[dict]): List of bounding boxes results. out_dir (str): Output directory of
mmdet3d/datasets/lyft_dataset.py:401
↓ 10 callersMethodto_ndarray
Convert masks to the format of ndarray.
mmdetection-2.11.0/mmdet/core/mask/structures.py:871
↓ 10 callersFunctionxywhr2xyxyr
Convert a rotated boxes in XYWHR format to XYXYR format. Args: boxes_xywhr (torch.Tensor): Rotated boxes in XYWHR format. Returns:
mmdet3d/core/bbox/structures/utils.py:64
↓ 9 callersMethod_bbox_forward
Box forward function used in both training and testing.
mmdetection-2.11.0/mmdet/models/roi_heads/pisa_roi_head.py:86
↓ 9 callersFunctionreplace_ImageToTensor
Replace the ImageToTensor transform in a data pipeline to DefaultFormatBundle, which is normally useful in batch inference. Args: pip
mmdetection-2.11.0/mmdet/datasets/utils.py:13
↓ 9 callersFunctionrotation_3d_in_axis
Rotate points by angles according to axis. Args: points (torch.Tensor): Points of shape (N, M, 3). angles (torch.Tensor): Vector
mmdet3d/core/bbox/structures/utils.py:21
↓ 9 callersFunctionshow_result
Convert results into format that is directly readable for meshlab. Args: points (np.ndarray): Points. gt_bboxes (np.ndarray): Grou
mmdet3d/core/visualizer/show_result.py:96
↓ 8 callersFunction_build_demo_runner
()
mmdetection-2.11.0/tests/test_data/test_datasets/test_common.py:306
↓ 8 callersFunctionbuild_dataloader
Build PyTorch DataLoader. In distributed training, each GPU/process has a dataloader. In non-distributed training, there is only one dataload
mmdetection-2.11.0/mmdet/datasets/builder.py:76
↓ 8 callersFunctionbuild_roi_extractor
Build roi extractor.
mmdetection-2.11.0/mmdet/models/builder.py:47
↓ 8 callersFunctioncheck_shear
(results, results_sheared)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_shear.py:51
↓ 8 callersMethodclip_grads
(self, params)
mmcv_custom/runner/optimizer.py:27
↓ 8 callersFunctiondigit_version
(version_str)
mmdet3d/__init__.py:7
↓ 8 callersMethodencode
Encode ground truth to prediction targets. Args: gt_bboxes_3d (BaseInstance3DBoxes): Ground truth bboxes \ with s
mmdet3d/core/bbox/coders/anchor_free_bbox_coder.py:23
↓ 8 callersMethodextract_feat
Extract features from images and points.
mmdet3d/models/detectors/bevf_faster_rcnn.py:100
↓ 8 callersFunctionfpn_config
Return the class containing the corresponding attributes according to the test_step_names.
mmdetection-2.11.0/tests/test_onnx/test_neck.py:31
↓ 8 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_meta
mmdetection-2.11.0/mmdet/models/dense_heads/reppoints_head.py:295
↓ 8 callersMethodnew_point
Create a new point object with data. The new point and its tensor has the similar properties \ as self and self.tensor, respectiv
mmdet3d/core/points/base_points.py:346
↓ 8 callersMethodoverlaps
Calculate 3D overlaps of two boxes. Note: This function calculates the overlaps between ``boxes1`` and ``boxes2``, ``
mmdet3d/core/bbox/structures/base_box3d.py:384
↓ 8 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights.
mmdetection-2.11.0/mmdet/models/losses/utils.py:28
↓ 7 callersMethod__init__
(self, embed_dims, feedforward_channels, num_fcs=2,
mmdetection-2.11.0/mmdet/models/utils/transformer.py:120
↓ 7 callersFunctionbuild_iou_calculator
Builder of IoU calculator.
mmdetection-2.11.0/mmdet/core/bbox/iou_calculators/builder.py:6
↓ 7 callersFunctionbuild_sa_module
Build PointNet2 set abstraction (SA) module. Args: cfg (None or dict): The SA module config, which should contain: - type (st
mmdet3d/ops/pointnet_modules/builder.py:4
↓ 7 callersMethodbuild_trans
(self, cfg, in_channels, out_channels, **extra_args)
mmdetection-2.11.0/mmdet/models/necks/fpg.py:302
↓ 7 callersFunctioncheck_rotate
(results, results_rotated)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_rotate.py:50
↓ 7 callersMethodforward_train
Training forward function of PartAggregationROIHead. Args: feats_dict (dict): Contains features from the first stage.
mmdet3d/models/roi_heads/h3d_roi_head.py:51
↓ 7 callersFunctionget_box_type
Get the type and mode of box structure. Args: box_type (str): The type of box structure. The valid value are "LiDAR", "Camera
mmdet3d/core/bbox/structures/utils.py:85
↓ 7 callersMethodin_range_3d
Check whether the points are in the given range. Args: point_range (list | torch.Tensor): The range of point (x_m
mmdet3d/core/points/base_points.py:143
↓ 7 callersFunctioninference_detector
Inference image(s) with the detector. Args: model (nn.Module): The loaded detector. imgs (str/ndarray or list[str/ndarray] or tup
mmdetection-2.11.0/mmdet/apis/inference.py:89
↓ 7 callersFunctionkitti_eval
KITTI evaluation. Args: gt_annos (list[dict]): Contain gt information of each sample. dt_annos (list[dict]): Contain detected inf
mmdet3d/core/evaluation/kitti_utils/eval.py:643
↓ 7 callersMethodlimit_yaw
Limit the yaw to a given period and offset. Args: offset (float): The offset of the yaw. period (float): The expected
mmdet3d/core/bbox/structures/base_box3d.py:221
↓ 7 callersMethodload_checkpoint
(self, filename, map_location='cpu', s
mmcv_custom/base_runner.py:332
↓ 7 callersFunctionmask2ndarray
Convert Mask to ndarray.. Args: mask (:obj:`BitmapMasks` or :obj:`PolygonMasks` or torch.Tensor or np.ndarray): The mask to be co
mmdetection-2.11.0/mmdet/core/utils/misc.py:45
↓ 7 callersFunctionmerge_aug_masks
Merge augmented mask prediction. Args: aug_masks (list[ndarray]): shape (n, #class, h, w) img_shapes (list[ndarray]): shape (3, )
mmdetection-2.11.0/mmdet/core/post_processing/merge_augs.py:120
↓ 7 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
setup.py:62
↓ 7 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path to r
mmdetection-2.11.0/setup.py:50
↓ 7 callersMethodregister_checkpoint_hook
(self, checkpoint_config)
mmcv_custom/base_runner.py:451
↓ 7 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-2.11.0/mmdet/models/roi_heads/bbox_heads/bbox_head.py:455
↓ 7 callersFunctionrowArrayIdx
mmdet3d/ops/spconv/include/tensorview/tensorview.h:401
↓ 7 callersMethodrun
Start running. Args: data_loaders (list[:obj:`DataLoader`]): Dataloaders for training and validation.
mmcv_custom/epoch_based_runner.py:72
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
mmdet3d/models/backbones/swin_transformer.py:24
↓ 6 callersMethod_assign_primitive_surface_targets
Generate targets for primitive z and primitive xy. Args: point_mask (torch.Tensor): Tensor to store the ground tr
mmdet3d/models/roi_heads/mask_heads/primitive_head.py:868
↓ 6 callersFunction_construct_bbox
(num_bbox=None)
mmdetection-2.11.0/tests/test_metrics/test_box_overlap.py:10
↓ 6 callersFunction_create_dummy_results
()
mmdetection-2.11.0/tests/test_data/test_datasets/test_common.py:96
↓ 6 callersFunction_create_reduced_point_cloud
Create reduced point clouds for given info. Args: data_path (str): Path of original data. info_path (str): Path of data info.
tools/data_converter/kitti_converter.py:224
↓ 6 callersFunction_generate_kitti_dataset_config
()
tests/test_data/test_datasets/test_kitti_dataset.py:11
↓ 6 callersFunction_get_config_module
Load a configuration as a python module.
tests/test_models/test_heads/test_heads.py:37
↓ 6 callersFunction_read_imageset_file
(path)
tools/data_converter/kitti_converter.py:34
↓ 6 callersMethod_transpose_and_gather_feat
Given feats and indexes, returns the transposed and gathered feats. Args: feat (torch.Tensor): Features to be transposed and gath
mmdet3d/core/bbox/coders/centerpoint_bbox_coders.py:96
↓ 6 callersMethod_transpose_and_gather_feat
Transpose and gather feature according to index. Args: feat (Tensor): Target feature map. ind (Tensor): Target coord
mmdetection-2.11.0/mmdet/models/dense_heads/corner_head.py:823
↓ 6 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-2.11.0/mmdet/core/anchor/utils.py:20
↓ 6 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
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:215
↓ 6 callersFunctionbuild_match_cost
Builder of IoU calculator.
mmdetection-2.11.0/mmdet/core/bbox/match_costs/builder.py:6
↓ 6 callersFunctionchamfer_distance
Calculate Chamfer Distance of two sets. Args: src (torch.Tensor): Source set with shape [B, N, C] to calculate Chamfer Distan
mmdet3d/models/losses/chamfer_distance.py:8
↓ 6 callersFunctioncreate_random_bboxes
(num_bboxes, img_w, img_h)
mmdetection-2.11.0/tests/test_data/test_pipelines/test_transform/test_transform.py:202
↓ 6 callersMethoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: bboxes (torch.Tensor): Basic boxes. Shape (B, N, 4) or (N, 4) pr
mmdetection-2.11.0/mmdet/core/bbox/coder/delta_xywh_bbox_coder.py:53
↓ 6 callersMethoddecode
Apply transformation `pred_bboxes` to `boxes`. Args: bboxes (torch.Tensor): Basic boxes.Shape (B, N, 4) or (N, 4) pre
mmdetection-2.11.0/mmdet/core/bbox/coder/tblr_bbox_coder.py:49
↓ 6 callersMethodforward_img_train
Forward function for image branch. This function works similar to the forward function of Faster R-CNN. Args: x (list[to
mmdet3d/models/detectors/mvx_two_stage.py:346
↓ 6 callersFunctionimshow_det_bboxes
Draw bboxes and class labels (with scores) on an image. Args: img (str or ndarray): The image to be displayed. bboxes (ndarray):
mmdetection-2.11.0/mmdet/core/visualization/image.py:28
↓ 6 callersFunctioninit_detector
Initialize a detector from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object.
mmdetection-2.11.0/mmdet/apis/inference.py:16
↓ 6 callersMethodloss
Compute loss. Args: bbox_preds (dict): Predictions from forward of h3d bbox head. points (list[torch.Tensor]): Input
mmdet3d/models/roi_heads/bbox_heads/h3d_bbox_head.py:318
↓ 6 callersMethodmake_block_plugins
make plugins for block. Args: in_channels (int): Input channels of plugin. plugins (list[dict]): List of plugins cfg
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:216
↓ 6 callersMethodmatch_point2plane
Match points to plane. Args: plane (torch.Tensor): Equation of the plane. points (torch.Tensor): Points of input.
mmdet3d/models/roi_heads/mask_heads/primitive_head.py:717
↓ 6 callersMethodnorm3
nn.Module: normalization layer after the third convolution layer
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:256
↓ 6 callersFunctionpoint_sample
Obtain image features using points. Args: img_meta (dict): Meta info. img_features (torch.Tensor): 1 x C x H x W image features.
mmdet3d/models/fusion_layers/point_fusion.py:10
↓ 6 callersFunctionpoints_cam2img
Project points in camera coordinates to image coordinates. Args: points_3d (np.ndarray): Points in shape (N, 3) proj_mat (np.ndar
mmdet3d/core/bbox/box_np_ops.py:338
↓ 6 callersMethodrefine_bboxes
Refine bboxes during training. Args: rois (Tensor): Shape (n*bs, 5), where n is image number per GPU, and bs is t
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/bbox_head.py:376
↓ 6 callersMethodresize
See :func:`BaseInstanceMasks.resize`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:273
↓ 6 callersMethodresize
see :func:`BaseInstanceMasks.resize`
mmdetection-2.11.0/mmdet/core/mask/structures.py:620
↓ 6 callersMethodshow_result
Show RPN proposals on the image. Args: data (str or np.ndarray): Image filename or loaded image. result (Tensor or tu
mmdetection-2.11.0/mmdet/models/detectors/rpn.py:141
↓ 6 callersMethodsimple_test
Simple testing forward function of PartAggregationROIHead. Note: This function assumes that the batch size is 1 Args:
mmdet3d/models/roi_heads/h3d_roi_head.py:119
↓ 6 callersMethodsimple_test_img
Test without augmentation.
mmdet3d/models/detectors/mvx_two_stage.py:400
↓ 6 callersMethodsimple_test_rpn
Test without augmentation. Args: x (tuple[Tensor]): Features from the upstream network, each is a 4D-tensor.
mmdetection-2.11.0/mmdet/models/dense_heads/rpn_test_mixin.py:24
↓ 6 callersMethodvalid_flags
(self, featmap_size, valid_size, device='cuda')
mmdetection-2.11.0/mmdet/core/anchor/point_generator.py:27
↓ 5 callersMethod_bbox_forward
Box head forward function used in both training and testing.
mmdetection-2.11.0/mmdet/models/roi_heads/scnet_roi_head.py:114
↓ 5 callersFunction_dummy_bbox_sampling
Create sample results that can be passed to BBoxHead.get_targets.
mmdetection-2.11.0/tests/test_models/test_roi_heads/utils.py:6
↓ 5 callersMethod_freeze_stages
(self)
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:572
↓ 5 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
tests/test_models/test_detectors.py:56
↓ 5 callersFunction_setup_seed
(seed)
tests/test_models/test_heads/test_heads.py:14
↓ 5 callersMethodanchor_target_single_assigner
Assign anchors and encode positive anchors. Args: bbox_assigner (BaseAssigner): assign positive and negative boxes. a
mmdet3d/models/dense_heads/train_mixins.py:237
↓ 5 callersFunctionbbox_overlaps
Calculate overlap between two set of bboxes. If ``is_aligned `` is ``False``, then calculate the overlaps between each bbox of bboxes1 and bb
mmdetection-2.11.0/mmdet/core/bbox/iou_calculators/iou2d_calculator.py:43
← previousnext →101–200 of 3,657, ranked by callers