Load Annotations3D. Load instance mask and semantic mask of points and encapsulate the items into related fields. Required Keys: - ann_info (dict) - gt_bboxes_3d (:obj:`LiDARInstance3DBoxes` | :obj:`DepthInstance3DBoxes` | :obj:`CameraInstance3DBoxes`):
| 17 | |
| 18 | @TRANSFORMS.register_module() |
| 19 | class _LoadAnnotations3D(LoadAnnotations): |
| 20 | """Load Annotations3D. |
| 21 | |
| 22 | Load instance mask and semantic mask of points and |
| 23 | encapsulate the items into related fields. |
| 24 | |
| 25 | Required Keys: |
| 26 | |
| 27 | - ann_info (dict) |
| 28 | |
| 29 | - gt_bboxes_3d (:obj:`LiDARInstance3DBoxes` | |
| 30 | :obj:`DepthInstance3DBoxes` | :obj:`CameraInstance3DBoxes`): |
| 31 | 3D ground truth bboxes. Only when `with_bbox_3d` is True |
| 32 | - gt_labels_3d (np.int64): Labels of ground truths. |
| 33 | Only when `with_label_3d` is True. |
| 34 | - gt_bboxes (np.float32): 2D ground truth bboxes. |
| 35 | Only when `with_bbox` is True. |
| 36 | - gt_labels (np.ndarray): Labels of ground truths. |
| 37 | Only when `with_label` is True. |
| 38 | - depths (np.ndarray): Only when |
| 39 | `with_bbox_depth` is True. |
| 40 | - centers_2d (np.ndarray): Only when |
| 41 | `with_bbox_depth` is True. |
| 42 | - attr_labels (np.ndarray): Attribute labels of instances. |
| 43 | Only when `with_attr_label` is True. |
| 44 | |
| 45 | - pts_instance_mask_path (str): Path of instance mask file. |
| 46 | Only when `with_mask_3d` is True. |
| 47 | - pts_semantic_mask_path (str): Path of semantic mask file. |
| 48 | Only when `with_seg_3d` is True. |
| 49 | - pts_panoptic_mask_path (str): Path of panoptic mask file. |
| 50 | Only when both `with_panoptic_3d` is True. |
| 51 | |
| 52 | Added Keys: |
| 53 | |
| 54 | - gt_bboxes_3d (:obj:`LiDARInstance3DBoxes` | |
| 55 | :obj:`DepthInstance3DBoxes` | :obj:`CameraInstance3DBoxes`): |
| 56 | 3D ground truth bboxes. Only when `with_bbox_3d` is True |
| 57 | - gt_labels_3d (np.int64): Labels of ground truths. |
| 58 | Only when `with_label_3d` is True. |
| 59 | - gt_bboxes (np.float32): 2D ground truth bboxes. |
| 60 | Only when `with_bbox` is True. |
| 61 | - gt_labels (np.int64): Labels of ground truths. |
| 62 | Only when `with_label` is True. |
| 63 | - depths (np.float32): Only when |
| 64 | `with_bbox_depth` is True. |
| 65 | - centers_2d (np.ndarray): Only when |
| 66 | `with_bbox_depth` is True. |
| 67 | - attr_labels (np.int64): Attribute labels of instances. |
| 68 | Only when `with_attr_label` is True. |
| 69 | - pts_instance_mask (np.int64): Instance mask of each point. |
| 70 | Only when `with_mask_3d` is True. |
| 71 | - pts_semantic_mask (np.int64): Semantic mask of each point. |
| 72 | Only when `with_seg_3d` is True. |
| 73 | |
| 74 | Args: |
| 75 | with_bbox_3d (bool): Whether to load 3D boxes. Defaults to True. |
| 76 | with_label_3d (bool): Whether to load 3D labels. Defaults to True. |
nothing calls this directly
no outgoing calls
no test coverage detected