mramezani64 commited on
Commit
2c0e4a9
·
verified ·
1 Parent(s): 603a972

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +5 -165
README.md CHANGED
@@ -1,20 +1,20 @@
1
  # CS-Wild-Places: Large-Scale 3D Dataset for Lidar Place Recognition Across Ground and Aerial Views
2
 
3
- The dataset is published as a contribution in our CVPR paper titled:
4
  **HOTFormerLoc: Hierarchical Octree Transformer for Versatile Lidar Place Recognition Across Ground and Aerial Views**, CVPR 2025 by *Ethan Griffiths, Maryam Haghighat, Simon Denman, Clinton Fookes, and Milad Ramezani*\
5
  [[**Website**](https://csiro-robotics.github.io/HOTFormerLoc)] <!-- [[**Paper**](https://cvpr.thecvf.com)] --> [[**arXiv**](https://arxiv.org/abs/2503.08140)] <!-- [[**Video**](https://youtube.com)] --> [[**CS-Wild-Places Dataset**](https://data.csiro.au/collection/csiro:64896)] [[**CS-Wild-Places README**](https://github.com/csiro-robotics/HOTFormerLoc/blob/main/media/CS_Wild_Places_README.pdf)]
6
 
7
- [**CS-Wild-Places**](https://data.csiro.au/collection/csiro:64896), a 3D cross-source dataset featuring point cloud data from aerial and ground lidar scans captured in four dense forests. Point clouds in CS-Wild-Places contain representational gaps and distinctive attributes such as varying point densities and noise patterns, making it a challenging benchmark for cross-view localisation in the wild.
8
 
9
  ![CS-Wild-Places](media/CSWildPlaces_overview.png)
10
  *CS-Wild-Places dataset. (Top row) birds eye view of aerial global maps from all four forests.
11
  (Bottom row) sample ground and aerial submap from each forest.*
12
 
13
- Our results demonstrate that HOTFormerLoc achieves a top-1 average recall improvement of 5.5% – 11.5% on the CS-Wild-Places benchmark. Furthermore, it consistently outperforms SOTA 3D place recognition methods, with an average performance gain of 4.9% on well established urban and forest datasets.
14
-
15
  <!-- ![Hero Figure](media/radar_plot.svg) -->
16
  <img src="media/radar_plot.svg" alt="Hero Figure" width="50%" height="auto" style="display: block; margin: auto;">
17
 
 
18
  ### Citation
19
  If you find this work useful, please consider citing:
20
  ```
@@ -29,57 +29,7 @@ If you find this work useful, please consider citing:
29
  <!-- month = {todo},
30
  pages = {todo} -->
31
 
32
- ## Environment and Dependencies
33
- Code was tested using Python 3.11 with PyTorch 2.1.1 and CUDA 12.1 on a Linux system. We use conda to manage dependencies (although we recommend [mamba](https://mamba.readthedocs.io/en/latest/installation/mamba-installation.html) for a much faster install).
34
-
35
- ### Installation
36
- ```
37
- # Note: replace 'mamba' with 'conda' if using a vanilla conda install
38
- mamba create -n hotformerloc python=3.11 -c conda-forge
39
- mamba activate hotformerloc
40
- mamba install 'numpy<2.0' -c conda-forge
41
- mamba install pytorch==2.1.1 torchvision==0.16.1 pytorch-cuda=12.1 -c pytorch -c nvidia -c conda-forge
42
- pip install -r requirements.txt
43
- pip install libs/dwconv
44
- ```
45
-
46
- Modify the `PYTHONPATH` environment variable to include the absolute path to the repository root folder (ensure this variable is set every time you open a new shell):
47
- ```export PYTHONPATH
48
- export PYTHONPATH=$PYTHONPATH:<path/to/HOTFormerLoc>
49
- ```
50
-
51
- ## Datasets
52
-
53
- ### Wild-Places
54
- We train on the Wild-Places dataset introduced in *Wild-Places: A Large-Scale Dataset for Lidar Place Recognition in Unstructured Natural Environments* ([link](https://arxiv.org/pdf/2211.12732)).
55
-
56
- Download the dataset [here](https://csiro-robotics.github.io/Wild-Places/#8-Download), and place or symlink the data in `data/wild_places`.
57
-
58
- Run the following to fix the broken timestamps in the poses files:
59
- ```
60
- cd datasets/WildPlaces
61
- python fix_broken_timestamps.py \
62
- --root '../../data/wild_places/data/' \
63
- --csv_filename 'poses.csv' \
64
- --csv_savename 'poses_fixed.csv' \
65
- --cloud_folder 'Clouds'
66
-
67
- python fix_broken_timestamps.py \
68
- --root '../../data/wild_places/data/' \
69
- --csv_filename 'poses_aligned.csv' \
70
- --csv_savename 'poses_aligned_fixed.csv' \
71
- --cloud_folder 'Clouds_downsampled'
72
- ```
73
-
74
- Before network training or evaluation, run the below code to generate pickles with positive and negative point clouds for each anchor point cloud:
75
- ```
76
- cd datasets/WildPlaces
77
- python generate_training_tuples.py \
78
- --root '../../data/wild_places/data/'
79
 
80
- python generate_test_sets.py \
81
- --root '../../data/wild_places/data/'
82
- ```
83
 
84
  ### CS-Wild-Places
85
  We train on our novel CS-Wild-Places dataset, introduced in further detail in our [paper](https://arxiv.org/abs/2503.08140). CS-Wild-Places is built upon the ground traversals introduced by Wild-Places, so it is required to download the Wild-Places dataset alongside our data following the instructions in the above section (generating train/test pickles for Wild-Places is not required for CS-Wild-Places, so this step can be skipped). Note that the full Wild-Places dataset must be downloaded as our post-processing utilises the full resolution submaps.
@@ -116,117 +66,7 @@ python generate_train_test_tuples.py \
116
  ```
117
  Note that training and evaluation pickles are saved to the directory specified in `--root` by default.
118
 
119
- ### CS-Campus3D
120
- We train on the CS-Campus3D dataset introduced in *CrossLoc3D: Aerial-Ground Cross-Source 3D Place Recognition* ([link](https://arxiv.org/pdf/2303.17778)).
121
-
122
- Download the dataset [here](https://drive.google.com/file/d/1yxVicykRMg_HAfZG2EQUl1R3_wxpxStd/view?usp=sharing), and place or symlink the data in `data/benchmark_datasets_cs_campus3d`.
123
-
124
- Run the below commands to convert the CS_Campus3D train and test pickles into a suitable format for use with HOTFormerLoc.
125
-
126
- ```
127
- cd datasets/CSCampus3D
128
- python save_queries_HOTFormerLoc_format.py
129
- ```
130
-
131
- ### Oxford RobotCar
132
- We trained on a subset of Oxford RobotCar and the In-house (U.S., R.A., B.D.) datasets introduced in
133
- *PointNetVLAD: Deep Point Cloud Based Retrieval for Large-Scale Place Recognition* ([link](https://arxiv.org/pdf/1804.03492)).
134
- There are two training datasets:
135
- - Baseline Dataset - consists of a training subset of Oxford RobotCar
136
- - Refined Dataset - consists of training subset of Oxford RobotCar and training subset of In-house
137
-
138
- We report results on the Baseline set in the paper.
139
-
140
- For dataset description see the PointNetVLAD paper or github repository ([link](https://github.com/mikacuy/pointnetvlad)).
141
-
142
- You can download the dataset from
143
- [here](https://drive.google.com/open?id=1rflmyfZ1v9cGGH0RL4qXRrKhg-8A-U9q)
144
- ([alternative link](https://drive.google.com/file/d/1-1HA9Etw2PpZ8zHd3cjrfiZa8xzbp41J/view?usp=sharing)), then place or symlink the data in `data/benchmark_datasets`.
145
-
146
- Before network training or evaluation, run the below code to generate pickles with positive and negative point clouds for each anchor point cloud.
147
-
148
- ```generate pickles
149
- cd datasets/pointnetvlad
150
-
151
- # Generate training tuples for the Baseline Dataset
152
- python generate_training_tuples_baseline.py --dataset_root '../../data/benchmark_datasets'
153
-
154
- # (Optionally) Generate training tuples for the Refined Dataset
155
- python generate_training_tuples_refine.py --dataset_root '../../data/benchmark_datasets'
156
-
157
- # Generate evaluation tuples
158
- python generate_test_sets.py --dataset_root '../../data/benchmark_datasets'
159
- ```
160
-
161
- ## Training
162
- To train **HOTFormerLoc**, download the datasets and generate training pickles as described above for any dataset you wish to train on.
163
- The configuration files for each dataset can be found in `config/`.
164
- Set the `dataset_folder` parameter to the dataset root folder (only necessary if you have issues with the default relative path).
165
- If running out of GPU memory, decrease `batch_split_size` and `val_batch_size` parameter value. If running out of RAM, you may need to decrease the `batch_size` parameter or try reducing `num_workers` to 1, but note that a smaller batch size may slightly reduce performance. We use wandb for logging by default, but this can be disabled in the config.
166
-
167
- To train the network, run:
168
-
169
- ```
170
- cd training
171
-
172
- # To train HOTFormerLoc on CS-Wild-Places
173
- python train.py --config ../config/config_cs-wild-places.txt --model_config ../models/hotformerloc_cs-wild-places_cfg.txt
174
-
175
- # To train HOTFormerLoc on Wild-Places
176
- python train.py --config ../config/config_wild-places.txt --model_config ../models/hotformerloc_wild-places_cfg.txt
177
-
178
- # To train HOTFormerLoc on CS-Campus3D
179
- python train.py --config ../config/config_cs-campus3d.txt --model_config ../models/hotformerloc_cs-campus3d_cfg.txt
180
-
181
- # To train HOTFormerLoc on Oxford RobotCar
182
- python train.py --config ../config/config_oxford.txt --model_config ../models/hotformerloc_oxford_cfg.txt
183
- ```
184
-
185
- If training on a SLURM cluster, we provide the `submitit_train_job_single_node.py` script to automate training job submission, with support for automatic checkpointing and resubmission on job timeout. Make sure to set job parameters appropriately for your cluster.
186
-
187
- ### Pre-trained Weights
188
-
189
- Pre-trained weights for HOTFormerLoc and other experiments can be downloaded and placed in the `weights` directory. You can download them individually below, or download and extract all from [this link](https://www.dropbox.com/scl/fi/qjyh966styqlye38a4c37/pretrained_weights.tar.gz?rlkey=qkuhupf3og7mfkfid8dts7xej&st=wx8q2v68&dl=0).
190
- | Model | Dataset | Weights Download |
191
- |--------------|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
192
- | HOTFormerLoc | CS-Wild-Places | [hotformerloc_cs-wild-places.pth](https://www.dropbox.com/scl/fi/bcgcmbyic591f3bviib64/hotformerloc_cs-wild-places.pth?rlkey=vrw0seq6nfbsihijbhqatll2u&st=d7enawjw&dl=0) |
193
- | HOTFormerLoc | CS-Campus3D | [hotformerloc_cs-campus3D.pth](https://www.dropbox.com/scl/fi/l9jyn5310gjf80zw35v7z/hotformerloc_cs-campus3d.pth?rlkey=s0bpcysyc1xt2357shhclpnlw&st=zhh679b9&dl=0) |
194
- | HOTFormerLoc | Wild-Places | [hotformerloc_wild-places.pth](https://www.dropbox.com/scl/fi/yd94iy9dq6k1m312ifnyx/hotformerloc_wild-places.pth?rlkey=5ndv0p48c7hyjvah90eab1l1e&st=zl1716hh&dl=0) |
195
- | HOTFormerLoc | Oxford RobotCar | [hotformerloc_oxford.pth](https://www.dropbox.com/scl/fi/4r3470zo9zomkyjys5nrm/hotformerloc_oxford.pth?rlkey=eocfo3yvmhuqqgsmjtypgf78s&st=ybhzcj6y&dl=0) |
196
- | MinkLoc3Dv2 | CS-Wild-Places | [minkloc3dv2_cs-wild-places.pth](https://www.dropbox.com/scl/fi/2w4l8gv7qbmp0lh4eztsf/minkloc3dv2_cs-wild-places.pth?rlkey=udxvtkr6yfgdnyizra4gmw0qa&st=p0evrh61&dl=0) |
197
- | CrossLoc3D | CS-Wild-Places | [crossloc3d_cs-wild-places.pth](https://www.dropbox.com/scl/fi/5ikt1jvr2fabiaw8mhqbb/crossloc3d_cs-wild-places.pth?rlkey=lb4gp2n814im3twy4zy5d67bd&st=znup5ewi&dl=0) |
198
- | LoGG3D-Net | CS-Wild-Places | [logg3dnet_cs-wild-places.pth](https://www.dropbox.com/scl/fi/51se5akdyg35xy2dsrosj/logg3dnet_cs-wild-places.pth?rlkey=4nvvp8gw656wdbj3081jzcn0i&st=n5ytpnzc&dl=0) |
199
-
200
- ## Evaluation
201
-
202
- To evaluate the pretrained models run the following commands:
203
-
204
- ```
205
- cd eval
206
-
207
- # To evaluate HOTFormerLoc trained on CS-Wild-Places
208
- python pnv_evaluate.py --config ../config/config_cs-wild-places.txt --model_config ../models/hotformerloc_cs-wild-places_cfg.txt --weights ../weights/hotformerloc_cs-wild-places.pth
209
-
210
- # To evaluate HOTFormerLoc trained on Wild-Places
211
- python pnv_evaluate.py --config ../config/config_wild-places.txt --model_config ../models/hotformerloc_wild-places_cfg.txt --weights ../weights/hotformerloc_wild-places.pth
212
-
213
- # To evaluate HOTFormerLoc trained on CS-Campus3D
214
- python pnv_evaluate.py --config ../config/config_cs-campus3d.txt --model_config ../models/hotformerloc_cs-campus3d_cfg.txt --weights ../weights/hotformerloc_cs-campus3d.pth
215
-
216
- # To evaluate HOTFormerLoc trained on Oxford RobotCar
217
- python pnv_evaluate.py --config ../config/config_oxford.txt --model_config ../models/hotformerloc_oxford_cfg.txt --weights ../weights/hotformerloc_oxford.pth
218
- ```
219
-
220
- Below are the results for all evaluated models on CS-Wild-Places:
221
-
222
- ![CS-Wild-Places_baseline](media/dataset_cswp_baseline.png)
223
- *Comparison of SOTA on CS-Wild-Places Baseline evaluation set.*
224
-
225
- ![CS-Wild-Places_unseen](media/dataset_cswp_unseen.png)
226
- *Comparison of SOTA on CS-Wild-Places Unseen evaluation set.*
227
-
228
- See the paper for full results and comparison with SOTA on all datasets.
229
 
230
  ## Acknowledgements
231
 
232
- Special thanks to the authors of [MinkLoc3Dv2](https://github.com/jac99/MinkLoc3Dv2) and [OctFormer](https://github.com/octree-nn/octformer) for their excellent code, which formed the foundation of this codebase. We would also like to thank the authors of [Wild-Places](https://csiro-robotics.github.io/Wild-Places/) for their fantastic dataset which serves as the base that CS-Wild-Places is built upon.
 
1
  # CS-Wild-Places: Large-Scale 3D Dataset for Lidar Place Recognition Across Ground and Aerial Views
2
 
3
+ The dataset is published as a contribution of our CVPR paper titled:
4
  **HOTFormerLoc: Hierarchical Octree Transformer for Versatile Lidar Place Recognition Across Ground and Aerial Views**, CVPR 2025 by *Ethan Griffiths, Maryam Haghighat, Simon Denman, Clinton Fookes, and Milad Ramezani*\
5
  [[**Website**](https://csiro-robotics.github.io/HOTFormerLoc)] <!-- [[**Paper**](https://cvpr.thecvf.com)] --> [[**arXiv**](https://arxiv.org/abs/2503.08140)] <!-- [[**Video**](https://youtube.com)] --> [[**CS-Wild-Places Dataset**](https://data.csiro.au/collection/csiro:64896)] [[**CS-Wild-Places README**](https://github.com/csiro-robotics/HOTFormerLoc/blob/main/media/CS_Wild_Places_README.pdf)]
6
 
7
+ [**CS-Wild-Places**](https://data.csiro.au/collection/csiro:64896), is a 3D cross-source dataset featuring point cloud data from aerial and ground lidar scans captured in four dense forests. Point clouds in CS-Wild-Places contain representational gaps and distinctive attributes such as varying point densities and noise patterns, making it a challenging benchmark for cross-view localisation in the wild.
8
 
9
  ![CS-Wild-Places](media/CSWildPlaces_overview.png)
10
  *CS-Wild-Places dataset. (Top row) birds eye view of aerial global maps from all four forests.
11
  (Bottom row) sample ground and aerial submap from each forest.*
12
 
13
+ In our paper, we demonstrated that HOTFormerLoc achieves a top-1 average recall improvement of 5.5% – 11.5% on the CS-Wild-Places benchmark. Furthermore, it consistently outperforms SOTA 3D place recognition methods, with an average performance gain of 4.9% on well established urban and forest datasets. Please check out our paper for more information.
 
14
  <!-- ![Hero Figure](media/radar_plot.svg) -->
15
  <img src="media/radar_plot.svg" alt="Hero Figure" width="50%" height="auto" style="display: block; margin: auto;">
16
 
17
+ **Note: If you use our dataset please cite the folowing paper.**
18
  ### Citation
19
  If you find this work useful, please consider citing:
20
  ```
 
29
  <!-- month = {todo},
30
  pages = {todo} -->
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
 
 
 
 
33
 
34
  ### CS-Wild-Places
35
  We train on our novel CS-Wild-Places dataset, introduced in further detail in our [paper](https://arxiv.org/abs/2503.08140). CS-Wild-Places is built upon the ground traversals introduced by Wild-Places, so it is required to download the Wild-Places dataset alongside our data following the instructions in the above section (generating train/test pickles for Wild-Places is not required for CS-Wild-Places, so this step can be skipped). Note that the full Wild-Places dataset must be downloaded as our post-processing utilises the full resolution submaps.
 
66
  ```
67
  Note that training and evaluation pickles are saved to the directory specified in `--root` by default.
68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
 
70
  ## Acknowledgements
71
 
72
+ We would also like to thank the authors of [Wild-Places](https://csiro-robotics.github.io/Wild-Places/) for their fantastic dataset which serves as the base that CS-Wild-Places is built upon.