Giter VIP home page Giter VIP logo

raresim's Introduction

RareSim

Coming soon!

This is the reference implementation for our paper:

Scalable End-to-End Autonomous Vehicle Testing via Rare-event Simulation PDF

Matthew O'Kelly*, Aman Sinha*, Hongseok Namkoong*, John Duchi, Russ Tedrake

Abstract: While recent developments in autonomous vehicle technology highlight substantial progress, we lack tools for rigorous and scalable testing. Real-world testing, the de facto evaluation environment, places the public in danger, and, due to the rare nature of accidents, will require billions of miles in order to statistically validate performance claims. We implement a simulation framework that can test an entire modern autonomous driving system, including, in particular, systems that employ deep-learning based perception and control algorithms. Using adaptive importance-sampling methods to accelerate rare-event probability evaluation, we estimate the probability of an accident under a base distribution (learned from real-world data) governing standard traffic behavior. We demonstrate our framework on a highway scenario, our evaluation is 2-20 faster than naive Monte Carlo sampling methods and 10-300 times (where P is the number of processors) faster than real-world testing.

Citing

If you find this code useful in your work, please consider citing:

@inproceedings{okelly2018,
  title={Scalable End-to-End Autonomous Vehicle Testing via Rare-event Simulation},
  author={O'Kelly*, Matthew and Sinha*, Aman and Namkoong*, Hongseok and Tedrake, Russ and Duchi, John},
  booktitle={Advances in Neural Information Processing Systems},
  year={2018}
}

Dependencies

Requires:

  • docker
  • nvidia-docker2
  • A recent Nvidia GPU e.g. GTX980 or better.

Installation

The docker image essentially packages all dependencies in a safe environment. The scripts we provide will externally mount our source code, and our models, into the docker environment.

Most source code for this project is in Python and so once the docker image is built we won't need any compiling.

Docker and Nvidia-Docker

The following is all of the steps to build a docker image for RareSim from a fresh Ubuntu installation:

  1. Install Docker for Ubuntu. Make sure to sudo usermod -aG docker your-user and then not run below docker scripts as sudo
  2. Install nvidia-docker. Make sure to use nvidia-docker2 not nvidia-docker1.
sudo apt-get install -y nvidia-docker2

You can test that your nvidia-docker installation is working by running

nvidia-docker run --rm nvidia/cuda nvidia-smi

If you get errors about nvidia-modprobe not being installed, install it by running

sudo apt-get install nvidia-modprobe

and then restart your machine.

Getting the RareSim Docker Image

Coming soon

raresim's People

Contributors

amansinha avatar travelbureau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

raresim's Issues

How can I execute the simulator?

I recently found your paper while doing research on threat detection in autonomous driving.
I want to use the simulator but I could not run the code.
How can I execute the simulator?

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.