Git Product home page Git Product logo

s2tnet's Introduction

s2tnet

  • This is the official implementation of the paper: S2TNet: Spatio-Temporal Transformer Networks for Trajectory Prediction in Autonomous Driving (ACML 2021).

Quick Start

Requires:

  • adamod==0.0.3
  • ConfigArgParse==1.5.2
  • numpy==1.19.0
  • PyYAML==6.0
  • scipy==1.7.1
  • tensorboardX==2.5.1
  • torch==1.9.0
  • tqdm==4.31.1

1) Install Packages

 pip install -r requirements.txt

2) Dataset

We use Apollo Scape Trajectory dataset

Performance

Results on Apollo Scape:

WSADE ADEv ADEp ADEb WSFDE FDEv FDEp FDEb
1.1679 1.9874 0.6834 1.7000 2.1798 3.5783 1.3048 3.2151

S2TNet

Training & Evaluation

You can train our model by below command:

python3 main.py --config ./config/apolloscape/train.yaml

Testing & Uploading to Leaderboard

You can test our model by below command:

python3 main.py --config ./config/apolloscape/test.yaml

The result file, named as prediction_result.zip, is generated after testing phase. Then, you can directly upload the file to (http://apolloscape.auto/trajectory.html) to obtain the official results.

Citation

If you find our work useful for your research, please consider citing the paper:

@inproceedings{pmlr-v157-chen21a,
  title = 	 {S2TNet: Spatio-Temporal Transformer Networks for Trajectory Prediction in Autonomous Driving},
  author =       {Chen, Weihuang and Wang, Fangfang and Sun, Hongbin},
  booktitle = 	 {Proceedings of The 13th Asian Conference on Machine Learning},
  pages = 	 {454--469},
  year = 	 {2021},
  volume = 	 {157},
  month = 	 {17--19 Nov}
}

s2tnet's People

Contributors

chenghuang66 avatar

Stargazers

Huihuang Zhu avatar  avatar  avatar Yuzhen Wei avatar  avatar Brian Gyss avatar  avatar  avatar Georges Kayembe Miaka  avatar Jack avatar  avatar  avatar  avatar  avatar Zirui Li avatar  avatar ZyBird avatar Wang avatar  avatar Xinxin Zhu avatar  avatar  avatar  avatar Biao Yang avatar Sean avatar  avatar  avatar  avatar kang.lin avatar  avatar Knight avatar  avatar Isaac Kargar avatar  avatar  avatar xiaomingxi avatar

Watchers

 avatar

s2tnet's Issues

evaluation

Evaluation is no longer possible on the Apollo website. We can not get the result by using this algorithm. However, they shared an evaluation file, so, if you have your ground truth then that's possible.

About inference latency

Thank you for your excellent work. Did you conduct any tests to measure the inference latency of your model?

Question

In data_processor.py Line 103~ Line 105: 请问为什么当(abs(relative_cord[0]) > neighbor_distance) | (abs(relative_cord[1]) > neighbor_distance)时,neighbor_mask为True呢??根据物理意义不应该是当两车距离<= neighbor_distance时,即 (abs(relative_cord[0]) <= neighbor_distance) & (abs(relative_cord[1]) <= neighbor_distance) 时,neighbor_mask才为True吗?

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.