Cross-dataset training¶
CoIn3D trains across datasets by converting each one into the nuScenes format and concatenating
them into a single ann_file under a shared class list. Here that is one command:
py123det-export-mmcv export \
--split nuscenes_train \
--merge "/data/py123d:wod-perception_train" \
--merge "/data/py123d:av2-sensor_train" \
--taxonomy general_3cls \
--camera-key camera_id \
--disjoint-timestamps \
--out /data/mixed_infos_train.pkl
Three flags do the work:
--taxonomy general_3clsmaps on default labels, so every source lands in the same three classes.--camera-key camera_idkeysinfo['cams']by the 123D camera id (PCAM_F0) instead of the dataset-native name (CAM_FRONT), so the camera dictionaries are consistent across datasets. The default camera order is already expressed in 123D ids and resolves to mmdet3d’s nuScenes order on a nuScenes rig.--disjoint-timestampsspaces the sources apart in exported time.NuScenesDataset.load_annotationssorts every info bytimestamp, and datasets recorded in overlapping wall-clock windows would interleave under that sort, shuffling logs together and breaking sequence samplers. Intra-log deltas are left untouched. The exporter checks for interleaving either way and warns if it finds any.
Sensor paths are absolute by default, so each source keeps pointing at its own dataset root
regardless of the config’s data_root.