Git Product home page Git Product logo

trajectron's Introduction

NOTE: A new version of the Trajectron has been released! Check out Trajectron++!

The Trajectron: Probabilistic Multi-Agent Trajectory Modeling with Dynamic Spatiotemporal Graphs

This repository contains the code for The Trajectron: Probabilistic Multi-Agent Trajectory Modeling with Dynamic Spatiotemporal Graphs by Boris Ivanovic and Marco Pavone.

Installation

First, we'll create a conda environment to hold the dependencies.

conda create --name dynstg python=3.6 -y
source activate dynstg
pip install -r requirements.txt

Then, since this project uses IPython notebooks, we'll install this conda environment as a kernel.

python -m ipykernel install --user --name dynstg --display-name "Python 3.6 (DynSTG)"

Now, you can start a Jupyter session and view/run all the notebooks with

jupyter notebook

When you're done, don't forget to deactivate the conda environment with

source deactivate

Scripts

Run any of these with a -h or --help flag to see all available command arguments.

  • code/train.py - Trains a new Trajectron.
  • code/test_online.py - Replays a scene from a dataset and performs online inference with a trained Trajectron.
  • code/evaluate_alongside_sgan.py - Evaluates the performance of the Trajectron against Social GAN. This script mainly collects evaluation data, which can be visualized with sgan-dataset/Result Analyses.ipynb.
  • code/compare_runtimes.py - Evaluates the runtime of the Trajectron against Social GAN. This script mainly collects runtime data, which can be visualized with sgan-dataset/Runtime Analysis.ipynb.
  • sgan-dataset/Qualitative Plots.ipynb - Can be used to visualize predictions from the Trajectron alone, or against those from Social GAN.

Datasets

The preprocessed datasets are available in this repository, under data/ folders (i.e. sgan-dataset/data/).

If you want the original ETH or UCY datasets, you can find them here: ETH Dataset and UCY Dataset.

trajectron's People

Contributors

borisivanovic avatar

Watchers

James Cloos 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.