This is the documentation for how to use our sensor fusion frameworks with K-Radar dataset. We tested the K-Radar detection frameworks on the following environment:
- Python 3.8.13
- Ubuntu 18.04/20.04
- Torch 1.12.1+cu113
- CUDA 11.3
- opencv 4.2.0.32
- Clone the repository
git clone https://github.com/kaist-avelab/K-Radar.git
cd K-Radar
- Create a conda environment
conda create -n kradar python=3.8.13 -y
conda activate kradar
-
Install PyTorch (We recommend pytorch 1.12.1.)
-
Install the dependencies
pip install -r requirements.txt
- Build packages for Rotated IoU
cd ops
python setup.py develop
-
Unzip 'kradar_revised_label_v2_0.zip' in the 'tools/revise_label' directory.
-
Download pretrained weights of sensor-specific encoders at this link and put them all in the './pretrained' folder.
-
Download pre-processed camera images, LiDAR point clouds, and 4D Radar point clouds.
-
Link the folders of pre-processed data in the config yaml file.
- To train the model, run
python main_train_0_args.py --config ./configs/ASF_v2_0_final.yml # change v2_0 to v1_0 for the benchmark v1.0
- To evaluate the model, run
python main_cond_0_args.py --config ./configs/ASF_v2_0_final.yml --model ./pretrained/A2F_v2_0_final_10.pt # change v2_0 to v1_0 for the benchmark v1.0
- Benchmark v1.0 (narrow RoI, single class, label v1.0): Pretrained weights and logs
The reported values are
| Metric | Total | Normal | Overcast | Fog | Rain | Sleet | LightSnow | HeavySnow |
|---|---|---|---|---|---|---|---|---|
| 3D | 87.4 | 87.0 | 90.1 | 90.7 | 88.2 | 80.0 | 88.6 | 77.4 |
| BEV | 88.6 | 88.2 | 90.2 | 98.9 | 89.0 | 80.4 | 89.2 | 78.4 |
- Benchmark v2.0 (wide RoI, multiple classes, label v2.0): Pretrained weights and logs
The reported values are
(1)
| Class | Total | Normal | Overcast | Fog | Rain | Sleet | LightSnow | HeavySnow |
|---|---|---|---|---|---|---|---|---|
| Sedan | 79.3 | 78.8 | 86.1 | 93.7 | 72.9 | 74.2 | 91.2 | 65.8 |
| Bus or Truck | 60.4 | 52.7 | 77.4 | - | 8.0 | 69.2 | 87.9 | 69.1 |
(2)
| Class | Total | Normal | Overcast | Fog | Rain | Sleet | LightSnow | HeavySnow |
|---|---|---|---|---|---|---|---|---|
| Sedan | 82.5 | 81.8 | 94.9 | 98.0 | 76.2 | 81.0 | 93.8 | 69.5 |
| Bus or Truck | 70.2 | 58.3 | 81.5 | - | 8.0 | 72.2 | 96.1 | 89.6 |
Please refer to the logs for the performance of ASF with various sensor combinations (e.g., 4D Radar-only, 4D Radar + LiDAR) and strict metrics (i.e., IoU=0.5).
TODO
TODO
TODO