MCPcopy Create free account

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

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

Methodgrid_anchors
Generate grid anchors in multiple feature levels. Args: featmap_sizes (list[tuple]): List of feature map sizes for
mmdet3d/core/anchor/anchor_3d_generator.py:360
Methodgrid_size
np.ndarray: The size of grids.
mmdet3d/core/voxel/voxel_generator.py:58
Methodheight
torch.Tensor: A vector with height of each box in shape (N, ).
mmdet3d/core/bbox/structures/base_box3d.py:86
Methodheight
torch.Tensor: A vector with height of each box in shape (N, ).
mmdet3d/core/bbox/structures/cam_box3d.py:76
Methodheight
torch.Tensor: A vector with height of each point in shape (N, 1), or None.
mmdet3d/core/points/base_points.py:66
Methodheight_overlaps
Calculate height overlaps of two boxes. This function calculates the height overlaps between ``boxes1`` and ``boxes2``, where ``bo
mmdet3d/core/bbox/structures/cam_box3d.py:253
Methodin_range_3d
Check whether the boxes are in the given range. Args: box_range (list | torch.Tensor): The range of box (x_mi
mmdet3d/core/bbox/structures/base_box3d.py:220
Methodin_range_bev
Check whether the boxes are in the given range. Args: box_range (list | torch.Tensor): the range of box (x_mi
mmdet3d/core/bbox/structures/base_box3d.py:164
Methodin_range_bev
Check whether the points are in the given range. Args: point_range (list | torch.Tensor): The range of point
plugin/futr3d/core/points/radar_points.py:101
Methodinference
Inference Function. This function is used to make a prediction call on the given input request. Args: data
tools/deployment/mmdet3d_handler.py:74
Methodinit_assigner_sampler
Initialize assigner and sampler.
mmdet3d/models/roi_heads/h3d_roi_head.py:48
Methodinit_bbox_head
Initialize box head.
mmdet3d/models/roi_heads/part_aggregation_roi_head.py:65
Methodinit_bbox_head
Initialize box head. Args: bbox_head (dict): Config dict of RoI Head.
mmdet3d/models/roi_heads/point_rcnn_roi_head.py:47
Methodinit_bbox_head
Initialize box head.
mmdet3d/models/roi_heads/h3d_roi_head.py:42
Methodinit_mask_head
Initialize mask head, skip since ``PartAggregationROIHead`` does not have one.
mmdet3d/models/roi_heads/part_aggregation_roi_head.py:60
Methodinit_mask_head
Initialize maek head.
mmdet3d/models/roi_heads/point_rcnn_roi_head.py:55
Methodinit_mask_head
Initialize mask head, skip since ``H3DROIHead`` does not have one.
mmdet3d/models/roi_heads/h3d_roi_head.py:37
Methodinit_weights
Initialize weights of neck.
mmdet3d/models/necks/imvoxel_neck.py:65
Methodinit_weights
(self)
mmdet3d/models/necks/dla_neck.py:219
Methodinit_weights
(self)
mmdet3d/models/backbones/mink_resnet.py:62
Methodinit_weights
(self)
mmdet3d/models/dense_heads/shape_aware_head.py:185
Methodinit_weights
Initialize weights.
mmdet3d/models/dense_heads/monoflex_head.py:138
Methodinit_weights
Initialize weights.
mmdet3d/models/dense_heads/centerpoint_head.py:205
Methodinit_weights
Initialize all layer weights.
mmdet3d/models/dense_heads/imvoxel_head.py:73
Methodinit_weights
Initialize weights of the head. We currently still use the customized init_weights because the default init of DCN triggered by th
mmdet3d/models/dense_heads/fcos_mono3d_head.py:115
Methodinit_weights
Initialize weights of the head. We currently still use the customized defined init_weights because the default init of DCN trigger
mmdet3d/models/dense_heads/anchor_free_mono3d_head.py:284
Methodinit_weights
Initialize weights of transformer decoder in GroupFree3DHead.
mmdet3d/models/dense_heads/groupfree3d_head.py:253
Methodinit_weights
Initialize weights.
mmdet3d/models/dense_heads/fcaf3d_head.py:144
Methodinit_weights
Initialize weights of the head.
mmdet3d/models/roi_heads/bbox_heads/point_rcnn_bbox_head.py:197
Methodinit_weights
(self)
mmdet3d/models/roi_heads/bbox_heads/parta2_bbox_head.py:237
Methodinit_weights
Initialize weights of classification layer.
mmdet3d/models/decode_heads/decode_head.py:62
Methodinit_weights
Initialize the transformer weights.
plugin/futr3d/models/utils/futr3d_transformer.py:198
Methodinit_weights
Initialize weights of the DeformDETR head.
plugin/futr3d/models/head/futr3d_head.py:111
Methodinitialize
Initialize function loads the model in MMDetection3D. Args: context (context): It is a JSON Object containing information
tools/deployment/mmdet3d_handler.py:25
Functioninverse_sigmoid
Inverse function of sigmoid. Args: x (Tensor): The tensor to do the inverse. eps (float): EPS avoid numerical
plugin/futr3d/models/utils/futr3d_attention.py:18
Functioniou_jit
Calculate box iou. Note that jit version runs ~10x faster than the box_overlaps function in mmdet3d.core.evaluation. Note: This f
mmdet3d/core/bbox/box_np_ops.py:483
Methodkeep_arrays_by_name
Keep useful ground truths by name. Args: gt_names (list[str]): Names of ground truths. used_classes (list[str]):
mmdet3d/datasets/kitti_dataset.py:237
Functionkitti_anno_to_label_file
(annos, folder)
tools/data_converter/kitti_data_utils.py:511
Functionkitti_eval_coco_style
coco style evaluation of kitti. Args: gt_annos (list[dict]): Contain gt information of each sample. dt_annos (list[dict]): Co
mmdet3d/core/evaluation/kitti_utils/eval.py:881
Functionline_segment_intersection_v1
(pts1, pts2, i, j, temp_pts)
mmdet3d/core/evaluation/kitti_utils/rotate_iou.py:119
Methodload_annotations
Load annotations from ann_file. Args: ann_file (str): Path of the annotation file. Returns: list[dict]
mmdet3d/datasets/nuscenes_dataset.py:178
Methodload_annotations
Load annotations from ann_file. Args: ann_file (str): Path of the annotation file. Returns: list[dict]
mmdet3d/datasets/kitti2d_dataset.py:81
Methodlocal_yaw
torch.Tensor: A vector with local yaw of each box in shape (N, ). local_yaw equals to alpha in kitti, which is commonly
mmdet3d/core/bbox/structures/cam_box3d.py:94
Methodloop_dataset
(i)
tools/data_converter/create_gt_database.py:597
Methodloss
Compute loss. Args: bbox_preds (dict): Predictions from forward of SSD3DHead. points (list[torch.Tensor]): Input
mmdet3d/models/dense_heads/ssd_3d_head.py:115
Methodloss
Calculate losses. Args: cls_scores (list[torch.Tensor]): Multi-level class scores. bbox_preds (list[torch.Tensor]
mmdet3d/models/dense_heads/shape_aware_head.py:311
Methodloss
Calculate loss of FreeAnchor head. Args: cls_scores (list[torch.Tensor]): Classification scores of different
mmdet3d/models/dense_heads/free_anchor3d_head.py:45
Methodloss
Loss function for CenterHead. Args: gt_bboxes_3d (list[:obj:`LiDARInstance3DBoxes`]): Ground truth gt boxes.
mmdet3d/models/dense_heads/centerpoint_head.py:586
Methodloss
Compute loss. Args: bbox_preds (dict): Predictions from forward of vote head. points (list[torch.Tensor]): Input
mmdet3d/models/dense_heads/vote_head.py:222
Methodloss
Per scene loss function. Args: center_preds (list[list[Tensor]]): Centerness predictions for all scenes.
mmdet3d/models/dense_heads/imvoxel_head.py:170
Methodloss
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/fcos_mono3d_head.py:255
Methodloss
Compute loss of the head. Args: cls_scores (list[Tensor]): Box scores for each scale level. shape (num_gt, 4)
mmdet3d/models/dense_heads/smoke_mono3d_head.py:430
Methodloss
Calculate losses. Args: cls_scores (list[torch.Tensor]): Multi-level class scores. bbox_preds (list[torch.Tensor]
mmdet3d/models/dense_heads/parta2_rpn_head.py:86
Methodloss
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/anchor_free_mono3d_head.py:397
Methodloss
Compute loss. Args: bbox_preds (dict): Predictions from forward of PointRCNN RPN_Head. cls_preds (dict): Classifi
mmdet3d/models/dense_heads/point_rpn_head.py:127
Methodloss
Calculate losses. Args: cls_scores (list[torch.Tensor]): Multi-level class scores. bbox_preds (list[torch.Tensor]
mmdet3d/models/dense_heads/anchor3d_head.py:305
Methodloss
Compute loss. Args: bbox_preds (dict): Predictions from forward of vote head. points (list[torch.Tensor]): Input
mmdet3d/models/dense_heads/groupfree3d_head.py:394
Methodloss
Calculate point-wise segmentation and part prediction losses. Args: semantic_results (dict): Results from semantic head.
mmdet3d/models/roi_heads/mask_heads/pointwise_semantic_head.py:161
Methodloss
Compute loss. Args: bbox_preds (dict): Predictions from forward of primitive head. points (list[torch.Tensor]): I
mmdet3d/models/roi_heads/mask_heads/primitive_head.py:187
Methodloss
Computing losses. Args: cls_score (torch.Tensor): Scores of each RoI. bbox_pred (torch.Tensor): Predictions of bb
mmdet3d/models/roi_heads/bbox_heads/point_rcnn_bbox_head.py:241
Methodloss
Computing losses. Args: cls_score (torch.Tensor): Scores of each roi. bbox_pred (torch.Tensor): Predictions of bb
mmdet3d/models/roi_heads/bbox_heads/parta2_bbox_head.py:291
Methodloss_single
Calculate loss of Single-level results. Args: cls_score (torch.Tensor): Class score in single-level. bbox_pred (t
mmdet3d/models/dense_heads/shape_aware_head.py:249
Methodloss_single
Calculate loss of Single-level results. Args: cls_score (torch.Tensor): Class score in single-level. bbox_pred (t
mmdet3d/models/dense_heads/anchor3d_head.py:194
Methodloss_single
Loss function for outputs from a single decoder layer of a single feature level. Args: cls_scores (Tensor): Box score l
plugin/futr3d/models/head/futr3d_head.py:307
Functionmake_cuda_ext
(name, module, sources, sources_cuda=[],
setup.py:35
Functionmap_func
(idx)
tools/data_converter/kitti_data_utils.py:209
Methodmax_num_points_per_voxel
int: Maximum number of points per voxel.
mmdet3d/core/voxel/voxel_generator.py:48
Functionminmax_to_corner_2d
Convert minmax box to corners2d. Args: minmax_box (np.ndarray, shape=[N, dims]): minmax boxes. Returns: np.ndarray: 2d
mmdet3d/core/bbox/box_np_ops.py:379
Functionmono_cam_box2vis
This is a post-processing function on the bboxes from Mono-3D task. If we want to perform projection visualization, we need to: 1. rot
mmdet3d/core/bbox/structures/utils.py:251
Methodnearest_bev
torch.Tensor: A tensor of 2D BEV box of each box without rotation.
mmdet3d/core/bbox/structures/base_box3d.py:144
Functionnew_func
Inner wrapper for the arguments.
mmdet3d/core/utils/array_converter.py:81
Functionnms_normal_bev
Normal NMS function GPU implementation (for BEV boxes). The overlap of two boxes for IoU calculation is defined as the exact overlapping area of
mmdet3d/core/post_processing/box3d_nms.py:274
Methodnonempty
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:281
Methodnum_base_anchors
list[int]: Total number of base anchors in a feature grid.
mmdet3d/core/anchor/anchor_3d_generator.py:78
Methodnum_levels
int: Number of feature levels that the generator is applied to.
mmdet3d/core/anchor/anchor_3d_generator.py:85
Methodparse_one_object
Parse one instance in kitti format and convert them to `Object` proto. Args: instance_idx (int): Index of
mmdet3d/core/evaluation/waymo_utils/prediction_kitti_to_waymo.py:110
Functionplot_curve
(log_dicts, args)
tools/analysis_tools/analyze_logs.py:34
Methodpoint_cloud_range
list[float]: Range of point cloud.
mmdet3d/core/voxel/voxel_generator.py:53
Methodpoints_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/cam_box3d.py:330
Methodpoints_in_boxes_batch
(self, points, boxes_override=None)
mmdet3d/core/bbox/structures/base_box3d.py:574
Methodpoints_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/cam_box3d.py:303
Functionpoints_in_convex_polygon_jit
Check points is in 2d convex polygons. True when point in polygon. Args: points (np.ndarray): Input points with the shape of [num_poin
mmdet3d/core/bbox/box_np_ops.py:709
Functionpoints_in_rbbox
Check points in rotated bbox and return indices. Note: This function is for counterclockwise boxes. Args: points (np.n
mmdet3d/core/bbox/box_np_ops.py:353
Methodpostprocess
Postprocess function. This function makes use of the output from the inference and converts it into a torchserve supported respons
tools/deployment/mmdet3d_handler.py:90
Methodprepare_test_data
Prepare data for testing. We should take axis_align_matrix from self.data_infos since we need to align point clouds.
mmdet3d/datasets/scannet_dataset.py:175
Methodprepare_test_img
Prepare data for testing. Args: index (int): Index for accessing the target image data. Returns: dict:
mmdet3d/datasets/kitti2d_dataset.py:158
Methodprepare_train_img
Training image preparation. Args: index (int): Index for accessing the target image data. Returns: dic
mmdet3d/datasets/kitti2d_dataset.py:137
Methodpreprocess
Preprocess function converts data into LiDARPoints class. Args: data (List): Input data from the request. Returns:
tools/deployment/mmdet3d_handler.py:46
Functionprocess_scene
Process single ScanNet scene. Extract RGB images, poses and camera intrinsics.
data/scannet/extract_posed_images.py:149
Methodprocess_single_scene
(sample_idx)
tools/data_converter/sunrgbd_data_utils.py:146
Methodprocess_single_scene
(sample_idx)
tools/data_converter/s3dis_data_utils.py:63
Methodprocess_single_scene
(sample_idx)
tools/data_converter/scannet_data_utils.py:105
Functionproject_pts_on_img
Project the 3D points cloud on 2D image. Args: points (numpy.array): 3D points cloud (x, y, z) to visualize. raw_img (numpy.a
mmdet3d/core/visualizer/image_vis.py:10
Methodpts2Dto3D
Args: points (torch.Tensor): points in 2D images, [N, 3], 3 corresponds with x, y in the image and depth.
mmdet3d/models/dense_heads/fcos_mono3d_head.py:696
Functionrbbox2d_to_near_bbox
convert rotated bbox to nearest 'standing' or 'lying' bbox. Args: rbboxes (np.ndarray): Rotated bboxes with shape of (N,
mmdet3d/core/bbox/box_np_ops.py:463
Functionread_label_mapping
(filename, label_from='raw_category', label_to='nyu40id')
data/scannet/scannet_utils.py:33
Functionread_mesh_vertices
Read XYZ for each vertex. Args: filename(str): The name of the mesh vertices file. Returns: ndarray: Vertices.
data/scannet/scannet_utils.py:47
Functionread_mesh_vertices_rgb
Read XYZ and RGB for each vertex. Args: filename(str): The name of the mesh vertices file. Returns: Vertices. Note tha
data/scannet/scannet_utils.py:67
Methodreformat_bbox
Reformat bounding boxes to KITTI 2D styles. Args: outputs (list[np.ndarray]): List of arrays storing the inferenced
mmdet3d/datasets/kitti2d_dataset.py:204
Functionremove_outside_points
Remove points which are outside of image. Note: This function is for KITTI only. Args: points (np.ndarray, shape=[N, 3
mmdet3d/core/bbox/box_np_ops.py:553
← previousnext →1,501–1,600 of 1,670, ranked by callers