deepdrive

Deepdrive Build Statusarrow-up-right

The easiest way to experiment with self-driving AI

Simulator requirements

  • Linux or Windows

  • Python 3.5+ (Recommend Miniconda for Windows)

  • 3GB disk space

  • 8GB RAM

Optional - baseline agent requirements

  • CUDA capable GPU (tested and developed on 970, 1070, and 1060's)

  • Tensorflow 1.1+ See Tensorflow install tips

Install

git clone https://github.com/deepdrive/deepdrive
cd deepdrive

Optional - Activate the Python / virtualenv where your Tensorflow is installed, then

Linux

Windows

Make sure the Python you want to use is in your PATH, then

Tip: We highly recommend using Conemuarrow-up-right for your Windows terminal

Cloud

We've tested on Paperspace's ML-in-a-Box Linux public template which already has Tensorflow installed and just requires

If you run into issues, try starting the sim directly as Unreal may need to install some prerequisetes (i.e. DirectX needs to be installed on the Paperspace Parsec Windows box). The default location of the Unreal sim binary is in your user directory under Deepdrive/sim.

Usage

If you're in PyCharm - make sure you disable the SciView in Settings > Tools > Python Scientific > Show Plots in Toolwindow

Run the baseline agent

Run in-game path follower

Record training data for imitation learning / behavioral cloning

Train on recorded data

Train on the same dataset we used

Grab the dataset

Change cameras to one of the rigs in camera_config.py

Key binds

  • Esc - Pause

  • Alt+Tab - Control other windows* ; - Toggle FPS

  • m - Toggle manual driving (control the car yourself)

  • 1 - Chase cam

  • 2 - Orbit (side) cam

  • 3 - Hood cam

  • 4 - Free cam (use WASD to fly)

  • WASD or Up, Down, Left Right - steer / throttle

  • Space - Handbrake

  • Shift - Nitro

  • H - Horn

  • L - Light

  • R - Reset

  • E - Gear Up

  • Q - Gear down

  • Z - Show mouse

  • `` - Unreal console (first press releases game input capture)

Benchmark

Agent

10 lap avg score

Weights

Deepdrive version

Baseline agent (trained with imitation learning)

2.0

*The baseline agent currently outperforms the path follower it was trained on, likely due to the slower speed the at which the baseline agent drives, resulting in lower lane deviation and g-force penalties. Interestingly, reducing the path follower speed causes it to crash at points where it otherwise loses traction and drifts, so the baseline agent has actually learned a more robust turning function than the original hardcoded path follower it was trained on.

Dataset

100GB (8.2 hours of driving) of camera, depth, steering, throttle, and brake of an 'oracle' path following agent. We rotate between three different cameras: normal, wide, and semi-truck - with random camera intrisic/extrinsic perturbations at the beginning of each episode (lap). This boosted performance on the benchmark by 3x. We also use DAgger to collect course correction data as in previous versions of Deepdrive.

  1. Ensure you have 104GB of free space

  2. Download our dataset of mixed Windows (Unreal PIE + Unreal packaged) and Linux + variable camera and corrective action recordings

    (generated with --record)

If you'd like to check out our Tensorboard training session, you can download the 13GB tfevents files herearrow-up-right, unzip, and run

Frame rate issues on Linux

If you experience low frame rates on Linux, you may need to install NVIDIA’s display drivers including their OpenGL drivers. We recommend installing these with CUDA which bundles the version you will need to run the baseline agent. Also, make sure to plugin your laptoparrow-up-right. If CUDA is installed, skip to testing OpenGL.

Tensorflow install tips

OpenGL

glxinfo | grep OpenGL should return something like:

You may need to disable secure boot in your BIOS in order for NVIDIA’s OpenGL and tools like nvidia-smi to work. This is not Deepdrive specific, but rather a general requirement of Ubuntu’s NVIDIA drivers.

Citing

DOIarrow-up-right

Bibtex

Development

To run tests in PyCharm, go to File | Settings | Tools | Python Integrated Tools and change the default test runner to py.test.

Thanks

Special thanks to Rafał Józefowiczarrow-up-right for contributing the original training code used for the baseline agent

最后更新于