py123detection.mmcv_plugin.dataset¶
A NuScenesDataset subclass for py123detection exports.
Py123DNuScenesDataset is only defined when mmdet3d is importable, so rebuild_arrays()
can also be used from a conversion environment.
Functions
|
Restore the numpy arrays of an info from a |
Classes
|
|
- py123detection.mmcv_plugin.dataset.rebuild_arrays(info)[source]¶
Restore the numpy arrays of an info from a
portableexport, in place.Safe on
numpyexports too:np.asarrayreturns the arrays unchanged.
- class py123detection.mmcv_plugin.dataset.Py123DNuScenesDataset(*args, use_taxonomy_classes=True, eval_mode='self_contained', eval_class_range=None, **kwargs)[source]¶
Bases:
NuScenesDatasetNuScenesDatasetfor py123detection exports.On top of the stock dataset it rebuilds
portablearrays, takesCLASSESfrom the pickle’s taxonomy when the config sets none, and by default evaluates against the ground truth in the pickle instead of a nuScenes database (eval_mode="nuscenes"restores the stock evaluation).- Parameters:
eval_class_range (
Optional[Dict[str,float]]) – Per-class evaluation radius in metres. Classes with nuScenes names default to thedetection_cvpr_2019radii.