py123d_detection.mmcv.plugin.evaluation

Evaluating an mmdetection3d run against the ground truth stored in an exported pickle.

mmdetection3d’s NuScenesDataset.evaluate hands predictions to the devkit’s NuScenesEval, which reads ground truth from a nuScenes database and requires an official split. Neither exists for a 123D export, so this module builds the ground truth from data_infos instead and hands it to py123d_detection.core.evaluation, which runs the devkit’s own metric code.

Ground truth goes through the same conversion as predictions (LiDARInstance3DBoxes -> output_to_nusc_box -> lidar_nusc_box_to_global), so a box layout mismatch cannot skew the metric in either direction.

The deviations from the official protocol are listed in py123d_detection.core.evaluation.

Functions

evaluate_from_infos(result_path, data_infos, ...)

Evaluate a nuScenes result JSON against the ground truth in the infos.

ground_truth_from_infos(data_infos, ...[, ...])

Global-frame ground-truth boxes per frame token, built from mmdet3d infos.

py123d_detection.mmcv.plugin.evaluation.ground_truth_from_infos(data_infos, class_names, cfg, eval_version='detection_cvpr_2019')[source]

Global-frame ground-truth boxes per frame token, built from mmdet3d infos.

Every frame gets an entry, empty when it holds no box of an evaluated class: a frame dropped here is a frame the model is never penalised for missing.

Return type:

Dict[str, list]

py123d_detection.mmcv.plugin.evaluation.evaluate_from_infos(result_path, data_infos, class_names, output_dir, class_range=None, eval_version='detection_cvpr_2019', tp_metrics='nuscenes', verbose=True)[source]

Evaluate a nuScenes result JSON against the ground truth in the infos.

Parameters:
Return type:

Dict[str, Any]

Returns:

The serialized metrics plus meta and evaluation blocks.