Giter VIP home page Giter VIP logo

hrg_hsg_trajforecasting's Introduction

Heterogeneous Trajectory Forecasting via Risk and Scene Graph Learning, submitted to IEEE-TITS.

Heterogeneous trajectory forecasting is critical for intelligent transportation systems, but it is challenging because of the difficulty of modeling the complex interaction relations among the heterogeneous road agents as well as their agent-environment constraints. In this work, we propose a risk and scene graph learning method for trajectory forecasting of heterogeneous road agents, which consists of a Heterogeneous Risk Graph (HRG) and a Hierarchical Scene Graph (HSG) from the aspects of agent category and their movable semantic regions. HRG groups each kind of road agent and calculates their interaction adjacency matrix based on an effective collision risk metric. HSG of the driving scene is modeled by inferring the relationship between road agents and road semantic layout aligned by the \emph{road scene grammar}. Based on this formulation, we can obtain effective trajectory forecasting in driving situations.

image

Because of the space limitation, we only provide the model code for nuScenes dataset training and testing. The results, datasets and other dataset evaluation code can be downloaded Here(Extraction code:39hl)

RISG

We propose an interaction graph construction method based on trajectory clustering is proposed to extract the interaction characteristics between pedestrians and a risk and scene graph (RISG) learning method for heterogeneous road agent trajectory prediction is proposed. Experiments were performed on the nuScenes dataset, Apolloscape dataset, and Argoverse dataset, and the results showed a 48% improvement in FDE and a 28% improvement in ADE compared to S-STGCNN. It is proved that this method can improve the trajectory prediction accuracy of heterogeneous traffic participants.

Model

RISG model consists of 2 building blocks:
1- HSG: An interaction graph construction method based on trajectory clustering to extract the interaction features between pedestrians.
2- RISG: Presents a RIsk and Scene Graph (RISG) learning method for trajectory prediction of heterogeneous road agents.

Setup:

The code was written using python 3.8. The following libraries are the minimal to run the code:

import pytorch
import networkx
import numpy
import tqdm

or you can have everything set up by running:

pip install -r requirements.txt

Using the code:

To train a model for each data set with the best configuration as in the paper, simply run:

train.py 

To use the pretrained models at checkpoint_zc_/ :

zc_test.py

Please note: The initiation of training and testing might take a whileas as the code will pre-train and test after all the data is loaded.

hrg_hsg_trajforecasting's People

Contributors

jwfanggit avatar

Stargazers

 avatar  avatar wangdongdan  avatar  avatar Xinyu Wang avatar  avatar

Watchers

 avatar

hrg_hsg_trajforecasting's Issues

Argoverse Benchmark

Thanks for your amazing work. For Argoverse 1 dataset, have you submitted the results to the leaderboard?
Because I think the performance shown in the paper "ADE/FDE (0.85/1.12)" is better than many works in the official Argoverse 1 leaderboard.

Thanks.

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.