GithubHelp home page GithubHelp logo

dynamic-trajectory-predictor's Introduction

Forecasting Pedestrian Trajectory from Unlabelled Training Data

This repository contains the code for the paper: Forecasting Pedestrian Trajectory from Unlabelled Training Data.

Paper: https://arxiv.org/pdf/1905.03681.pdf

Video: https://www.youtube.com/watch?v=jUTQyUjeynE

Installation

Clone Repo

git clone https://github.com/olly-styles/Dynamic-Trajectory-Predictor
cd Dynamic-Trajectory-Predictor/

Create virtual environment (recommended)

virtualenv --no-site-packages dtp
source dtp/bin/activate

Install packages

pip install -r requirements.txt

Training on JAAD

Download data

Requires data downloads from Google Drive. This can be done manually, or using gdown (below)

mkdir data && cd data
gdown https://drive.google.com/uc?id=1OuXLKrB6ItikYbnCM1yODQk2IUAmQ07y
gdown https://drive.google.com/uc?id=1mP4y-S8NEnavfGGZLCzkfw4EIpDUfJnp
unzip human-annotated.zip

Preprocess data

cd ../preprocessing/
python process_bounding_boxes_jaad.py
python compute_cv_correction_jaad.py
cd ..

Train from scratch

python train_dtp_jaad.py

Fine-tune the pre-trained model

cd data && mkdir models && cd models
gdown https://drive.google.com/uc?id=1J2VclWeEjMj7WQhTmEPhjCaza4w5PSmX
cd ..
python train_dtp_jaad.py -l ./data/models/bdd10k_rn18_flow_css_9stack_training_proportion_100_shuffled_disp.weights

Running on BDD

Yolov3

cd data
gdown https://drive.google.com/uc?id=17Fvkrtxg_NEH2edH-wEp_Po5Y777zGQJ
gdown https://drive.google.com/uc?id=1mcL-c-FT19ePFdaLu8v1rmApoLDIeGYe
unzip yolov3.zip
python process_bounding_boxes_bdd.py
python compute_cv_correction_bdd.py
python train_dtp_bdd.py

Faster-RCNN

cd data
gdown https://drive.google.com/uc?id=1SNVe9SSRYiG-6WQZpvIOl_KtxfAThG2y
gdown https://drive.google.com/uc?id=1hKbnGThFS-shggFraQMuGhl9gy0E7ylV
unzip faster-rcnn.zip
cd ../preprocessing
python process_bounding_boxes_bdd.py -d faster-rcnn
python compute_cv_correction_bdd.py -d faster-rcnn
cd ..
python train_dtp_bdd.py -d faster-rcnn

dynamic-trajectory-predictor's People

Contributors

olly-styles 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.