py123d_detection.mmcv_export.schema¶
The exported info schema and a checker for it.
The pickle is {"infos": [info, ...], "metadata": {...}}, which is what mmdet3d’s
NuScenesDataset.load_annotations reads: it sorts infos by timestamp and reads
metadata['version']. Geometry is in the lidar frame of each frame’s keyframe, as in
mmdetection3d’s nuScenes converter.
Per frame:
lidar_pathA reference into the original dataset or a file written by the export (see
sensors.py).tokenThe 123D frame UUID, or a native token when a resolver is configured (see
tokens.py).prev/nextNeighbouring tokens within the log; empty at log boundaries.
scene_token"{split}/{log_name}". StreamPETR uses it to detect sequence changes.frame_idxIndex within the log, from 0.
timestampMicroseconds, plus
Source.timestamp_offset_us.lidar2ego_translation/lidar2ego_rotationReference lidar extrinsic, quaternions scalar-first
[w, x, y, z]. Underlidar2ego_mode="dynamic"it also absorbs the ego/lidar timestamp offset.ego2global_translation/ego2global_rotationEgo pose at the frame’s timestamp.
sweepsPreceding lidar frames of the log, newest first, each with
sensor2lidar_*into this frame. Empty for the first frame of a log, which StreamPETR’s_set_sequence_group_flagrelies on. Sweeps come at the rate of the 123D log, so a 2 Hz keyframe log has 2 Hz sweeps.camsCamera payloads in model input order.
gt_boxesfloat64(N, 7)[x, y, z, l, w, h, yaw]around the box center (or themmdet3d_0.17layout).gt_names,gt_velocityShapes
(N,)and float64(N, 2).num_lidar_ptsint64(N,)-1when the log does not record it.num_radar_ptsint64(N,)Always zero, 123D has no radar counts.
valid_flagbool(N,)num_lidar_pts != 0. mmdet3d also counts radar points, so boxes seen only by radar differ.instance_tokensPer-box track ids. Ignored by mmdet3d.
bboxes2d,labels2d,centers2d,depths,bboxes3d_cams,bboxes_ignore,visibilitiesShapes
(M, 4),(M,),(M, 2),(M,),(M, 7),(K, 4), one entry per camera incamsorder, when 2D annotations are enabled. StreamPETR reads them during training.bboxes_ignoreis always empty andvisibilitiesholds empty strings.py123d_uuid,py123d_dataset,py123d_split,py123d_log_name,py123d_location,py123d_iterationProvenance, ignored by mmdet3d.
Per camera (info['cams'][key]):
data_path,type,timestampImage path, camera key, and the camera’s own capture time. Cameras fire slightly off the lidar keyframe.
sensor2ego_*Rig extrinsic, or a per-frame transform absorbing the timing offset under
camera2ego_mode="dynamic".ego2global_*Ego pose at the camera’s timestamp, or the frame’s ego pose under
camera2ego_mode="dynamic". Either wayego2global @ sensor2egois the camera-to-global pose.sensor2lidar_rotation(3, 3)/sensor2lidar_translation(3,)What PETR and StreamPETR turn into
lidar2img.cam_intrinsic,width,heightIntrinsic matrix
(3, 3)and the image size in pixels.sample_data_token"{split}/{log}/{camera}/{timestamp_us}". Not read during training.
Functions
|
Problems found in one info; empty when it is well-formed. |