MCPcopy Create free account
hub / github.com/InternRobotics/P3Former / _load_bboxes_3d

Method _load_bboxes_3d

datasets/transforms/loading.py:137–149  ·  view source on GitHub ↗

Private function to move the 3D bounding box annotation from `ann_info` field to the root of `results`. Args: results (dict): Result dict from :obj:`mmdet3d.CustomDataset`. Returns: dict: The dict containing loaded 3D bounding box annotations.

(self, results: dict)

Source from the content-addressed store, hash-verified

135 self.dataset_type = dataset_type
136
137 def _load_bboxes_3d(self, results: dict) -> dict:
138 """Private function to move the 3D bounding box annotation from
139 `ann_info` field to the root of `results`.
140
141 Args:
142 results (dict): Result dict from :obj:`mmdet3d.CustomDataset`.
143
144 Returns:
145 dict: The dict containing loaded 3D bounding box annotations.
146 """
147
148 results['gt_bboxes_3d'] = results['ann_info']['gt_bboxes_3d']
149 return results
150
151 def _load_bboxes_depth(self, results: dict) -> dict:
152 """Private function to load 2.5D bounding box annotations.

Callers 1

transformMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected