MCPcopy Create free account

hub / github.com/InternRobotics/EmbodiedScan / functions

Functions577 in github.com/InternRobotics/EmbodiedScan

Method_get_targets_single
Compute regression and classification targets for one sample. Outputs from a single decoder layer of a single feature level are used.
embodiedscan/models/dense_heads/grounding_head.py:365
Method_load_bboxes
Private function to load bounding box annotations. The only difference is it remove the proceess for `ignore_flag` Args:
embodiedscan/datasets/transforms/loading.py:446
Method_load_labels
Private function to load label annotations. Args: results (dict): Result dict from :obj :obj:`mmcv.BaseDataset`. Returns
embodiedscan/datasets/transforms/loading.py:461
Methodadd_line
Adds this line to the visualizer.
embodiedscan/utils/line_mesh.py:110
Methodadd_line
Adds this line to the visualizer.
embodiedscan/visualization/line_mesh.py:110
Methodadd_pred_to_datasample
Convert results list to `Det3DDataSample`. Subclasses could override it to be compatible for some multi-modality 3D detectors.
embodiedscan/models/detectors/dense_fusion_occ.py:408
Methodadd_pred_to_datasample
Convert results list to `Det3DDataSample`. Subclasses could override it to be compatible for some multi-modality 3D detectors.
embodiedscan/models/detectors/sparse_featfusion_grounder.py:707
Methodadd_pred_to_datasample
Convert results list to `Det3DDataSample`. Subclasses could override it to be compatible for some multi-modality 3D detectors.
embodiedscan/models/detectors/embodied_occ.py:396
Methodanchors_single_range
Generate anchors in a single range. Args: feature_size (list[float] | tuple[float]): Feature map size. It is eith
embodiedscan/models/task_modules/anchor/anchor_3d_generator.py:271
Functionarray_converter
Wrapper function for data-type agnostic processing. First converts input arrays to PyTorch tensors or NumPy arrays for middle calculation, th
embodiedscan/utils/array_converter.py:12
Functionarray_converter_wrapper
Outer wrapper for the function.
embodiedscan/utils/array_converter.py:79
Methodbackward
(ctx: Any, grad_voxel_feats: torch.Tensor, grad_voxel_coors: Optional[torch.
embodiedscan/models/data_preprocessors/voxelize.py:228
Functionbbox3d2result
Convert detection results to a list of numpy arrays. Args: bboxes (torch.Tensor): Bounding boxes with shape (N, 5). labels (torch
embodiedscan/structures/ops/transforms.py:51
Functionbbox3d2roi
Convert a list of bounding boxes to roi format. Args: bbox_list (list[torch.Tensor]): A list of bounding boxes corresponding
embodiedscan/structures/ops/transforms.py:27
Functionbbox3d_mapping_back
Map bboxes from testing scale to original image scale. Args: bboxes (:obj:`BaseInstance3DBoxes`): Boxes to be mapped back. scale_
embodiedscan/structures/ops/transforms.py:5
Methodbev
Tensor: BEV of the points in shape (N, 2).
embodiedscan/structures/points/cam_points.py:53
Methodbev
Tensor: BEV of the points in shape (N, 2).
embodiedscan/structures/points/base_points.py:263
Methodbev
Tensor: 2D BEV box of each box with rotation in XYWHR format, in shape (N, 5).
embodiedscan/structures/bbox_3d/base_box3d.py:155
Methodbottom_center
Tensor: A tensor with center of each box in shape (N, 3).
embodiedscan/structures/bbox_3d/base_box3d.py:136
Methodbottom_height
Tensor: A vector with bottom height of each box in shape (N, ).
embodiedscan/structures/bbox_3d/base_box3d.py:112
Functionbox2d_to_corner_jit
Convert box2d to corner. Args: boxes (np.ndarray, shape=[N, 5]): Boxes2d with rotation. Returns: box_corners (np.ndarray, sh
embodiedscan/structures/ops/box_np_ops.py:204
Functionbox3d_to_bbox
Convert box3d in camera coordinates to bbox in image coordinates. Args: box3d (np.ndarray, shape=[N, 7]): Boxes in camera coordinate.
embodiedscan/structures/ops/box_np_ops.py:311
Functionbox_camera_to_lidar
Convert boxes in camera coordinate to lidar coordinate. Note: This function is for KITTI only. Args: data (np.ndarray, shape
embodiedscan/structures/ops/box_np_ops.py:37
Functionboxes3d_to_corners3d_lidar
Convert kitti center boxes to corners. 7 -------- 4 /| /| 6 -------- 5 . | | | | . 3 -------- 0
embodiedscan/structures/ops/box_np_ops.py:765
Methodcenter
Calculate the center of all the boxes. Note: In MMDetection3D's convention, the bottom center is usually taken as the
embodiedscan/structures/bbox_3d/base_box3d.py:117
Methodclear_stat
Clear the statistics of visible labels.
embodiedscan/visualization/color_selector.py:932
Methodclose
Close the visualizer. Args: vis (open3d.visualization.VisualizerWithKeyCallback): Visualizer.
embodiedscan/visualization/continuous_drawer.py:340
Methodclose
Close the visualizer. Args: vis (open3d.visualization.VisualizerWithKeyCallback): Visualizer.
embodiedscan/visualization/continuous_drawer.py:518
Methodcolor
Tensor or None: Returns a vector with color of each point in shape (N, 3).
embodiedscan/structures/points/base_points.py:115
Methodcompute_metrics
Compute the metrics from processed results. Args: results (list): The processed results of each batch. Returns:
embodiedscan/eval/metrics/det_metric.py:218
Methodcompute_metrics
Compute the metrics from processed results after all batches have been processed. Args: results (list): The processed res
embodiedscan/eval/metrics/grounding_metric.py:154
Methodconvert
Convert boxes from ``src`` mode to ``dst`` mode. Args: box (Sequence[float] or np.ndarray or Tensor or :obj:`Base
embodiedscan/structures/bbox_3d/box_3d_mode.py:67
Methodconvert_sparse_feature
Convert SparseTensor to pytorch tensor. Args: batch_inputs_dict (dict): The model input dict which includes 'poin
embodiedscan/models/detectors/sparse_featfusion_grounder.py:128
Methodconvert_to
Convert self to ``dst`` mode. Args: dst (int): The target Point mode. rt_mat (Tensor or np.ndarray, optional): The ro
embodiedscan/structures/points/lidar_points.py:52
Methodconvert_to
Convert self to ``dst`` mode. Args: dst (int): The target Point mode. rt_mat (Tensor or np.ndarray, optional): The ro
embodiedscan/structures/points/cam_points.py:57
Methodconvert_to
Convert self to ``dst`` mode. Args: dst (int): The target Point mode. rt_mat (Tensor or np.ndarray, optional): The ro
embodiedscan/structures/points/depth_points.py:52
Methodconvert_to
Convert self to ``dst`` mode. Args: dst (:obj:`Box3DMode`): The target Box mode. rt_mat (np.ndarray | torch.Tensor, o
embodiedscan/structures/bbox_3d/euler_depth_box3d.py:80
Methodconvert_to
Convert self to ``dst`` mode. Args: dst (int): The target Box mode. rt_mat (Tensor or np.ndarray, optional): The rota
embodiedscan/structures/bbox_3d/base_box3d.py:286
Methodcoord
Tensor: Coordinates of each point in shape (N, 3).
embodiedscan/structures/points/base_points.py:58
Functioncorner_to_standup_nd_jit
Convert boxes_corner to aligned (min-max) boxes. Args: boxes_corner (np.ndarray, shape=[N, 2**dim, dim]): Boxes corners. Returns:
embodiedscan/structures/ops/box_np_ops.py:235
Methodcorners
torch.Tensor: Coordinates of corners of all the boxes in shape (N, 8, 3). Convert the boxes to corners in clockwise order, in form of
tools/eval_script_portable.py:219
Methodcorners
torch.Tensor: Coordinates of corners of all the boxes in shape (N, 8, 3). Convert the boxes to corners in clockwise order, in form of
embodiedscan/structures/bbox_3d/euler_box3d.py:143
Methodcorners
Tensor: A tensor with 8 corners of each box in shape (N, 8, 3).
embodiedscan/structures/bbox_3d/base_box3d.py:150
Methodcount_scenes
Count the number of scenes.
embodiedscan/explorer.py:134
Functioncreate_anchors_3d_range
Create anchors 3d by range. Args: feature_size (list[float] | tuple[float]): Feature map size. It is either a list of a tuple
embodiedscan/structures/ops/box_np_ops.py:399
Methodcuda
Convert current boxes to cuda device. Returns: :obj:`BaseInstance3DBoxes`: A new boxes object on the cuda device.
embodiedscan/structures/bbox_3d/base_box3d.py:444
Functiondepth_to_lidar_points
Convert depth map to points in lidar coordinate. Args: depth (np.array, shape=[H, W]): Depth map which the row of [0~`trunc_p
embodiedscan/structures/ops/box_np_ops.py:147
Methoddetach
Detach the boxes. Returns: :obj:`BaseInstance3DBoxes`: Box object with the same properties as self.
embodiedscan/structures/bbox_3d/base_box3d.py:467
Methoddims
Tensor: Size dimensions of each box in shape (N, 3).
tools/eval_script_portable.py:180
Methoddims
Tensor: Size dimensions of each box in shape (N, 3).
embodiedscan/structures/bbox_3d/base_box3d.py:92
Methodevaluate
Evaluate the model performance of the whole dataset after processing all batches. Args: size (int): Length of the entire
embodiedscan/eval/metrics/occupancy_metric.py:117
Methodevaluate
Evaluate the model performance of the whole dataset after processing all batches. Args: size (int): Length of the entire
embodiedscan/eval/metrics/det_metric.py:101
Methodflip
Flip the points along given BEV direction. Args: bev_direction (str): Flip direction (horizontal or vertical). De
embodiedscan/structures/points/lidar_points.py:39
Methodflip
Flip the points along given BEV direction. Args: bev_direction (str): Flip direction (horizontal or vertical). De
embodiedscan/structures/points/cam_points.py:39
Methodflip
Flip the points along given BEV direction. Args: bev_direction (str): Flip direction (horizontal or vertical). De
embodiedscan/structures/points/depth_points.py:39
Methodflip
Flip the boxes along the corresponding axis. Args: direction (str, optional): Flip axis. Defaults to 'X'.
embodiedscan/structures/bbox_3d/euler_box3d.py:263
Methodflip
Flip the boxes in BEV along given BEV direction. In Depth coordinates, it flips x (horizontal) or y (vertical) axis. Args:
embodiedscan/structures/bbox_3d/euler_depth_box3d.py:49
Methodflip
Flip the boxes in BEV along given BEV direction. Args: bev_direction (str): Direction by which to flip. Can be chosen from
embodiedscan/structures/bbox_3d/base_box3d.py:228
Methodforward
Forward pass. Args: x (list[Tensor]): Features from the backbone. Returns: Tuple[List[Tensor], ...]: Predict
embodiedscan/models/necks/mink_neck.py:133
Methodforward
Forward function.
embodiedscan/models/necks/channel_mapper.py:86
Methodforward
Forward function. Args: x (torch.Tensor): of shape (N, C_in, N_x, N_y, N_z). Returns: list[torch.Tensor]: of
embodiedscan/models/necks/imvoxel_neck.py:34
Methodforward
(self, x)
embodiedscan/models/necks/imvoxel_neck.py:132
Methodforward
Forward pass of ResNet. Args: x (ME.SparseTensor): Input sparse tensor. Returns: list[ME.SparseTensor]: Outp
embodiedscan/models/backbones/mink_resnet.py:122
Methodforward
Forward function. Args: visual_feat (Tensor): Visual features. # (b, num_query, dim) text_feat (Tensor): Text featur
embodiedscan/models/dense_heads/grounding_head.py:62
Methodforward
Forward function. Args: hidden_states (Tensor): Hidden states output from each decoder layer, has shape (num_deco
embodiedscan/models/dense_heads/grounding_head.py:427
Methodforward
Forward pass. Args: x (list[Tensor]): Features from the backbone. Returns: Tuple[List[Tensor], ...]: Predict
embodiedscan/models/dense_heads/fcaf3d_head.py:179
Methodforward
Forward pass. Args: x (list[Tensor]): Features from the backbone. Returns: Tuple[List[Tensor], ...]: Predict
embodiedscan/models/dense_heads/fcaf3d_head.py:993
Methodforward
Convert kitti points(N, >=3) to voxels. Args: points (torch.Tensor): [N, ndim]. Points[:, :3] contain xyz points
embodiedscan/models/data_preprocessors/voxelize.py:20
Methodforward
(self, input: torch.Tensor)
embodiedscan/models/data_preprocessors/voxelize.py:165
Methodforward
convert kitti points(N, >=3) to voxels. Args: feats (torch.Tensor): [N, C]. Points features to be reduced into vo
embodiedscan/models/data_preprocessors/voxelize.py:192
Methodforward
Scatters points/features into voxels. Args: points (torch.Tensor): Points to be reduced into voxels. coors (torch.Ten
embodiedscan/models/data_preprocessors/voxelize.py:289
Methodforward
Perform normalization, padding and bgr2rgb conversion based on ``BaseDataPreprocessor``. Args: data (dict or List[dict]):
embodiedscan/models/data_preprocessors/data_preprocessor.py:132
Methodforward
Forward pass, xyz is (B, N, 3or6), output (B, N, F).
embodiedscan/models/layers/ground_transformer/decoder.py:30
Methodforward
Implements decoder layer in Grounding DINO transformer. Args: query (Tensor): The input query, has shape (bs, num_queries, dim).
embodiedscan/models/layers/ground_transformer/decoder.py:103
Methodforward
Forward function of Transformer decoder. Args: query (Tensor): The input query, has shape (num_queries, bs, dim). val
embodiedscan/models/layers/ground_transformer/decoder.py:224
Methodforward
Forward function. Args: img_feats (List[Tensor]): Image features. pts: (List[Tensor]): A batch of points with shape N
embodiedscan/models/layers/fusion_layers/point_fusion.py:430
Methodforward
Forward function of loss calculation. Args: source (Tensor): Source set with shape [B, N, C] to calculate Chamfer
embodiedscan/models/losses/chamfer_distance.py:110
Methodforward
Forward function of loss calculation. Args: source (Tensor): Source bbox set with shape [N, bbox_dim] to calculat
embodiedscan/models/losses/chamfer_distance.py:240
Methodforward
Forward function of loss calculation. Args: pred (Tensor): Bbox predictions with shape [..., 7] (x, y, z, w, l, h
embodiedscan/models/losses/rotated_iou_loss.py:52
Methodget_corners
torch.Tensor: Coordinates of corners of all the boxes in shape (N, 8, 3). Convert the boxes to corners in clockwise order, in form of
embodiedscan/structures/bbox_3d/euler_box3d.py:60
Functionget_lidar2img
Get the projection matrix of lidar2img. Args: cam2img (torch.Tensor): A 3x3 or 4x4 projection matrix. lidar2cam (torch.Tensor): A
embodiedscan/structures/bbox_3d/utils.py:456
Methodgravity_center
torch.Tensor: A tensor with center of each box in shape (N, 3).
embodiedscan/structures/bbox_3d/euler_box3d.py:138
Methodgravity_center
Tensor: A tensor with center of each box in shape (N, 3).
embodiedscan/structures/bbox_3d/base_box3d.py:141
Methodgt_instances_3d
(self)
embodiedscan/utils/typing_config.py:14
Methodheight
Tensor or None: Returns a vector with height of each point in shape (N, ).
embodiedscan/structures/points/base_points.py:79
Methodheight
Tensor: A vector with height of each box in shape (N, ).
embodiedscan/structures/bbox_3d/base_box3d.py:102
Methodheight_overlaps
Calculate height overlaps of two boxes. Note: This function calculates the height overlaps between ``boxes1`` and ``b
embodiedscan/structures/bbox_3d/base_box3d.py:493
Methodin_range_3d
Check whether the boxes are in the given range. Args: box_range (Tensor or np.ndarray or Sequence[float]): The range of
embodiedscan/structures/bbox_3d/base_box3d.py:259
Methodin_range_bev
Check whether the points are in the given range. Args: point_range (Tensor or np.ndarray or Sequence[float]): The range of
embodiedscan/structures/points/base_points.py:267
Methodin_range_bev
Check whether the boxes are in the given range. Args: box_range (Tensor or np.ndarray or Sequence[float]): The range of
embodiedscan/structures/bbox_3d/base_box3d.py:180
Methodinit_weights
Initialize weights.
embodiedscan/models/necks/mink_neck.py:128
Methodinit_weights
Initialize weights.
embodiedscan/models/backbones/mink_resnet.py:76
Methodinit_weights
Initialize weights of the Deformable DETR head.
embodiedscan/models/dense_heads/grounding_head.py:220
Methodinit_weights
Initialize weights.
embodiedscan/models/dense_heads/fcaf3d_head.py:172
Methodinit_weights
Initialize weights.
embodiedscan/models/dense_heads/fcaf3d_head.py:986
Functioniou_jit
Calculate box iou. Note that jit version runs ~10x faster than the box_overlaps function in mmdet3d.core.evaluation. Note: This funct
embodiedscan/structures/ops/box_np_ops.py:497
Methodlimit_yaw
Limit the yaw to a given period and offset. Args: offset (float): The offset of the yaw. Defaults to 0.5. period (flo
embodiedscan/structures/bbox_3d/base_box3d.py:318
Methodlist_cameras
List all the camera frames in the scene. Args: scene (str): Scene name. Returns: list[str] or None: List of
embodiedscan/explorer.py:152
Methodlist_categories
List the categories involved in the dataset.
embodiedscan/explorer.py:138
Methodlist_instances
List all the instance annotations in the scene. Args: scene (str): Scene name. Returns: list[dict] or None:
embodiedscan/explorer.py:185
← previousnext →401–500 of 577, ranked by callers