ruiyu0 / Retracking-by-Prediction

Code and data for "Towards Robust Human Trajectory Prediction in Raw Videos" IROS 2021
MIT License
24 stars 0 forks source link
human-trajectory-prediction multi-object-tracking pedestrian-behavior pedestrian-tracking pedestrian-trajectories trajectory-prediction

Towards Robust Human Trajectory Prediction in Raw Videos

The repository contains the code and data for "Towards Robust Human Trajectory Prediction in Raw Videos" IROS 2021.

Dataset

SDD

Download the Stanford Drone Dataset (SDD). The ~69G zip file includes the raw videos and annotations.

WILDTRACK

Download the WILDTRACK Seven-Camera HD Dataset.

Installation

The project was developed based on Python 3.7.9 and PyTorch 1.1.0. The environment can be set up via the environment.yml file:

conda env create -f environment.yml
conda activate retracking

Experiments

As an example, we show how to run the experiments on the SDD dataset.

  1. Train a prediction model

    cd retracking-by-prediction
    python train.py
  2. Detection, Tracking, Prediction, and Re-tracking

    sh run_test.sh
  3. Evaluation

    We evaluate the tracking performance via py-motmetrics. Note: we use L2 distance in meter instead of box IoU as the association metric.

Citation

If you use the code or data in your research, please cite the paper:

@inproceedings{Yu2021-Retracking,
  author    = {Rui Yu and Zihan Zhou},
  title     = {Towards Robust Human Trajectory Prediction in Raw Videos},
  booktitle = {{IEEE/RSJ} International Conference on Intelligent Robots and Systems, {IROS}},
  year      = {2021}
}

License

The project is released under the MIT License. The SORT tracking code should follow its own license (GPL-3.0).