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 a nuScenes result JSON against the ground truth in the 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.
- 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:
result_path (
str) –results_nusc.jsonfromNuScenesDataset._format_bbox.data_infos (
Sequence[Dict[str,Any]]) – The dataset’s infos, in dataset order.class_range (
Optional[Mapping[str,float]]) – Per-class radius overrides, seebuild_detection_config().tp_metrics (
str) – Which true-positive errors enter NDS; seeTP_METRIC_SETS.
- Return type:
- Returns:
The serialized metrics plus
metaandevaluationblocks.