MCPcopy Create free account

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

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

↓ 714 callersMethodsize
mmdet3d/ops/spconv/include/tensorview/tensorview.h:373
↓ 514 callersMethodcat
Concatenate a list of Points into a single Points. Args: points_list (list[:obj:`BasePoints`]): List of points. Returns:
mmdet3d/core/points/base_points.py:282
↓ 417 callersMethodview
mmdet3d/ops/spconv/include/tensorview/tensorview.h:896
↓ 237 callersMethodcuda
Since teacher_model is registered as a plain object, it is necessary to put the teacher model to cuda when calling cuda function.
mmdetection-2.11.0/mmdet/models/detectors/kd_one_stage.py:75
↓ 174 callersMethodupdate
(self, window_tensor_dict)
mmdet3d/ops/sst/sst_ops.py:453
↓ 98 callersMethodsqueeze
mmdet3d/ops/spconv/include/tensorview/tensorview.h:382
↓ 84 callersMethodempty
mmdet3d/ops/spconv/include/tensorview/tensorview.h:865
↓ 73 callersMethodclone
Clone the Points. Returns: :obj:`BasePoints`: Box object with the same properties \ as self.
mmdet3d/core/points/base_points.py:320
↓ 71 callersMethoddata
mmdet3d/ops/spconv/include/tensorview/tensorview.h:866
↓ 71 callersMethodndim
mmdet3d/ops/spconv/include/tensorview/tensorview.h:381
↓ 68 callersMethodto
Convert current points to a specific device. Args: device (str | :obj:`torch.device`): The name of the device. Returns:
mmdet3d/core/points/base_points.py:304
↓ 63 callersMethoddim
mmdet3d/ops/spconv/include/tensorview/tensorview.h:869
↓ 63 callersFunctionmulti_apply
Apply function to a list of arguments. Note: This function applies the ``func`` to multiple inputs and map the multiple outputs o
mmdetection-2.11.0/mmdet/core/utils/misc.py:10
↓ 56 callersFunctionbuild_loss
Build loss.
mmdetection-2.11.0/mmdet/models/builder.py:62
↓ 55 callersMethodto
Change the device of the data inplace. Example: >>> self = SamplingResult.random() >>> print(f'self = {self.to(None)}
mmdetection-2.11.0/mmdet/core/bbox/samplers/sampling_result.py:56
↓ 51 callersMethoddevice
str: The device of the points are on.
mmdet3d/core/points/base_points.py:334
↓ 48 callersFunctionbbox2roi
Convert a list of bboxes to roi format. Args: bbox_list (list[Tensor]): a list of bboxes corresponding to a batch of images.
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:58
↓ 48 callersMethodexpand
See :func:`BaseInstanceMasks.expand`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:360
↓ 47 callersFunctionimages_to_levels
Convert targets by image to targets by feature level. [target_img0, target_img1] -> [target_level0, target_level1, ...]
mmdetection-2.11.0/mmdet/core/anchor/utils.py:4
↓ 44 callersMethodto_ndarray
See :func:`BaseInstanceMasks.to_ndarray`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:494
↓ 42 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
mmdetection-2.11.0/mmdet/core/bbox/assigners/atss_assigner.py:33
↓ 42 callersMethoddecode
Decode the predicted bboxes according to prediction and base boxes.
mmdetection-2.11.0/mmdet/core/bbox/coder/base_bbox_coder.py:15
↓ 41 callersMethodcat
Concatenate a list of Boxes into a single Boxes. Args: boxes_list (list[:obj:`BaseInstances3DBoxes`]): List of boxes. Re
mmdet3d/core/bbox/structures/base_box3d.py:289
↓ 40 callersMethodforward
(self, *args, **kwargs)
mmdetection-2.11.0/tests/test_onnx/utils.py:26
↓ 39 callersFunctionbuild_loss
Build loss function.
mmdet3d/models/builder.py:33
↓ 33 callersMethodconvert
Convert action.
tools/data_converter/waymo_converter.py:91
↓ 33 callersMethodpush_back
mmdet3d/ops/spconv/include/tensorview/tensorview.h:170
↓ 33 callersFunctionunmap
Unmap a subset of item (data) back to the original set of items (of size count)
mmdetection-2.11.0/mmdet/core/utils/misc.py:32
↓ 32 callersMethodloss
Compute losses of the head. Args: cls_scores (list[Tensor]): Cls and quality scores for each scale level has shap
mmdetection-2.11.0/mmdet/models/dense_heads/ld_head.py:185
↓ 31 callersFunctiondigit_version
(version_str)
mmdetection-2.11.0/mmdet/__init__.py:6
↓ 30 callersMethodinfo
dict: a dictionary of info about the object
mmdetection-2.11.0/mmdet/core/bbox/assigners/assign_result.py:65
↓ 28 callersMethodcall_hook
Call all hooks. Args: fn_name (str): The function name in each hook to be called, such as "before_train_epoch".
mmcv_custom/base_runner.py:299
↓ 27 callersMethodregister_hook
Register a hook into the hook list. The hook will be inserted into a priority queue, with the specified priority (See :class:`Priorit
mmcv_custom/base_runner.py:255
↓ 26 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/base_sampler.py:34
↓ 26 callersMethodtrain
Convert the model into training mode will keeping the normalization layer freezed.
mmdetection-2.11.0/mmdet/models/backbones/hrnet.py:529
↓ 25 callersFunctiondummy_raw_bitmap_masks
Args: size (tuple): expected shape of dummy masks, (H, W) or (N, H, W) Return: ndarray: dummy mask
mmdetection-2.11.0/tests/test_utils/test_masks.py:8
↓ 23 callersFunctionbuild_head
Build head.
mmdet3d/models/builder.py:28
↓ 23 callersMethoddecode
Decode predicted parts to bbox3d. Args: bbox_out (dict): Predictions from model, should contain keys below. - ce
mmdet3d/core/bbox/coders/anchor_free_bbox_coder.py:53
↓ 22 callersFunctionbuild_assigner
Builder of box assigner.
mmdetection-2.11.0/mmdet/core/bbox/builder.py:8
↓ 22 callersFunctionbuild_detector
Build detector.
mmdetection-2.11.0/mmdet/models/builder.py:67
↓ 22 callersFunctiondummy_raw_polygon_masks
Args: size (tuple): expected shape of dummy masks, (N, H, W) Return: list[list[ndarray]]: dummy mask
mmdetection-2.11.0/tests/test_utils/test_masks.py:19
↓ 22 callersMethodinit_weights
Initialize the weights of FPN module.
mmdetection-2.11.0/mmdet/models/necks/fpn.py:163
↓ 21 callersFunctionbbox_overlaps
Calculate the ious between each bbox of bboxes1 and bboxes2. Args: bboxes1(ndarray): shape (n, 4) bboxes2(ndarray): shape (k, 4)
mmdetection-2.11.0/mmdet/core/evaluation/bbox_overlaps.py:4
↓ 21 callersFunctionbuild_sampler
Builder of box sampler.
mmdetection-2.11.0/mmdet/core/bbox/builder.py:13
↓ 21 callersFunctionload_checkpoint
Load checkpoint from a file or URI. Args: model (Module): Module to load checkpoint. filename (str): Accept local filepath, URL, `
mmcv_custom/checkpoint.py:282
↓ 21 callersMethodrotate
Rotate points with the given rotation matrix or angle. Args: rotation (float, np.ndarray, torch.Tensor): Rotation matrix
mmdet3d/core/points/base_points.py:77
↓ 20 callersFunctionbuild_head
Build head.
mmdetection-2.11.0/mmdet/models/builder.py:57
↓ 19 callersMethodconvert_point
Convert points from `src` mode to `dst` mode. Args: point (tuple | list | np.dnarray | torch.Tensor | BasePoints)
mmdet3d/core/bbox/structures/coord_3d_mode.py:181
↓ 19 callersMethodget_bboxes
Generate bboxes from vote head predictions. Args: points (torch.Tensor): Input points. bbox_preds (dict): Predictions
mmdet3d/models/dense_heads/vote_head.py:566
↓ 19 callersFunctionmulticlass_nms
NMS for multi-class bboxes. Args: multi_bboxes (Tensor): shape (n, #class*4) or (n, 4) multi_scores (Tensor): shape (n, #class),
mmdetection-2.11.0/mmdet/core/post_processing/bbox_nms.py:7
↓ 19 callersMethodrandom
Generate random bitmap masks for demo / testing purposes. Example: >>> from mmdet.core.mask.structures import BitmapMasks
mmdetection-2.11.0/mmdet/core/mask/structures.py:503
↓ 18 callersFunctionbbox2result
Convert detection results to a list of numpy arrays. Args: bboxes (torch.Tensor | np.ndarray): shape (n, 5) labels (torch.Tensor
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:99
↓ 18 callersFunctiondistance2bbox
Decode distance prediction to bounding box. Args: points (Tensor): Shape (B, N, 2) or (N, 2). distance (Tensor): Distance from th
mmdetection-2.11.0/mmdet/core/bbox/transforms.py:119
↓ 18 callersMethodgrid_anchors
Generate grid anchors in multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
mmdetection-2.11.0/mmdet/core/anchor/anchor_generator.py:207
↓ 18 callersMethodloss
Compute loss. Args: bbox_preds (dict): Predictions from forward of vote head. points (list[torch.Tensor]): Input poin
mmdet3d/models/dense_heads/vote_head.py:225
↓ 18 callersMethodpad
(self, img)
mmdet3d/datasets/pipelines/loading.py:446
↓ 18 callersMethodrun
mPtr[((i1 * mShape[1] + i2) * mShape[2] + i3) * mShape[3] + i4];
mmdet3d/ops/spconv/include/tensorview/tensorview.h:481
↓ 17 callersFunctionbuild
Build a module. Args: cfg (dict, list[dict]): The config of modules, is is either a dict or a list of configs. regist
mmdetection-2.11.0/mmdet/models/builder.py:15
↓ 17 callersFunctionbuild_anchor_generator
(cfg, default_args=None)
mmdetection-2.11.0/mmdet/core/anchor/builder.py:6
↓ 17 callersFunctionbuild_bbox_coder
Builder of box coder.
mmdetection-2.11.0/mmdet/core/bbox/builder.py:18
↓ 17 callersMethodflip
Flip the points in BEV along given BEV direction.
mmdet3d/core/points/base_points.py:118
↓ 17 callersMethodflip
See :func:`BaseInstanceMasks.flip`.
mmdetection-2.11.0/mmdet/core/mask/structures.py:285
↓ 17 callersMethodloss
Loss function of DIIHead, get loss of all images. Args: cls_score (Tensor): Classification prediction results of
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/dii_head.py:191
↓ 17 callersFunctionmake_sparse_convmodule
Make sparse convolution module. Args: in_channels (int): the number of input channels out_channels (int): the number of out chann
mmdet3d/ops/sparse_block.py:123
↓ 17 callersMethodto
Convert current boxes to a specific device. Args: device (str | :obj:`torch.device`): The name of the device. Returns:
mmdet3d/core/bbox/structures/base_box3d.py:311
↓ 17 callersMethodtranslate
Translate points with the given translation vector. Args: trans_vector (np.ndarray, torch.Tensor): Translation ve
mmdet3d/core/points/base_points.py:122
↓ 16 callersFunctionbuild_dataset
(cfg, default_args=None)
mmdetection-2.11.0/mmdet/datasets/builder.py:53
↓ 16 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
mmdetection-2.11.0/mmdet/utils/logger.py:6
↓ 15 callersMethod_parse_losses
Parse the raw outputs (losses) of the network. Args: losses (dict): Raw output of the network, which usually contain
mmdetection-2.11.0/mmdet/models/detectors/base.py:185
↓ 15 callersFunctionbuild_detector
Build detector.
mmdet3d/models/builder.py:38
↓ 15 callersMethodclone
Clone the Boxes. Returns: :obj:`BaseInstance3DBoxes`: Box object with the same properties \ as self.
mmdet3d/core/bbox/structures/base_box3d.py:327
↓ 15 callersMethodforward_plugin
(self, x, plugin_names)
mmdetection-2.11.0/mmdet/models/backbones/resnet.py:239
↓ 15 callersMethodshape
torch.Shape: Shape of points.
mmdet3d/core/points/base_points.py:68
↓ 15 callersMethodshuffle
(self)
mmdet3d/ops/sst/sst_ops.py:354
↓ 14 callersMethod__init__
(self, levels, channels, num_classes=1000, block=BasicBlock, residual_root=False, linear_root
mmdet3d/models/backbones/DLA.py:228
↓ 14 callersFunction_demo_mm_inputs
Create a superset of inputs needed to run test or train batches. Args: input_shape (tuple): input batch dimensions n
mmdetection-2.11.0/tests/test_models/test_forward.py:326
↓ 14 callersFunctionaccuracy
Calculate accuracy according to the prediction and target. Args: pred (torch.Tensor): The model prediction, shape (N, num_class)
mmdetection-2.11.0/mmdet/models/losses/accuracy.py:6
↓ 14 callersMethodconvert_to
Convert self to ``dst`` mode. Args: dst (:obj:`CoordMode`): The target Box mode. rt_mat (np.ndarray | torch.Tensor):
mmdet3d/core/points/base_points.py:182
↓ 14 callersMethodextract_feat
Extract features. Args: img (torch.Tensor): Image tensor with shape (n, c, h ,w). Returns: list[torch.Tensor
mmdetection-2.11.0/mmdet/models/detectors/rpn.py:44
↓ 14 callersMethodget_anchors
Get anchors according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. img_met
mmdetection-2.11.0/mmdet/models/dense_heads/anchor_head.py:145
↓ 14 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
mmdetection-2.11.0/mmdet/models/dense_heads/paa_head.py:401
↓ 14 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
mmdetection-2.11.0/mmdet/models/roi_heads/bbox_heads/dii_head.py:348
↓ 14 callersFunctionto_tensor
Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.Tensor`, :class:`S
mmdetection-2.11.0/mmdet/datasets/pipelines/formating.py:11
↓ 13 callersMethodassign
(self, bboxes, gt_bboxes, gt_bboxes_ignore=None, gt_labels=None, query_labels=None)
mmdet3d/core/bbox/assigners/hungarian_assigner.py:58
↓ 13 callersMethodbackward
(ctx, a=None)
mmdet3d/ops/knn/knn.py:65
↓ 13 callersMethodencode
Encode deltas between bboxes and ground truth boxes.
mmdetection-2.11.0/mmdet/core/bbox/coder/base_bbox_coder.py:11
↓ 13 callersMethodforward
forward. Args: k (int): number of nearest neighbors. xyz (Tensor): (B, N, 3) if transposed == False, else (B, 3, N).
mmdet3d/ops/knn/knn.py:14
↓ 13 callersMethodget_reuse
(self, key, do_shift, name, allow_missing=True)
mmdet3d/ops/sst/sst_ops.py:317
↓ 13 callersMethodnew_box
Create a new box object with data. The new box and its tensor has the similar properties \ as self and self.tensor, respectively.
mmdet3d/core/bbox/structures/base_box3d.py:440
↓ 13 callersFunctionreduce_mean
Obtain the mean of tensor on different GPUs.
mmdetection-2.11.0/mmdet/core/utils/dist_utils.py:63
↓ 13 callersMethodscale
Scale the points with horizontal and vertical scaling factors. Args: scale_factors (float): Scale factors to scale the points.
mmdet3d/core/points/base_points.py:199
↓ 12 callersFunction_extend_matrix
(mat)
tools/data_converter/kitti_data_utils.py:135
↓ 12 callersFunction_print
(result, ap=1, iouThr=None, areaRng='all', maxDets=100)
mmdetection-2.11.0/tools/analysis_tools/robustness_eval.py:10
↓ 12 callersMethodconvert
Convert boxes from `src` mode to `dst` mode. Args: box (tuple | list | np.dnarray | torch.Tensor | BaseInstance3D
mmdet3d/core/bbox/structures/box_3d_mode.py:63
↓ 12 callersMethodget_bboxes
(self, det_bboxes, grid_pred, img_metas)
mmdetection-2.11.0/mmdet/models/roi_heads/mask_heads/grid_head.py:294
↓ 12 callersMethodget_seg_masks
Get segmentation masks from mask_pred and bboxes. Args: mask_pred (Tensor or ndarray): shape (n, #class, h, w). F
mmdetection-2.11.0/mmdet/models/roi_heads/mask_heads/fcn_mask_head.py:169
↓ 12 callersFunctionis_block
Check if is ResNet building block.
mmdetection-2.11.0/tests/test_models/test_backbones/utils.py:10
↓ 12 callersFunctionort_validate
Validate the output of the onnxruntime backend is the same as the output generated by torch. Args: model (nn.Module): the model to be
mmdetection-2.11.0/tests/test_onnx/utils.py:30
↓ 12 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
mmdetection-2.11.0/mmdet/core/bbox/samplers/random_sampler.py:31
↓ 12 callersMethodreset_parameters
(self)
mmdet3d/ops/spconv/conv.py:106
next →1–100 of 3,657, ranked by callers