Code Monkey home page Code Monkey logo

autoplace's Introduction

[ICRA2022] AutoPlace: Robust Place Recognition with Single-Chip Automotive Radar

demo

@article{cai2021autoplace,
  title={AutoPlace: Robust Place Recognition with Low-cost Single-chip Automotive Radar},
  author={Cai, Kaiwen and Wang, Bing and Lu, Chris Xiaoxuan},
  booktitle={2022 IEEE International Conference on Robotics and Automation (ICRA)},
  pages={3475--3481},
  year={2022},
  organization={IEEE}  
}

๐Ÿ“บ Youtube Video

๐Ÿ“– Project Page

1. Dataset preprocessing ๐Ÿ“ฅ

You may need to download nuScenes dataset (radar) from nutonomy/nuscenes-devkit.

cd autoplace/preprocess
./gene_woDTR.sh
./gene_wDTR.sh

the generated processed dataset folder should be like:

dataset
โ”œโ”€โ”€ 7n5s_xy11
โ”‚   โ”œโ”€โ”€ pcl_parameter.json
โ”‚   โ”œโ”€โ”€ img
โ”‚   โ”œโ”€โ”€ pcl
โ”‚   โ”œโ”€โ”€ rcs
โ”‚   โ”œโ”€โ”€ nuscenes_test.mat
โ”‚   โ”œโ”€โ”€ nuscenes_train.mat
โ”‚   โ”œโ”€โ”€ nuscenes_val.mat
โ”‚   โ”œโ”€โ”€ database.csv
โ”‚   โ”œโ”€โ”€ train.csv
โ”‚   โ””โ”€โ”€ test.csv
โ””โ”€โ”€ 7n5s_xy11_remove
    โ”œโ”€โ”€ ...

to save you time on downloading/preprocessing the nuScenes dataset, you may as well download my processed dataset from Dropbox and then arrange it in the above way.

2. AutoPlace ๐Ÿš—

  1. train SpatialEncoder (se)

    cd autoplace
    
    python train.py  --nEpochs=50 --output_dim=9216 --seqLen=1 --encoder_dim=256 --net=autoplace --logsPath=logs_autoplace --cGPU=0 --split=val --imgDir='dataset/7n5s_xy11/img' --structDir='dataset/7n5s_xy11'
  2. train SpatialEncoder+DPR (se_dpr)

    cd autoplace
    
    python train.py  --nEpochs=50 --output_dim=9216 --seqLen=1 --encoder_dim=256 --net=autoplace --logsPath=logs_autoplace --cGPU=0 --split=val --imgDir='dataset/7n5s_xy11_removal/img' --structDir='dataset/7n5s_xy11'
  3. train SpatialEncoder+TemporalEncoder (se_te)

    cd autoplace
    
    python train.py  --nEpochs=50 --output_dim=4096 --seqLen=3 --encoder_dim=256 --net=autoplace --logsPath=logs_autoplace --cGPU=0 --split=val --imgDir='dataset/7n5s_xy11/img' --structDir='dataset/7n5s_xy11'
  4. train SpatialEncoder+TemporalEncoder+DPR (se_te_dpr)

    cd autoplace
    
    python train.py  --nEpochs=50 --output_dim=4096 --seqLen=3 --encoder_dim=256 --net=autoplace --logsPath=logs_autoplace --cGPU=0 --split=val --imgDir='dataset/7n5s_xy11_removal/img' --structDir='dataset/7n5s_xy11'
    
  5. evaluate a model

    cd autoplace
    
    python train.py --mode='evaluate'  --cGPU=0  --split=test --resume=[logs_folder]
  6. apply RCSHR on SpatialEncoder+TemporalEncoder+DPR model (You may need to evaluate SpatialEncoder+TemporalEncoder+DPR model first): modify the path se_te_dpr in autoplace/postprocess/parse/resume_path.json to [logs_folder], then

    cd autoplace/postprocess/parse 
    
    python parse.py  --rcshr --model=se_te_dpr
  7. To generate (1) Reall@N curve, (2) PR curve, (3) F1 Score and (4) Average Precision

    cd autoplace/postprocess/vis
    
    python ablation_figure.py 
    python ablation_score.py 

3. SOTA methods โš”

autoplace's People

Contributors

ramdrop avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.