YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
OpenPloc
Open Point cloud Localization — A unified framework for point-based place recognition and pose regression.
Installation
uv venv
source .venv/bin/activate
uv sync
uv pip install cuml-cu12 # depends on cuda version, required by some methods
How to Run
1. Environment Setup
# Create virtual environment
uv venv
source .venv/bin/activate # Linux/macOS
# or Windows: .venv\Scripts\activate
# Install dependencies
uv sync
uv pip install cuml-cu12 # select based on CUDA version, required by some methods
2. Data Preparation
Place datasets under the data/ directory, or modify dataset_root in config files. Example KITTI directory structure:
{dataset_root}/
├── 00/
│ ├── velodyne/*.bin
│ ├── poses.txt
│ ├── times.txt
│ └── calib.txt
├── 01/
│ └── ...
3. Modify Configuration
Edit config/exps/{method}/{dataset}.py and set dataset_root to your data path. All method configs are in config/exps/; shared dataset definitions are in config/datasets/. Configs use relative paths under data/ by default; adjust as needed.
4. Run Experiments
TGFz7 + MCD 聚类参数:见 methods/tgfz7_mcd/README.md(改参数只需编辑 methods/tgfz7_mcd/presets.py)。
# Run boxgraph on KITTI-00, retrieve first 5 queries
python main.py -c boxgraph.kitti00 --num_queries 5
# Run with all queries
python main.py -c boxgraph.kitti00
# Specify full config path
python main.py -c config.boxgraph.kitti00
# Other common options
python main.py -c boxgraph.kitti00 --overwrite # force re-encode database
python main.py -c boxgraph.kitti00 -p 4 # 4 processes for retrieval
python main.py -c boxgraph.kitti00 --save_dir ./results # save results to directory
python main.py -c boxgraph.kitti00 --visualize # visualize map and query distribution
Usage (Legacy)
# Example 1: retrieve the first 5 items
python main.py -c boxgraph.kitti00 --num_queries 5
# Example 2: retrieve all items
python main.py -c boxgraph.kitti00
Benchmark
Algorithm
| Method | Reference | Publication |
|---|---|---|
| M2DP | link | IROS 2016 |
| ScanContext | link | IROS 2018 |
| GosMatch | link | IROS 2020 |
| SGPR | link | IROS 2020 |
| PosePN | link | Pattern Recognition 2022 |
| PosePN++ | link | Pattern Recognition 2022 |
| PoseSOE | link | Pattern Recognition 2022 |
| PoseMinkLoc | link | Pattern Recognition 2022 |
| BoxGraph | link | ICRA 2022 |
| RING | link | IROS 2022 |
| EgoNN | link | RA-L 2022 |
| BEVPlace | link | ICCV 2023 |
| HypLiLoc | link | CVPR 2023 |
| SGLoc | link | CVPR 2023 |
| NIDALoc | link | IEEE TITS 2024 |
| DiffLoc | link | CVPR 2024 |
| LightLoc | link | CVPR 2025 |
| GTRLoc | link | NeurIPS 2025 |
| FlashMix | link | WACV 2025 |
| PELoc | link | ACM MM 2025 |
Dataset
Data Preparation
Create a new config file config/{method}/{dataset}.py with the following format:
# 1. query data and map data
datasets = {
'map': {
'type': 'Kitti', # dataset registered name, see datasets.kitti.__init__
'dataset_root': '/path/to/dataset/sequences',
'sequence_name': '00',
'split': 'all',
'sampling_distance': 20.,
},
'query': {
'type': 'Kitti',
'dataset_root': '/path/to/dataset/sequences',
'sequence_name': '00',
'split': 'all',
'sampling_distance': 5.,
}
}
# 2. method
method = {
'type': 'BoxGraph', # method registered name, see methods.boxgraph
}
# 3. tracers for metrics
tracers = [
{'type': 'KittiRangeRecall2DoF', 'K': 1, 'radius': 5.},
{'type': 'KittiRangeRecall2DoF', 'K': 5, 'radius': 5.},
]
Run: python main.py -c {method}.{dataset}
PELoc (Predictive Method with Training)
PELoc is a pose regression method that requires data generation (including LTI) and training before evaluation.
Generate data (converts OpenPloc format + LTI trajectories):
python -m methods.peloc.generate_dataset --configs peloc.oxford --output_dir data/peloc/oxfordTrain (from
methods/peloc/PELoc):cd methods/peloc/PELoc && accelerate launch --num_processes 1 train.py --config config/oploc_oxford.yamlEdit
config/oploc_oxford.yamlto setdata_rootto yourdata/peloc/oxfordpath.Evaluate: Set
weightsinconfig/peloc/oxford.pyto your checkpoint, thenpython main.py -c peloc.oxford.
See methods/peloc/README.md for details.
Customization
Customize Dataset
- First, the return of
CustomizedDataset.__getitem__should have the format
{
'pc': pointcloud_xyz,
'pose': ...,
'label': semantic_label
}
Second, each experimental configuration should contain two part, i.e., (map_dataset, query_dataset).
Third, the dataset should be implemented as the submodule of the module
datasets, where the classDatasetshould be implemented in the__init__.pyof the submodule and registered bydatasets.builder.DATASETS.Finally, overwrite the
__str__method of the implemented data class to distinguish the generated database
Customize Method
First, each method should be implemented as a file of the module
methods, where the classMethodshould be implemented and registered bymethods.builder.METHODS.Second, implement four APIs for the method, etc.,
encode, save_db, load_db, retrieveFinally, overwrite the
__str__method of the implemented method class to distinguish the generated database
Customize Metric
First, each metric should be implemented as a file of the module
tracers, where the classTracershould be implemented and registered bytracers.builder.TRACERS.Second, implement one APIs for the method, etc.,
evaluateFinally, overwrite the
__str__method of the implemented tracer class
Acknowledgments
We thank the authors of the following works for their contributions. SGLoc (Li et al., CVPR 2023) and DiffLoc (Li et al., CVPR 2024) introduce scene geometry encoding and diffusion-based pose generation for outdoor LiDAR localization; DiffLoc builds upon RangeVit and PoseDiffusion. LightLoc (CVPR 2025) enables fast training via sample classification guidance. GTRLoc (NeurIPS 2025) uses geospatial text regularization for localization. FlashMix (Goswami et al., WACV 2025) achieves fast map-free localization via feature mixing and contrastive learning; it builds upon SpTr and SALSA. BEVPlace (Luo et al., ICCV 2023) and EgoNN (Komorowski et al., RA-L 2022) provide BEV-based place recognition and 6DoF relocalization. BoxGraph (ICRA 2022), RING (Lu et al., IROS 2022), ScanContext (IROS 2018), M2DP (IROS 2016), and GosMatch (IROS 2020) offer learning-free or handcrafted descriptors. HypLiLoc (CVPR 2023) uses hyperbolic fusion for LiDAR pose regression. PosePN (Yu et al., Pattern Recognition 2022) introduces universal encoding and memory-aware regression for LiDAR localization; PosePN++, PoseSOE, and PoseMinkLoc are variants in the same framework. NIDALoc (Yu et al., IEEE TITS 2024) proposes neurobiologically inspired deep LiDAR localization. PELoc (Chen et al., ACM MM 2025) proposes pose enhancement and LTI data augmentation for single-trajectory LiDAR localization. We thank all open-source contributors for their code and datasets.
- Downloads last month
- 52