Giter Site home page Giter Site logo

xrenaa / safety-aware-motion-prediction Goto Github PK

View Code? Open in Web Editor NEW
56.0 8.0 4.0 50 KB

[ICCV2021] Safety-aware Motion Prediction with Unseen Vehicles for Autonomous Driving

Jupyter Notebook 42.50% Python 57.50%
autonomous-driving motion-prediction deep-learning

safety-aware-motion-prediction's Introduction

Safety-aware Motion Prediction with Unseen Vehicles for Autonomous Driving

Safety-aware Motion Prediction with Unseen Vehicles for Autonomous Driving
Xuanchi Ren, Tao Yang, Li Erran Li, Alexandre Alahi, and Qifeng Chen
ICCV 2021

[Paper] [Supplementary material]

Recent Updates

โœ… Update data preprocessing code
โœ… Update model
๐Ÿ”ฒ Training script

Installation

Cloning

  1. Clone this repository with the following command:
git clone https://github.com/xrenaa/Safety-Aware-Motion-Prediction.git
cd experiments/nuScenes
git clone https://github.com/nutonomy/nuscenes-devkit.git
git checkout 12fb09169eb8ebf04bc39a30cd50334215769c3e
  1. Replace experiments/nuScenes/nuscenes-devkit/python-sdk/nuscenes/prediction/input_representation/static_layers.py with the file Here.

Environment Setup

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

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

Data Setup

nuScenes Dataset

  1. Download the nuScenes dataset (this requires signing up on their website). Extract the downloaded zip file's contents and place them in the experiments/nuScenes directory. Then, download the map expansion pack (v1.2) and copy the contents of the extracted maps folder into the experiments/nuScenes/maps folder. Eventually you should have the following folder structure:
experiments/nuscenes
    samples	        -	Sensor data for keyframes.
    sweeps	        -	Sensor data for intermediate frames.
    maps	        -	Folder for all map files: rasterized .png images and vectorized .json files.
    v1.0-trainval	-	JSON tables that include all the meta data and annotations.
    process_data.py	-	Our provided data processing script.
  1. Finally, process them into a data format that our model can work with.
cd experiments/nuScenes

# For the tranval nuScenes dataset, use the following
python process_data.py --data ../nuScenes --split train --img_size 128
python process_data.py --data ../nuScenes --split train_val --img_size 128
python process_data.py --data ../nuScenes --split val --img_size 128

We provide a notebook to visualize the processed data.

Citation

@inproceedings{ren2021unseen,
  title   = {Safety-aware Motion Prediction with Unseen Vehicles for Autonomous Driving},
  author  = {Ren, Xuanchi, and Yang, Tao, and Li, Li Erran, and Alahi, Alexandre, and Chen, Qifeng},
  booktitle = {ICCV},
  year    = {2021}
}

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.