MCPcopy Create free account

hub / github.com/Tsinghua-MARS-Lab/GeoMAE / functions

Functions2,489 in github.com/Tsinghua-MARS-Lab/GeoMAE

↓ 358 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:346
↓ 348 callersMethodview
mmdet3d/ops/spconv/include/tensorview/tensorview.h:896
↓ 339 callersMethodsize
mmdet3d/ops/spconv/include/tensorview/tensorview.h:373
↓ 215 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:368
↓ 122 callersMethodupdate
(self, window_tensor_dict)
mmdet3d/ops/sst/sst_ops.py:575
↓ 93 callersMethodsqueeze
mmdet3d/ops/spconv/include/tensorview/tensorview.h:382
↓ 85 callersMethoddim
mmdet3d/ops/spconv/include/tensorview/tensorview.h:869
↓ 82 callersMethodclone
Clone the Points. Returns: :obj:`BasePoints`: Box object with the same properties \ as self.
mmdet3d/core/points/base_points.py:384
↓ 79 callersMethoddata
mmdet3d/ops/spconv/include/tensorview/tensorview.h:866
↓ 71 callersMethodndim
mmdet3d/ops/spconv/include/tensorview/tensorview.h:381
↓ 69 callersFunctionbuild_loss
Build loss function.
mmdet3d/models/builder.py:42
↓ 66 callersMethodpush_back
mmdet3d/ops/spconv/include/tensorview/tensorview.h:170
↓ 57 callersMethoddevice
str: The device of the points are on.
mmdet3d/core/points/base_points.py:398
↓ 56 callersFunctionflat2window
Args: feat: shape=[N, C], N is the voxel num in the batch. voxel_drop_lvl: shape=[N, ]. Indicates drop_level of the window the vo
mmdet3d/ops/sst/sst_ops.py:98
↓ 42 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:292
↓ 41 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:562
↓ 41 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:221
↓ 36 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:139
↓ 33 callersMethodconvert
Convert action.
tools/data_converter/waymo_converter.py:91
↓ 32 callersFunctionbuild_head
Build head.
mmdet3d/models/builder.py:37
↓ 30 callersMethodtranslate
Translate points with the given translation vector. Args: trans_vector (np.ndarray, torch.Tensor): Translation ve
mmdet3d/core/points/base_points.py:186
↓ 26 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
↓ 23 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:122
↓ 20 callersFunctionwindow2flat
(feat_3d_dict, inds_dict)
mmdet3d/ops/sst/sst_ops.py:225
↓ 19 callersMethodconvert_point
Convert points from `src` mode to `dst` mode. Args: point (tuple | list | np.ndarray | torch.Tensor | BasePoints)
mmdet3d/core/bbox/structures/coord_3d_mode.py:181
↓ 19 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:246
↓ 19 callersMethodflip
Flip the points in BEV along given BEV direction.
mmdet3d/core/points/base_points.py:182
↓ 18 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
↓ 18 callersMethodempty
mmdet3d/ops/spconv/include/tensorview/tensorview.h:865
↓ 17 callersMethodclone
Clone the Boxes. Returns: :obj:`BaseInstance3DBoxes`: Box object with the same properties \ as self.
mmdet3d/core/bbox/structures/base_box3d.py:330
↓ 17 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:257
↓ 16 callersMethodconvert
Convert boxes from `src` mode to `dst` mode. Args: box (tuple | list | np.ndarray | torch.Tensor | BaseInstance3D
mmdet3d/core/bbox/structures/box_3d_mode.py:63
↓ 16 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:16
↓ 15 callersFunctionbuild_backbone
Build backbone.
mmdet3d/models/builder.py:17
↓ 15 callersMethodforward_train
Training forward function. Args: points (list[torch.Tensor]): Point cloud of each sample. img_metas (list[dict]): Met
mmdet3d/models/detectors/parta2.py:88
↓ 15 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:443
↓ 15 callersMethodshape
torch.Shape: Shape of points.
mmdet3d/core/points/base_points.py:125
↓ 14 callersFunctionbuild_detector
Build detector.
mmdet3d/models/builder.py:47
↓ 14 callersMethodend
mmdet3d/ops/spconv/include/prettyprint.h:434
↓ 14 callersMethodshow
Results visualization. Args: results (list[dict]): List of bounding boxes results. out_dir (str): Output directory of
mmdet3d/datasets/lyft_dataset.py:434
↓ 14 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:85
↓ 13 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:6
↓ 13 callersMethodextract_feat
Extract features from points.
mmdet3d/models/detectors/parta2.py:42
↓ 13 callersMethodget_reuse
(self, key, do_shift, name, allow_missing=True)
mmdet3d/ops/sst/sst_ops.py:439
↓ 13 callersFunctionmake_cuda_ext
(name, module, sources, sources_cuda=[],
setup.py:30
↓ 13 callersFunctionsparse_index_backward_test
mmdet3d/ops/sparse_index/src/sparse_index.h:55
↓ 12 callersFunction_extend_matrix
(mat)
tools/data_converter/kitti_data_utils.py:137
↓ 12 callersMethodextract_feats
Extract features of multiple samples.
mmdet3d/models/detectors/h3dnet.py:170
↓ 12 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
↓ 12 callersFunctionreplace_feature
(out, new_features)
mmdet3d/ops/sparse_block_new.py:14
↓ 12 callersMethodsimple_test
Test function without augmentaiton.
mmdet3d/models/detectors/parta2.py:137
↓ 11 callersMethodget_ann_info
Get annotation info according to the given index. Args: index (int): Index of the annotation data to get. Returns:
mmdet3d/datasets/lyft_dataset.py:183
↓ 11 callersMethodset_reuse
(self, key, do_shift, name, value, allow_override=False)
mmdet3d/ops/sst/sst_ops.py:452
↓ 11 callersFunctionshow_multi_modality_result
Convert multi-modality detection results into 2D results. Project the predicted 3D bbox to 2D image plane and visualize them. Args:
mmdet3d/core/visualizer/show_result.py:200
↓ 11 callersFunctionshow_result
Convert results into format that is directly readable for meshlab. Args: points (np.ndarray): Points. gt_bboxes (np.ndarray): Gro
mmdet3d/core/visualizer/show_result.py:74
↓ 11 callersMethodshuffle
(self)
mmdet3d/ops/sst/sst_ops.py:476
↓ 10 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
mmdet3d/ops/spconv/conv.py:382
↓ 10 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
↓ 10 callersFunctionbuild_dataset
(cfg, default_args=None)
mmdet3d/datasets/builder.py:18
↓ 10 callersFunctionbuild_neck
Build neck.
mmdet3d/models/builder.py:22
↓ 10 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:106
↓ 10 callersFunctionmerge_aug_bboxes_3d
Merge augmented detection 3D bboxes and scores. Args: aug_results (list[dict]): The dict of detection results. The dict conta
mmdet3d/core/post_processing/merge_augs.py:7
↓ 10 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:345
↓ 10 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:263
↓ 10 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:314
↓ 9 callersMethod_extract_data
Load data using input pipeline and extract data according to key. Args: index (int): Index for accessing the target data.
mmdet3d/datasets/custom_3d.py:298
↓ 9 callersMethod_get_pipeline
Get data loading pipeline in self.show/evaluate function. Args: pipeline (list[dict] | None): Input pipeline. If None is given, \
mmdet3d/datasets/custom_3d.py:281
↓ 9 callersMethodbegin
mmdet3d/ops/spconv/include/prettyprint.h:433
↓ 9 callersFunctiondigit_version
(version_str)
mmdet3d/__init__.py:8
↓ 9 callersFunctionpost_act_block
(in_channels, out_channels, kernel_size, indice_key=None, stride=1, padding=0, conv_type='s
mmdet3d/models/middle_encoders/sst_input_layer_spconv2.py:19
↓ 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 callersFunctionwrite_ply
input: Nx3, write points to filename as PLY format.
mmdet3d/models/utils/pc_util.py:201
↓ 8 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:57
↓ 8 callersMethodbackward
(ctx, a=None)
mmdet3d/ops/knn/knn.py:68
↓ 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 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:224
↓ 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:410
↓ 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:387
↓ 8 callersFunctionsparse_index_test
mmdet3d/ops/sparse_index/src/sparse_index.h:22
↓ 7 callersFunction_setup_seed
(seed)
tests/test_models/test_heads/test_heads.py:14
↓ 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:207
↓ 7 callersFunctionlimit_period
Limit the value into a period for periodic function. Args: val (np.ndarray): The value to be converted. offset (float, optional):
mmdet3d/core/bbox/box_np_ops.py:463
↓ 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 callersFunctionpost_act_block
(in_channels, out_channels, kernel_size, indice_key=None, stride=1, padding=0, conv_type='s
mmdet3d/models/middle_encoders/sst_input_layer_spconv2_only_subm.py:19
↓ 7 callersMethodpre_pipeline
Initialization before data preparation. Args: results (dict): Dict before data preprocessing. - img_fields (list
mmdet3d/datasets/custom_3d.py:116
↓ 7 callersFunctionrowArrayIdx
mmdet3d/ops/spconv/include/tensorview/tensorview.h:401
↓ 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:866
↓ 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:230
↓ 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:39
↓ 6 callersFunction_setup_seed
(seed)
tests/test_models/test_detectors.py:13
↓ 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 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 callersMethodevaluate
Evaluation in Lyft protocol. Args: results (list[dict]): Testing results of the dataset. metric (str | list[str]): Me
mmdet3d/datasets/lyft_dataset.py:360
↓ 6 callersFunctionextract_result_dict
Extract and return the data corresponding to key in result dict. ``results`` is a dict output from `pipeline(input_dict)`, which is the l
mmdet3d/datasets/utils.py:115
↓ 6 callersMethodgrid_anchors
Generate grid anchors in multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes in
mmdet3d/core/anchor/anchor_3d_generator.py:82
↓ 6 callersFunctioninit_model
Initialize a model from config file, which could be a 3D detector or a 3D segmentor. Args: config (str or :obj:`mmcv.Config`): Config
mmdet3d/apis/inference.py:35
↓ 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:311
↓ 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:715
next →1–100 of 2,489, ranked by callers