Giter Site home page Giter Site logo

sibozhang / trafficpredict Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 46 KB

Code for AAAI 2019 (Oral) "TrafficPredict: Trajectory Prediction for Heterogeneous Traffic-Agents"

Home Page: http://gamma.cs.unc.edu/TPredict/TrafficPredict.html

Python 100.00%
aaai apolloscape apolloscape-dataset autonomous-driving dataset lstm robotics trajectory-prediction prediction traffic-agents

trafficpredict's Introduction

TrafficPredict

Code for TrafficPredict: Trajectory Prediction for Heterogeneous Traffic-Agents (AAAI), Oral, 2019. Project Page

Introduction

To safely and efficiently navigate in complex urban traffic, autonomous vehicles must make responsible predictions in relation to surrounding traffic-agents (vehicles, bicycles, pedestrians, etc.). A challenging and critical task is to explore the movement patterns of different traffic-agents and predict their future trajectories accurately to help the autonomous vehicle make reasonable navigation decision. To solve this problem, we propose a long short-term memory-based (LSTM-based) realtime traffic prediction algorithm, TrafficPredict. Our approach uses an instance layer to learn instances' movements and interactions and has a category layer to learn the similarities of instances belonging to the same type to refine the prediction. In order to evaluate its performance, we collected trajectory datasets in a large city consisting of varying conditions and traffic densities. The dataset includes many challenging scenarios where vehicles, bicycles, and pedestrians move among one another. We evaluate the performance of TrafficPredict on our new dataset and highlight its higher accuracy for trajectory prediction by comparing with prior prediction methods.

Data preparation

The trajectory dataset consists of 53min training sequences and 50min testing sequences captured at 2 frames per second.

object counts for cars, bicycles, and pedestrians are as follows (https://arxiv.org/pdf/1811.02146.pdf): 16.2k, 5.5k, 60.1k

Sample Data: sample_trajectory.zip sample_image.zip

Full data: prediction_train.zip prediction_test.zip or

wget https://ad-apolloscape.cdn.bcebos.com/trajectory/prediction_train.zip
wget https://ad-apolloscape.cdn.bcebos.com/trajectory/prediction_test.zip

Data Structure

The folder structure of the trajectory prediction is as follows:

  1. prediction_train.zip: training data for trajectory prediction.
    • Each file is a 1min sequence with 2fps.
    • Each line in a file contains frame_id, object_id, object_type, position_x, position_y, position_z, object_length, object_width, object_height, heading.
    • There are five different object types as shown in following table. During the evaluation in this challenge, we treat the first two types, small vehicle and big vehicle, as one type (vehicle).
object_type small vehicles big vehicles pedestrian motorcyclist and bicyclist others
ID 1 2 3 4 5
  • Position is given in the world coordinate system. The unit for the position and bounding box is meter.
  • The heading value is the steering radian with respect to the direction of the object.
  • In this challenge, we mainly evaluate predicted position_x and position_y in the next 3 seconds.
  1. prediction_test.zip: testing data for trajectory prediction.
    • Each line contains frame_id, object_id, object_type, position_x, position_y, position_z, object_length, object_width, object_height, heading.

    • A testing sequence contains every six frames in the prediction_test.txt. Each sequence is evaluated independently.

How to Run

cd srnn

Train:

python train.py 

Test:

python sample.py --epoch=n 

where n is the epoch at which you want to load the saved model. (See the code to understand all the arguments that can be given to the command)

Baseline result:

Rank Method WSADE ADEv ADEp ADEb WSFDE FDEv FDEp FDEb
Baseline Trafficpredict 8.5881 7.9467 7.1811 12.8805 24.2262 12.7757 11.1210 22.7912

Publication

Depth Guided Video Inpainting for Autonomous Driving

Please cite our paper in your publications if our dataset is used in your research.

TrafficPredict: Trajectory Prediction for Heterogeneous Traffic-Agents. PDF BibTex Website

Yuexin Ma, Xinge Zhu, Sibo Zhang, Ruigang Yang, Wenping Wang, and Dinesh Manocha.

AAAI(oral), 2019

@inproceedings{ma2019trafficpredict,
  title={Trafficpredict: Trajectory prediction for heterogeneous traffic-agents},
  author={Ma, Yuexin and Zhu, Xinge and Zhang, Sibo and Yang, Ruigang and Wang, Wenping and Manocha, Dinesh},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={33},
  pages={6120--6127},
  year={2019}
}

trafficpredict's People

Contributors

sibozhang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

zhang2b

trafficpredict's Issues

作者您好,对您所使用的数据集的格式不太理解

估计您是使用apollo的轨迹数据集,您所使用的数据集在https://github.com/ApolloScapeAuto/dataset-api/tree/master/trajectory_prediction有所介绍,主要是对Data Structure的部分信息不理解(相信作者对该数据集应该理解透彻了,希望能给予点解答):
Each line in a file contains frame_id, object_id, object_type, position_x, position_y, position_z, object_length, object_width, object_height, heading. 这句话中heading是什么?还有position_x, position_y, position_z的坐标系的原点在哪以及x轴方向,y轴方向,z轴方向是哪?这个三维坐标如何转换到图片上的二维坐标?

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.