Skip to content

Commit e31276b

Browse files
committed
Update readme.md
1 parent 70da58a commit e31276b

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

README.md

+23-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
This repository contains the implementation of *DR-SPAAM: A Spatial-Attention and Auto-regressive Model for Person Detection in 2D Range Data* ([arXiv](https://arxiv.org/abs/2004.14079)).
1+
This repository contains the implementation of *DR-SPAAM: A Spatial-Attention and Auto-regressive Model for Person Detection in 2D Range Data*
2+
to appear in IROS'20 ([arXiv](https://arxiv.org/abs/2004.14079)).
23

34
# DR-SPAAM Detector
45
DR-SPAAM is a deep learning based person detector that detects persons in 2D range sequences obtained from a laser scanner.
@@ -9,12 +10,11 @@ Although DR-SPAAM is a detector, it can generate simple tracklets, based on its
910

1011
![](imgs/tracks.gif)
1112

12-
To interface with many robotic applications, an example ROS node is also included.
13+
To interface with many robotic applications, an example ROS node is included.
1314
The ROS node, `dr_spaam_ros` subscribes to the laser scan (`sensor_msgs/LaserScan`)
14-
and publishes detections as `geometry_msgs/PoseArray`.
15-
The topics are defined in `dr_spaam_ros/config/topics.yaml`.
16-
To use a different message defination, simply modify `_detections_to_ros_msg`
17-
method in `dr_spaam_ros/src/dr_spaam_ros/dr_spaam_ros.py`.
15+
and publishes detections as `geometry_msgs/PoseArray` and visualization markers for RViz.
16+
17+
![](imgs/rosgraph.png)
1818

1919
![](imgs/dr_spaam_ros.gif)
2020

@@ -41,6 +41,7 @@ dr_spaam
4141
│ │ ├── val
4242
├── ckpts
4343
│ ├── drow_e40.pth
44+
│ ├── drow5_e40.pth
4445
│ ├── dr_spaam_e40.pth
4546
...
4647
```
@@ -68,11 +69,16 @@ Here's a minimum example.
6869
import numpy as np
6970
from dr_spaam.detector import Detector
7071

71-
# Detector class wraps up preprocessing, inference, and postprocessing for
72-
# DR-SPAAM. Set `original_drow=True` to use the original DROW model instead.
73-
# Use `stride` to skip scan points if faster inference speed is needed.
72+
# Detector class wraps up preprocessing, inference, and postprocessing for DR-SPAAM.
73+
# Checkout the comment in the code for meanings of the parameters.
7474
ckpt = 'path_to_checkpoint'
75-
detector = Detector(ckpt, original_drow=False, gpu=True, stride=1)
75+
detector = Detector(
76+
model_name="DR-SPAAM",
77+
ckpt_file=ckpt,
78+
gpu=True,
79+
stride=1,
80+
tracking=False
81+
)
7682

7783
# set angular grid (this is only required once)
7884
ang_inc = np.radians(0.5) # angular increment of the scanner
@@ -85,7 +91,7 @@ while True:
8591
dets_xy, dets_cls, instance_mask = detector(scan) # get detection
8692

8793
# confidence threshold
88-
cls_thresh = 0.4
94+
cls_thresh = 0.2
8995
cls_mask = dets_cls > cls_thresh
9096
dets_xy = dets_xy[cls_mask]
9197
dets_cls = dets_cls[cls_mask]
@@ -128,11 +134,11 @@ Thus there is a mismatch between the numbers here and those listed in the paper.
128134
## Citation
129135
If you use DR-SPAAM in your project, please cite:
130136
```BibTeX
131-
@article{Jia2020DRSPAAM,
132-
title = {{DR-SPAAM: A Spatial-Attention and Auto-regressive
133-
Model for Person Detection in 2D Range Data}},
134-
author = {Dan Jia and Alexander Hermans and Bastian Leibe},
135-
journal = {arXiv:2004.14079},
136-
year = {2020}
137+
@inproceedings{Jia2020DRSPAAM,
138+
title = {{DR-SPAAM: A Spatial-Attention and Auto-regressive
139+
Model for Person Detection in 2D Range Data}},
140+
author = {Dan Jia and Alexander Hermans and Bastian Leibe},
141+
booktitle = {International Conference on Intelligent Robots and Systems (IROS)},
142+
year = {2020}
137143
}
138144
```

imgs/dr_spaam_ros.gif

355 KB
Loading

imgs/rosgraph.png

29 KB
Loading

0 commit comments

Comments
 (0)