CODa pedestrian CenterPoint (fine-tuned)
A LiDAR-only pedestrian detector for the Ouster OS1-128 of the UT Campus Object Dataset (CODa), used as the detector of perception-engine.
It is the first stage of the published CODa PV-RCNN
(coda128_allclass_bestoracle.pth from
coda-models), reduced to one class
and fine-tuned on CODa pedestrians:
points -> MeanVFE -> VoxelBackBone8x -> HeightCompression
-> BaseBEVBackbone -> CenterHead (Pedestrian) -> boxes
voxel 0.1 x 0.1 x 0.15 m, range +-51.2 m in x/y and -2..4 m in z after lifting points by 0.8 m, x/y/z only (no intensity).
Files
| file | contents |
|---|---|
coda_ped_centerpoint_ft.pth | {"model_state": OpenPCDet state dict, "epoch": 6}, float32, loads with torch.load(..., weights_only=True) |
coda_ped_centerpoint.yaml | OpenPCDet model config (CenterPoint) |
SHA-256 of the checkpoint:
8fe8ac00fcde6c28165834b0a4a919f53683ed8911e91ae2e1bd2e912072463b
Usage
On a CPU, without CUDA, spconv or OpenPCDet (PyTorch, NumPy and Shapely only):
git clone https://github.com/rsasaki0109/perception-engine && cd perception-engine
wget https://huggingface.co/rsasaki0109/coda-ped-centerpoint/resolve/main/coda_ped_centerpoint_ft.pth
python3 scripts/coda/detect_lidar_cpu.py --ckpt coda_ped_centerpoint_ft.pth \
--coda-root CODa --sequence 3 --first 1800 --last 1959 --out det/coda3_1800
It writes one CODa-style JSON per scan (3d_bbox_os1_<seq>_<frame>.json,
boxes in the LiDAR frame with a score). About 1.5 s per 128-beam scan on one
CPU core. For other LiDARs, --scan-pattern reads float32 x/y/z/intensity
files and --z-offset moves the ground to about 0.8 m below the origin, as on
the CODa robot.
With OpenPCDet (the coda-models fork),
build the model from coda_ped_centerpoint.yaml and load model_state.
Training
- Initialised from the first stage of
coda128_allclass_bestoracle.pth(all 209 tensors; the heatmap keeps the Pedestrian channel). - Data: every third labelled CODa scan, 8513 scans, Pedestrian boxes only, leaving out every scan within 100 scans of the eight evaluation windows below. Augmentation: flips in x and y, rotation +-45 deg, scaling 0.95-1.05.
- 6 epochs, batch 4, Adam one-cycle, LR 0.001 (the YAML's
NUM_EPOCHSandLRare the from-scratch defaults), final loss 1.4; 1.2 h on one A40. - Scripts:
scripts/runpod/coda_train_ped.shwithINIT=published(train_coda_ped.py,init_from_published.py) in perception-engine.
Evaluation
Pedestrian tracking with perception-engine's tracker
(scripts/eval/coda_tracker_eval.sh, score >= 0.5 chosen on dev) on 160-scan
windows: dev = sequence 13 (9700) and 20 (12700, 4820, 8640, 9330); held-out =
sequences 3 (1800), 4 (6870), 9 (8515).
| detector | dev HOTA / IDF1 | held-out HOTA / IDF1 |
|---|---|---|
| published PV-RCNN, first stage (CPU) | 0.618 / 0.761 | 0.769 / 0.900 |
| this model | 0.615 / 0.754 | 0.776 / 0.907 |
Pedestrian detection at score >= 0.4: recall / precision 0.794 / 0.815 (dev), 0.907 / 0.904 (held-out).
It ties with the published model, at about 1.7x the speed on a CPU, but detects pedestrians only and only within 51.2 m.
Caveat: the published weights it starts from were trained on CODa's training split, which holds 70-75 % of the scans of these windows (CODa splits frames at random within each sequence). The numbers above are therefore optimistic for both models. A model trained from scratch with the windows left out scores 0.551 / 0.717 HOTA (dev / held-out).
License and citation
The weights are derived from CODa and from the CODa pretrained models, so they are released under CC BY-NC-SA 4.0 (non-commercial, share-alike), subject to CODa's dataset terms. The perception-engine code is MIT OR Apache-2.0.
If you use them, please cite CODa:
@inproceedings{zhangcoda2023,
author = {A. Zhang, C. Eranki, C. Zhang, R. Hong, P. Kalyani, L. Kalyanaraman, A. Gamare, A. Bagad, M. Esteva, J. Biswas},
title = {{Towards Robust 3D Robot Perception in Urban Environments: The UT Campus Object Dataset}},
year = {2023}
}
@data{T8/BBOQMV_2023,
author = {Zhang, Arthur and Eranki, Chaitanya and Zhang, Christina and Hong, Raymond and Kalyani, Pranav and Kalyanaraman, Lochana and Gamare, Arsh and Bagad, Arnav and Esteva, Maria and Biswas, Joydeep},
publisher = {Texas Data Repository},
title = {{UT Campus Object Dataset (CODa)}},
year = {2023},
doi = {10.18738/T8/BBOQMV},
url = {https://doi.org/10.18738/T8/BBOQMV}
}