Giter VIP home page Giter VIP logo

expert_traj's Introduction

ICCV 2021: Where are you heading? Dynamic Trajectory Prediction with Expert Goal Examples

This repository contains the code for the paper Where are you heading? Dynamic Trajectory Prediction with Expert Goal Examples. Accepted to ICCV 2021

Abstract: Goal-conditioned approaches recently have been found very useful to human trajectory prediction, when adequate goal estimates are provided. Yet, goal inference is difficult in itself and often incurs extra learning effort. We propose to predict pedestrian trajectories via the guidance of goal expertise, which can be obtained with modest expense through a novel goal-search mechanism on already seen training examples. There are three key contributions in our study. First, we devise a framework that exploits nearest examples for high-quality goal position inquiry. This approach naturally considers multi-modality, physical constraints, compatibility with existing methods and is nonparametric; it therefore does not require additional learning effort typical in goal inference. Second, we present an end-to-end trajectory predictor that can efficiently associate goal retrievals to past motion information and dynamically infer possible future trajectories. Third, with these two novel techniques in hand, we conduct a series of experiments on two broadly explored datasets (SDD and ETH/UCY) and show that our approach surpasses previous state-of-the-art performance by notable margins and reduces the need for additional parameters

Model

Result

SDD ADE FDE
Eval-Opt1 (Reported in Paper) 7.69 14.38
Eval-Opt2 7.51 13.21

*Update (03/28/2022)

As pointed out by others that our reported results might not be directly comparable with parallel works. We provide a modified version of our results for all datasets using the mean value of predicted GMM2d (i.e. gmm2d.mus) as follow

Change:

V_pred = gmm2d.rsample().squeeze()
To:

V_pred = gmm2d.mus.squeeze()
Dataset ADE FDE
SDD 10.49 13.21
ETH 0.3662 0.6516
HOTEL 0.1076 0.1474
ZARA1 0.1511 0.3106
ZARA2 0.1160 0.2554
UNIV 0.2017 0.4365

In this way, our model only retreieve 20 destinations (w/o sampling anything from learned models), select the best one and fill-in the midway trajectories deterministically (This is not our point but more comparable).

Running Pre-trained Models

You can run the command for SDD:

python test_sdd.py

You can run the command for ETH/UCY:

python test_ethucy.py

To switch subsets among the ETH/UCY, change the dataset_name variable in test_ethucy.py file (e.g., eth/zara1/zara2/hotel/univ)

Citation

If you find this code useful in your work then please cite

@inproceedings{he2021where,
  title={Where are you heading? Dynamic Trajectory Prediction with Expert Goal Examples},
  author={He, Zhao and Richard P. Wildes},
  booktitle = {Proceedings of the International Conference on Computer Vision (ICCV)},
  month = {Oct.},
  year={2021}
}

Acknowledgement

The dataset processing is largely from PECNET and Social-STGCNN. Many thanks to them.

Contact

Please contact He Zhao @ [email protected] if any issue.

expert_traj's People

Contributors

bamlubi avatar joehezhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

expert_traj's Issues

Checkpoint for zara2

Hi,
I can't find the checkpoint for zara2 in the file '/checkpoint_ethucy'. Would you please provide it for better reproductivity?

Thanks

Checkpoint/args for zara2&univ

Hi,
I can't find the corresponding files for zara2&univ in '/checkpoint_ethucy'. Would you please provide it for better reproductivity?

Thanks

Error happens in line 280 when running train_sdd.py

When I am running train_sdd.py, I find an error about the dimension of the data. The error is shown as follows:

WeChatbdea3d06d3a9e7498e5c3e5304612b77

And I find that there are some ndarray elements with DIFFERENT dimensions in traj_new list. For example, the dimension of traj_new[0] is (513, 20, 2), but the dimension of traj_new[4] is (512, 20, 2).

I hope you can solve this issue for me. Thank you very much.

Training code

Thanks for your work!
I was wondering if you are able to release the training code?

Supplementary Materials

Hi Author, thanks for sharing your work!

Is it possible to share the supplementary materials to your paper? I cannot find them online.

Thanks!

Unfair comparison with previous work

I think your comparison is unfair. Previous work like PEC_net only generate one trajectory based on the best of 20 destinations for computing Min_ade. However, you generate 20 trajectories based on the best of 20 destinations and then choose the best ade. I evaluate your model like PEC-net. The ade reuslt is: 13.297966124938515 (rsample) and 10.666338165054066(mean).

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.