MCPcopy Create free account

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

Functions1,670 in github.com/Tsinghua-MARS-Lab/futr3d

↓ 367 callersMethodcat
Concatenate a list of Points into a single Points. Args: points_list (list[:obj:`BasePoints`]): List of points. Ret
mmdet3d/core/points/base_points.py:357
↓ 72 callersFunctionbuild_loss
Build loss function.
mmdet3d/models/builder.py:72
↓ 64 callersMethodclone
Clone the Points. Returns: :obj:`BasePoints`: Box object with the same properties as self.
mmdet3d/core/points/base_points.py:395
↓ 61 callersMethodto
Convert current points to a specific device. Args: device (str | :obj:`torch.device`): The name of the device. Retu
mmdet3d/core/points/base_points.py:379
↓ 51 callersMethodload
(self, file_handle)
data/scannet/extract_posed_images.py:25
↓ 47 callersMethodcat
Concatenate a list of Boxes into a single Boxes. Args: boxes_list (list[:obj:`BaseInstance3DBoxes`]): List of boxes.
mmdet3d/core/bbox/structures/base_box3d.py:341
↓ 41 callersMethodgather
(self, image_ids)
tools/data_converter/kitti_data_utils.py:503
↓ 27 callersMethoddecode
Decode regression into locations, dimensions, orientations. Args: reg (Tensor): Batch regression for each predict center2d poi
mmdet3d/core/bbox/coders/smoke_bbox_coder.py:52
↓ 27 callersMethodget_bboxes
Transform network output for a batch into bbox predictions. Args: cls_scores (list[Tensor]): Box scores for each scale level
mmdet3d/models/dense_heads/pgd_head.py:795
↓ 25 callersMethodclone
Clone the Boxes. Returns: :obj:`BaseInstance3DBoxes`: Box object with the same properties as self.
mmdet3d/core/bbox/structures/base_box3d.py:379
↓ 21 callersFunctionrotation_3d_in_axis
Rotate points by angles according to axis. Args: points (np.ndarray | torch.Tensor | list | tuple ): Points of shape (N,
mmdet3d/core/bbox/structures/utils.py:29
↓ 18 callersFunctionbbox3d2result
Convert detection results to a list of numpy arrays. Args: bboxes (torch.Tensor): Bounding boxes with shape (N, 5). labels (t
mmdet3d/core/bbox/transforms.py:50
↓ 17 callersFunctionbuild_head
Build head.
mmdet3d/models/builder.py:64
↓ 16 callersFunctionlimit_period
Limit the value into a period for periodic function. Args: val (torch.Tensor | np.ndarray): The value to be converted. offset
mmdet3d/core/bbox/structures/utils.py:11
↓ 15 callersFunctionreplace_feature
(out, new_features)
mmdet3d/ops/sparse_block.py:14
↓ 15 callersMethodtranslate
Translate points with the given translation vector. Args: trans_vector (np.ndarray, torch.Tensor): Translation
mmdet3d/core/points/base_points.py:182
↓ 14 callersMethodloss
Compute loss of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level, each is a 4D-tens
mmdet3d/models/dense_heads/pgd_head.py:526
↓ 13 callersMethodconvert
Convert input array to target data type. Args: input_array (tuple | list | np.ndarray | torch.Tensor | int |
mmdet3d/core/utils/array_converter.py:253
↓ 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:489
↓ 13 callersFunctionpoints_cam2img
Project points in camera coordinates to image coordinates. Args: points_3d (torch.Tensor | np.ndarray): Points in shape (N, 3)
mmdet3d/core/bbox/structures/utils.py:176
↓ 13 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:145
↓ 13 callersMethodto
Convert current boxes to a specific device. Args: device (str | :obj:`torch.device`): The name of the device. Retur
mmdet3d/core/bbox/structures/base_box3d.py:363
↓ 12 callersFunction_extend_matrix
(mat)
tools/data_converter/kitti_data_utils.py:161
↓ 12 callersMethodconvert_point
Convert points from `src` mode to `dst` mode. Args: point (tuple | list | np.ndarray | torch.Tensor | :obj:`B
mmdet3d/core/bbox/structures/coord_3d_mode.py:136
↓ 12 callersMethodconvert_to
Convert self to ``dst`` mode. Args: dst (:obj:`CoordMode`): The target Box mode. rt_mat (np.ndarray | torch.Tenso
mmdet3d/core/points/base_points.py:250
↓ 12 callersMethodencode
Encode CameraInstance3DBoxes by locations, dimensions, orientations. Args: locations (Tensor): Center location for 3D boxes.
mmdet3d/core/bbox/coders/smoke_bbox_coder.py:26
↓ 12 callersMethodextract_feat
Extract features from points.
mmdet3d/models/detectors/sassd.py:41
↓ 11 callersFunctionbuild_dataset
(cfg, default_args=None)
mmdet3d/datasets/builder.py:23
↓ 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:220
↓ 11 callersFunctionxywhr2xyxyr
Convert a rotated boxes in XYWHR format to XYXYR format. Args: boxes_xywhr (torch.Tensor | np.ndarray): Rotated boxes in XYWHR format.
mmdet3d/core/bbox/structures/utils.py:121
↓ 10 callersFunctionbuild_backbone
Build backbone.
mmdet3d/models/builder.py:32
↓ 10 callersFunctionmake_sparse_convmodule
Make sparse convolution module. Args: in_channels (int): the number of input channels out_channels (int): the number of out c
mmdet3d/ops/sparse_block.py:137
↓ 9 callersMethod_init_branch
Initialize conv layers as a prediction branch.
mmdet3d/models/dense_heads/anchor_free_mono3d_head.py:227
↓ 9 callersFunctiondigit_version
(version_str)
mmdet3d/__init__.py:9
↓ 9 callersFunctionkitti_eval
KITTI evaluation. Args: gt_annos (list[dict]): Contain gt information of each sample. dt_annos (list[dict]): Contain detected
mmdet3d/core/evaluation/kitti_utils/eval.py:662
↓ 9 callersFunctionmerge_aug_bboxes_3d
Merge augmented detection 3D bboxes and scores. Args: aug_results (list[dict]): The dict of detection results. The dict c
mmdet3d/core/post_processing/merge_augs.py:8
↓ 9 callersFunctionshow_result
Convert results into format that is directly readable for meshlab. Args: points (np.ndarray): Points. gt_bboxes (np.ndarray):
mmdet3d/core/visualizer/show_result.py:76
↓ 8 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:375
↓ 8 callersMethod_get_pipeline
Get data loading pipeline in self.show/evaluate function. Args: pipeline (list[dict]): Input pipeline. If None is given,
mmdet3d/datasets/custom_3d.py:358
↓ 8 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", "Ca
mmdet3d/core/bbox/structures/utils.py:142
↓ 8 callersMethodpoints_in_boxes_all
Find all boxes in which each point is. Args: points (torch.Tensor): Points in shape (1, M, 3) or (M, 3), 3 di
mmdet3d/core/bbox/structures/base_box3d.py:537
↓ 8 callersMethodpre_pipeline
Initialization before data preparation. Args: results (dict): Dict before data preprocessing. - img_fields
mmdet3d/datasets/custom_3d.py:190
↓ 8 callersMethodshow
Results visualization. Args: results (list[dict]): List of bounding boxes results. out_dir (str): Output director
mmdet3d/datasets/lyft_dataset.py:443
↓ 7 callersFunctionbuild_sa_module
Build PointNet2 set abstraction (SA) module. Args: cfg (None or dict): The SA module config, which should contain: - type
mmdet3d/ops/pointnet_modules/builder.py:7
↓ 7 callersMethodconvert
Convert boxes from `src` mode to `dst` mode. Args: box (tuple | list | np.ndarray | torch.Tensor | :obj:`Base
mmdet3d/core/bbox/structures/box_3d_mode.py:66
↓ 7 callersMethodextract_feats
Extract features of multiple samples.
mmdet3d/models/detectors/h3dnet.py:171
↓ 7 callersMethodflip
Flip the points along given BEV direction. Args: bev_direction (str): Flip direction (horizontal or vertical).
mmdet3d/core/points/base_points.py:174
↓ 7 callersFunctionget_kitti_info_path
(idx, prefix, info_type='image_2',
tools/data_converter/kitti_data_utils.py:20
↓ 7 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`): Co
mmdet3d/apis/inference.py:38
↓ 7 callersMethodloss
Compute loss. Args: bbox_preds (dict): Predictions from forward of h3d bbox head. points (list[torch.Tensor]): In
mmdet3d/models/roi_heads/bbox_heads/h3d_bbox_head.py:311
↓ 6 callersMethod_assign_primitive_surface_targets
Generate targets for primitive z and primitive xy. Args: point_mask (torch.Tensor): Tensor to store the ground
mmdet3d/models/roi_heads/mask_heads/primitive_head.py:867
↓ 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:305
↓ 6 callersFunction_read_imageset_file
(path)
tools/data_converter/kitti_converter.py:41
↓ 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 g
mmdet3d/core/bbox/coders/centerpoint_bbox_coders.py:98
↓ 6 callersMethodassign
Computes one-to-one matching based on the weighted costs. This method assign each query prediction to a ground truth or background.
plugin/futr3d/core/assigners/hungarian_assigner_3d.py:52
↓ 6 callersFunctionbuild_neck
Build neck.
mmdet3d/models/builder.py:40
↓ 6 callersFunctiondla_build_norm_layer
Build normalization layer specially designed for DLANet. Args: cfg (dict): The norm layer config, which should contain:
mmdet3d/models/backbones/dla.py:12
↓ 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
mmdet3d/datasets/utils.py:116
↓ 6 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:188
↓ 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:716
↓ 6 callersFunctionobtain_sensor2top
Obtain the info with RT matric from general sensor to Top LiDAR. Args: nusc (class): Dataset class in the nuScenes dataset. s
tools/data_converter/nuscenes_converter.py:302
↓ 6 callersFunctionparse_requirements
Parse the package dependencies listed in a requirements file but strips specific versioning information. Args: fname (str): path
setup.py:67
↓ 6 callersMethodshuffle
Shuffle the points. Returns: torch.Tensor: The shuffled index.
mmdet3d/core/points/base_points.py:135
↓ 5 callersMethodanchor_target_single_assigner
Assign anchors and encode positive anchors. Args: bbox_assigner (BaseAssigner): assign positive and negative boxes.
mmdet3d/models/dense_heads/train_mixins.py:238
↓ 5 callersFunctionbox3d_multiclass_nms
Multi-class NMS for 3D boxes. The IoU used for NMS is defined as the 2D IoU between BEV boxes. Args: mlvl_bboxes (torch.Tensor):
mmdet3d/core/post_processing/box3d_nms.py:8
↓ 5 callersFunctionbuild_model
A function wrapper for building 3D detector or segmentor according to cfg. Should be deprecated in the future.
mmdet3d/models/builder.py:114
↓ 5 callersFunctionchamfer_distance
Calculate Chamfer Distance of two sets. Args: src (torch.Tensor): Source set with shape [B, N, C] to calculate Chamfer Di
mmdet3d/models/losses/chamfer_distance.py:9
↓ 5 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:89
↓ 5 callersFunctionprint_str
(value, *arg, sstream=None)
mmdet3d/core/evaluation/kitti_utils/eval.py:587
↓ 5 callersMethodsample
Sample specific number of ground truths. Args: num (int): Sampled number. Returns: list[dict]: Sampled
mmdet3d/datasets/pipelines/dbsampler.py:68
↓ 5 callersFunctionshow_seg_result
Convert results into format that is directly readable for meshlab. Args: points (np.ndarray): Points. gt_seg (np.ndarray): Gr
mmdet3d/core/visualizer/show_result.py:147
↓ 4 callersMethod__init__
(self, translation_std=[0.25, 0.25, 0.25], global_rot_range=[0.0, 0.0],
mmdet3d/datasets/pipelines/transforms_3d.py:555
↓ 4 callersMethod__init__
Args: input_ch(int) : the number of input channel out_features (list[str]): name of the layers whose outputs shoul
plugin/futr3d/models/backbone/vovnet.py:270
↓ 4 callersMethod_assign_primitive_line_targets
Generate targets of line primitive. Args: point_mask (torch.Tensor): Tensor to store the ground truth of mask
mmdet3d/models/roi_heads/mask_heads/primitive_head.py:802
↓ 4 callersFunction_draw_points
Draw points on visualizer. Args: points (numpy.array | torch.tensor, shape=[N, 3+C]): points to visualize. vis (
mmdet3d/core/visualizer/open3d_vis.py:15
↓ 4 callersMethod_duplicate_to_list
Repeat x `num` times to form a list.
mmdet3d/datasets/s3dis_dataset.py:422
↓ 4 callersMethod_gather_feat
Given feats and indexes, returns the gathered feats. Args: feats (torch.Tensor): Features to be transposed and gathered
mmdet3d/core/bbox/coders/centerpoint_bbox_coders.py:41
↓ 4 callersFunction_write_obj
Write points into ``obj`` format for meshlab visualization. Args: points (np.ndarray): Points in shape (N, dim). out_filename
mmdet3d/core/visualizer/show_result.py:12
↓ 4 callersMethodadd_sin_difference
Convert the rotation difference to difference in sine function. Args: boxes1 (torch.Tensor): Original Boxes in shape (NxC), wh
mmdet3d/models/dense_heads/anchor3d_head.py:281
↓ 4 callersFunctionapply_3d_transformation
Apply transformation to input point cloud. Args: pcd (torch.Tensor): The point cloud to be transformed. coord_type (str): 'DE
mmdet3d/models/fusion_layers/coord_transform.py:9
↓ 4 callersFunctionbbox3d2roi
Convert a list of bounding boxes to roi format. Args: bbox_list (list[torch.Tensor]): A list of bounding boxes correspond
mmdet3d/core/bbox/transforms.py:27
↓ 4 callersFunctionbuild_detector
Build detector.
mmdet3d/models/builder.py:82
↓ 4 callersMethodextract_img_feat
Directly extract features from the img backbone+neck.
mmdet3d/models/detectors/imvotenet.py:271
↓ 4 callersMethodforward_train
Forward function for training. Args: points (list[torch.Tensor]): List of points of shape [N, C]. img_metas (list
mmdet3d/models/segmentors/encoder_decoder.py:147
↓ 4 callersFunctionget_mAP11
(prec)
mmdet3d/core/evaluation/kitti_utils/eval.py:573
↓ 4 callersFunctionget_mAP40
(prec)
mmdet3d/core/evaluation/kitti_utils/eval.py:580
↓ 4 callersMethodget_points
Get points according to feature map sizes. Args: featmap_sizes (list[tuple]): Multi-level feature map sizes. dtyp
mmdet3d/models/dense_heads/anchor_free_mono3d_head.py:518
↓ 4 callersFunctionget_points_type
Get the class of points according to coordinate type. Args: points_type (str): The type of points coordinate. The valid v
mmdet3d/core/points/__init__.py:10
↓ 4 callersMethodget_targets
Generate targets of proposal module. Args: points (list[torch.Tensor]): Points of each batch. gt_bboxes_3d (list[
mmdet3d/models/roi_heads/bbox_heads/h3d_bbox_head.py:654
↓ 4 callersMethodmatch_point2line
Match points to corresponding line. Args: points (torch.Tensor): Points of input. corners (torch.Tensor): Eight c
mmdet3d/models/roi_heads/mask_heads/primitive_head.py:675
↓ 4 callersMethodnew_point
Create a new point object with data. The new point and its tensor has the similar properties as self and self.tensor, respecti
mmdet3d/core/points/base_points.py:421
↓ 4 callersFunctionpoints_img2cam
Project points in image coordinates to camera coordinates. Args: points (torch.Tensor): 2.5D points in 2D images, [N, 3],
mmdet3d/core/bbox/structures/utils.py:218
↓ 4 callersMethodpoints_in_boxes
(self, points, boxes_override=None)
mmdet3d/core/bbox/structures/base_box3d.py:568
↓ 4 callersMethodpoints_in_boxes_part
Find the box in which each point is. Args: points (torch.Tensor): Points in shape (1, M, 3) or (M, 3), 3 dime
mmdet3d/core/bbox/structures/base_box3d.py:508
↓ 4 callersFunctionshow_result_meshlab
Show result by meshlab. Args: data (dict): Contain data from pipeline. result (dict): Predicted result from model. o
mmdet3d/apis/inference.py:484
↓ 4 callersMethodsplit_pred
Split predicted features to specific parts. Args: cls_preds (torch.Tensor): Class predicted features to split. re
mmdet3d/core/bbox/coders/anchor_free_bbox_coder.py:88
↓ 4 callersFunctiontrangle_area
(a, b, c)
mmdet3d/core/evaluation/kitti_utils/rotate_iou.py:20
↓ 3 callersMethod__init__
(self, mlp_channels, paconv_num_kernels, num_point=None,
mmdet3d/ops/pointnet_modules/paconv_sa_module.py:117
↓ 3 callersMethod__init__
(self, in_channels, out_channels, norm_cfg,
mmdet3d/models/backbones/dla.py:119
↓ 3 callersMethod__init__
(self, in_channels=4, feat_channels=[], with_distance=Fa
mmdet3d/models/voxel_encoders/voxel_encoder.py:319
next →1–100 of 1,670, ranked by callers