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

Method __init__

datasets/transforms/formating.py:64–81  ·  view source on GitHub ↗
(
        self,
        keys: tuple,
        meta_keys: tuple = ('img_path', 'ori_shape', 'img_shape', 'lidar2img',
                            'depth2img', 'cam2img', 'pad_shape',
                            'scale_factor', 'flip', 'pcd_horizontal_flip',
                            'pcd_vertical_flip', 'box_mode_3d', 'box_type_3d',
                            'img_norm_cfg', 'num_pts_feats', 'pcd_trans',
                            'sample_idx', 'pcd_scale_factor', 'pcd_rotation',
                            'pcd_rotation_angle', 'lidar_path',
                            'transformation_3d_flow', 'trans_mat',
                            'affine_aug', 'sweep_img_metas', 'ori_cam2img',
                            'cam2global', 'crop_offset', 'img_crop_offset',
                            'resize_img_shape', 'lidar2cam', 'ori_lidar2img',
                            'num_ref_frames', 'num_views', 'ego2global')
    )

Source from the content-addressed store, hash-verified

62 ]
63
64 def __init__(
65 self,
66 keys: tuple,
67 meta_keys: tuple = ('img_path', 'ori_shape', 'img_shape', 'lidar2img',
68 'depth2img', 'cam2img', 'pad_shape',
69 'scale_factor', 'flip', 'pcd_horizontal_flip',
70 'pcd_vertical_flip', 'box_mode_3d', 'box_type_3d',
71 'img_norm_cfg', 'num_pts_feats', 'pcd_trans',
72 'sample_idx', 'pcd_scale_factor', 'pcd_rotation',
73 'pcd_rotation_angle', 'lidar_path',
74 'transformation_3d_flow', 'trans_mat',
75 'affine_aug', 'sweep_img_metas', 'ori_cam2img',
76 'cam2global', 'crop_offset', 'img_crop_offset',
77 'resize_img_shape', 'lidar2cam', 'ori_lidar2img',
78 'num_ref_frames', 'num_views', 'ego2global')
79 ) -> None:
80 self.keys = keys
81 self.meta_keys = meta_keys
82
83 def _remove_prefix(self, key: str) -> str:
84 if key.startswith('gt_'):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected