Giter VIP home page Giter VIP logo

socialea's Introduction

socialea

Official PyTorch code for paper "Q-EANet: Implicit social modeling for trajectory prediction via experience-anchored queries"

Overview

image

Abstract:

Accurately predicting the future trajectory and behavior of traffic participants is crucial for the maneuvers of self-driving vehicles. Many existing works employed a learning-based “encoder-interactor-decoder” structure, but they often fail to clearly articulate the relation-ship between module selections and real-world interactions. As a result, these approaches tend to rely on a simplistic stacking of attention modules. To address this issue, a tra-jectory prediction network (Q-EANet) is presented in this study, which integrates GRU encoders, MLPs and attention modules. By introducing a new explanatory rule, it makes a contribution to interpretable modeling, models the entire trajectory prediction process via an implicit social modeling formula. Inspired by the anchoring effect in decision psy-chology, the prediction task is formulated as an information query process that occurs before traffic participants make decisions. Specifically, Q-EANet uses GRUs to encode features and utilizes attention modules to aggregates interaction information for gener-ating the target trajectory anchors. Then, queries are introduced for further interaction. These queries, along with the trajectory anchors with added Gaussian noise, are then processed by a GRU-based decoder. The final prediction results are obtained through a Laplace MDN. Experimental results on the several benchmarks demonstrate the effec-tiveness of Q-EANet in trajectory prediction tasks. Compared to the existing works, the proposed method achieves state-of-the-art performance with only simple module design.

Data Preparation

The code is primarily designed for the nuScenes motion prediction dataset. To perform data preprocessing, please refer to PGP, as this work utilizes its project structure. The environment configuration is also consistent with it.

Code Implementation

Suppose that the data has undergone proper preprocessing and has been appropriately placed in their respective directory locations.

To evaluate, just run:

python evaluate.py -config [XX/configs/ant.yml] -data_root [YOURS] -data_dir [YOURS] -output_dir [YOURS] -checkpoint [XX/outputs/checkpoints/best.tar]

Citation

If you find this repository interesting and it has inspired you in certain ways, please consider citing our work:

@article{chen2023q,
  title={Q-EANet: Implicit social modeling for trajectory prediction via experience-anchored queries},
  author={Chen, Jiuyu and Wang, Zhongli and Wang, Jian and Cai, Baigen},
  journal={IET Intelligent Transport Systems},
  year={2023},
  publisher={Wiley Online Library}
}

socialea's People

Contributors

jctrp avatar

Stargazers

 avatar smart nomad avatar zachary avatar  avatar  avatar

Watchers

 avatar

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.