Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tsinghua-MARS-Lab/futr3d
/ functions
Functions
1,670 in github.com/Tsinghua-MARS-Lab/futr3d
⨍
Functions
1,670
◇
Types & classes
258
↳
Endpoints
1
Method
grid_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
Method
grid_size
np.ndarray: The size of grids.
mmdet3d/core/voxel/voxel_generator.py:58
Method
height
torch.Tensor: A vector with height of each box in shape (N, ).
mmdet3d/core/bbox/structures/base_box3d.py:86
Method
height
torch.Tensor: A vector with height of each box in shape (N, ).
mmdet3d/core/bbox/structures/cam_box3d.py:76
Method
height
torch.Tensor: A vector with height of each point in shape (N, 1), or None.
mmdet3d/core/points/base_points.py:66
Method
height_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
Method
in_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
Method
in_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
Method
in_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
Method
inference
Inference Function. This function is used to make a prediction call on the given input request. Args: data
tools/deployment/mmdet3d_handler.py:74
Method
init_assigner_sampler
Initialize assigner and sampler.
mmdet3d/models/roi_heads/h3d_roi_head.py:48
Method
init_bbox_head
Initialize box head.
mmdet3d/models/roi_heads/part_aggregation_roi_head.py:65
Method
init_bbox_head
Initialize box head. Args: bbox_head (dict): Config dict of RoI Head.
mmdet3d/models/roi_heads/point_rcnn_roi_head.py:47
Method
init_bbox_head
Initialize box head.
mmdet3d/models/roi_heads/h3d_roi_head.py:42
Method
init_mask_head
Initialize mask head, skip since ``PartAggregationROIHead`` does not have one.
mmdet3d/models/roi_heads/part_aggregation_roi_head.py:60
Method
init_mask_head
Initialize maek head.
mmdet3d/models/roi_heads/point_rcnn_roi_head.py:55
Method
init_mask_head
Initialize mask head, skip since ``H3DROIHead`` does not have one.
mmdet3d/models/roi_heads/h3d_roi_head.py:37
Method
init_weights
Initialize weights of neck.
mmdet3d/models/necks/imvoxel_neck.py:65
Method
init_weights
(self)
mmdet3d/models/necks/dla_neck.py:219
Method
init_weights
(self)
mmdet3d/models/backbones/mink_resnet.py:62
Method
init_weights
(self)
mmdet3d/models/dense_heads/shape_aware_head.py:185
Method
init_weights
Initialize weights.
mmdet3d/models/dense_heads/monoflex_head.py:138
Method
init_weights
Initialize weights.
mmdet3d/models/dense_heads/centerpoint_head.py:205
Method
init_weights
Initialize all layer weights.
mmdet3d/models/dense_heads/imvoxel_head.py:73
Method
init_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
Method
init_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
Method
init_weights
Initialize weights of transformer decoder in GroupFree3DHead.
mmdet3d/models/dense_heads/groupfree3d_head.py:253
Method
init_weights
Initialize weights.
mmdet3d/models/dense_heads/fcaf3d_head.py:144
Method
init_weights
Initialize weights of the head.
mmdet3d/models/roi_heads/bbox_heads/point_rcnn_bbox_head.py:197
Method
init_weights
(self)
mmdet3d/models/roi_heads/bbox_heads/parta2_bbox_head.py:237
Method
init_weights
Initialize weights of classification layer.
mmdet3d/models/decode_heads/decode_head.py:62
Method
init_weights
Initialize the transformer weights.
plugin/futr3d/models/utils/futr3d_transformer.py:198
Method
init_weights
Initialize weights of the DeformDETR head.
plugin/futr3d/models/head/futr3d_head.py:111
Method
initialize
Initialize function loads the model in MMDetection3D. Args: context (context): It is a JSON Object containing information
tools/deployment/mmdet3d_handler.py:25
Function
inverse_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
Function
iou_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
Method
keep_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
Function
kitti_anno_to_label_file
(annos, folder)
tools/data_converter/kitti_data_utils.py:511
Function
kitti_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
Function
line_segment_intersection_v1
(pts1, pts2, i, j, temp_pts)
mmdet3d/core/evaluation/kitti_utils/rotate_iou.py:119
Method
load_annotations
Load annotations from ann_file. Args: ann_file (str): Path of the annotation file. Returns: list[dict]
mmdet3d/datasets/nuscenes_dataset.py:178
Method
load_annotations
Load annotations from ann_file. Args: ann_file (str): Path of the annotation file. Returns: list[dict]
mmdet3d/datasets/kitti2d_dataset.py:81
Method
local_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
Method
loop_dataset
(i)
tools/data_converter/create_gt_database.py:597
Method
loss
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
Method
loss
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
Method
loss
Calculate loss of FreeAnchor head. Args: cls_scores (list[torch.Tensor]): Classification scores of different
mmdet3d/models/dense_heads/free_anchor3d_head.py:45
Method
loss
Loss function for CenterHead. Args: gt_bboxes_3d (list[:obj:`LiDARInstance3DBoxes`]): Ground truth gt boxes.
mmdet3d/models/dense_heads/centerpoint_head.py:586
Method
loss
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
Method
loss
Per scene loss function. Args: center_preds (list[list[Tensor]]): Centerness predictions for all scenes.
mmdet3d/models/dense_heads/imvoxel_head.py:170
Method
loss
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
Method
loss
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
Method
loss
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
Method
loss
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
Method
loss
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
Method
loss
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
Method
loss
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
Method
loss
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
Method
loss
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
Method
loss
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
Method
loss
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
Method
loss_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
Method
loss_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
Method
loss_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
Function
make_cuda_ext
(name, module, sources, sources_cuda=[],
setup.py:35
Function
map_func
(idx)
tools/data_converter/kitti_data_utils.py:209
Method
max_num_points_per_voxel
int: Maximum number of points per voxel.
mmdet3d/core/voxel/voxel_generator.py:48
Function
minmax_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
Function
mono_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
Method
nearest_bev
torch.Tensor: A tensor of 2D BEV box of each box without rotation.
mmdet3d/core/bbox/structures/base_box3d.py:144
Function
new_func
Inner wrapper for the arguments.
mmdet3d/core/utils/array_converter.py:81
Function
nms_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
Method
nonempty
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
Method
num_base_anchors
list[int]: Total number of base anchors in a feature grid.
mmdet3d/core/anchor/anchor_3d_generator.py:78
Method
num_levels
int: Number of feature levels that the generator is applied to.
mmdet3d/core/anchor/anchor_3d_generator.py:85
Method
parse_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
Function
plot_curve
(log_dicts, args)
tools/analysis_tools/analyze_logs.py:34
Method
point_cloud_range
list[float]: Range of point cloud.
mmdet3d/core/voxel/voxel_generator.py:53
Method
points_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
Method
points_in_boxes_batch
(self, points, boxes_override=None)
mmdet3d/core/bbox/structures/base_box3d.py:574
Method
points_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
Function
points_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
Function
points_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
Method
postprocess
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
Method
prepare_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
Method
prepare_test_img
Prepare data for testing. Args: index (int): Index for accessing the target image data. Returns: dict:
mmdet3d/datasets/kitti2d_dataset.py:158
Method
prepare_train_img
Training image preparation. Args: index (int): Index for accessing the target image data. Returns: dic
mmdet3d/datasets/kitti2d_dataset.py:137
Method
preprocess
Preprocess function converts data into LiDARPoints class. Args: data (List): Input data from the request. Returns:
tools/deployment/mmdet3d_handler.py:46
Function
process_scene
Process single ScanNet scene. Extract RGB images, poses and camera intrinsics.
data/scannet/extract_posed_images.py:149
Method
process_single_scene
(sample_idx)
tools/data_converter/sunrgbd_data_utils.py:146
Method
process_single_scene
(sample_idx)
tools/data_converter/s3dis_data_utils.py:63
Method
process_single_scene
(sample_idx)
tools/data_converter/scannet_data_utils.py:105
Function
project_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
Method
pts2Dto3D
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
Function
rbbox2d_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
Function
read_label_mapping
(filename, label_from='raw_category', label_to='nyu40id')
data/scannet/scannet_utils.py:33
Function
read_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
Function
read_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
Method
reformat_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
Function
remove_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
← previous
next →
1,501–1,600 of 1,670, ranked by callers