py123detection.mmcv_export.sensors¶
Turning 123D sensor payloads into the file paths mmdetection3d reads.
123D stores a sensor stream either as a relative path into the original dataset
(camera_store_option="path") or as embedded data (JPEG/PNG bytes, MP4 frames, binary point
clouds). mmdet3d needs a file on disk either way:
referenceJoin the stored relative path onto the dataset’s sensor root. No copies; only works for path-backed logs.
extractDecode the payload through the scene API and write it under
extract_root. Needed for embedded payloads, and usable to materialize a self-contained copy of path-backed logs.
auto references where a path is stored and extracts otherwise.
Classes
|
|
|
|
|
Resolves camera and lidar payloads for one export run. |
|
Exceptions
- class py123detection.mmcv_export.sensors.SensorMode(value)[source]¶
-
- AUTO = 'auto'¶
- REFERENCE = 'reference'¶
- EXTRACT = 'extract'¶
- class py123detection.mmcv_export.sensors.PathStyle(value)[source]¶
-
- ABSOLUTE = 'absolute'¶
- RELATIVE = 'relative'¶
- class py123detection.mmcv_export.sensors.SensorResolverConfig(camera_mode=SensorMode.AUTO, lidar_mode=SensorMode.AUTO, path_style=PathStyle.ABSOLUTE, relative_to=None, extract_root=None, sensor_roots=<factory>, lidar_features=5, jpeg_quality=95)[source]¶
Bases:
object- camera_mode: SensorMode = 'auto'¶
- lidar_mode: SensorMode = 'auto'¶
- sensor_roots: Dict[str, Path]¶
Per-dataset sensor roots, e.g.
{"nuscenes": Path("/data/nuscenes")}.Datasets not listed fall back to py123d’s
get_dataset_paths(), which readsNUSCENES_DATA_ROOTand friends from the environment.
- exception py123detection.mmcv_export.sensors.SensorExtractionError[source]¶
Bases:
RuntimeError