• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    Python
  • Created almost 8 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Run self-driving car agents in GTAV Universe

DeepDrive in Universe

Pretrained self-driving car models that run in GTAV / Universe

Prerequisites

Follow the env setup instructions here

Setup

git clone https://github.com/deepdrive/deepdrive-universe

Note: You will need GPU acceleration to do inference at the 8Hz that the model runs. Slower (or faster) inference may work, but is not the standard way the model is run.

Baseline model - Caffe version

Install the latest version of Caffe and download the model via

cd drivers/deepdrive
wget -O caffe_deep_drive_train_iter_35352.caffemodel https://goo.gl/sVAedm

(Work in progress) Baseline model - Tensorflow version

Thanks to Rafal jozefowicz for helping train this model

cd drivers/deepdrive_tf
wget -O model.ckpt-20048 https://goo.gl/zanx88
wget -O model.ckpt-20048.meta https://goo.gl/LNqHoj

Baseline models were trained with the standard hood camera in GTAV.

To enable the hood camera, hit v until you see something like this deepdrive load

If you see the steering wheel, change the camera settings like so: deepdrive load

In addition, set the resolution to 800x600 to minimize network I/O and enable borderless mode to avoid sending the window chrome through the network

borderless

Run the model

python main.py -d [DeepDriver|DeepDriverTF] -r vnc://<your-env-ip>:5900+15900

Sample data returned by the env

{
	"body" :
	{
		"done" : false,
		"info" :
		{
			"center_of_lane_reward" : 0,
			"distance_from_destination" : 1306.6157153344816,
			"forward_vector_x" : -0.9870644211769104,
			"forward_vector_y" : 0.15973846614360809,
			"forward_vector_z" : 0.013689413666725159,
			"game_time.day_of_month" : 6,
			"game_time.hour" : 16,
			"game_time.minute" : 8,
			"game_time.month" : 9,
			"game_time.ms_per_game_min" : 2000,
			"game_time.second" : 47,
			"game_time.year" : 2009,
			"heading" : 80.808067321777344,
			"is_game_driving" : false,
			"last_collision_time" : 1481999559,
			"last_material_collided_with" : "4201905313",
			"on_road" : true,
			"script_hook_loadtime" : 1481939095,
			"speed" : 0,
			"spin" : 0,
			"x_coord" : -2372.70068359375,
			"y_coord" : 1032.6005859375,
			"z_coord" : 195.53288269042969
		},
		"reward" : 0
	},
	"headers" :
	{
		"episode_id" : "1",
		"sent_at" : 1481999938.4742091
	},
	"method" : "v0.env.reward"
}

Directly connected machines

To connect your Windows and Ubuntu machines directly via ethernet, follow these instructions for adding the interface to Ubuntu.

Use the Netmask provided by ipconfig in Windows for your ethernet interface.

Contributors

Several people, without which, this project would not have been possible

Aitor Ruano
Alec Radford
Alex Ray
Andrej Karpathy
Andrew Gray
Brad Templeton
Catherine Olsson
Christina Araiza
Dan Van Boxel
Dario Amodei
Felipe Code
Greg Brockman
Gustavo Youngberg
Ilya Sutskever
Jack Clark
James Denney
Jeremy Schlatter
Jon Gautier
Jonas Schneider
Krystian Gebis
Lance Martin
Ludwig Pettersson
Matthew Kleinsmith
Matthew O'Kelly
Mike Roberts
Paul Baumgart
Pieter Abbeel 
Rafał Józefowicz
Tom Brown
Vicki Cheung

More Repositories

1

OSSDC-VisionBasedACC

Discuss requirments and develop code for #1-mvp-vbacc MVP (see also this channel on ossdc.org Slack)
Jupyter Notebook
100
star
2

OSSDC-Hacking-Book

Repository for the "OSSDC Hacking" book, to make it easier for everyone to get started with OSSDC platform and contribute to it. Here we will consolidate in a nice form the OSSDC related discussions from OSSDC Slack, GitHub, Medium, Twitter and other blogs.
84
star
3

OSSDC-VisionAI-Core

OSSDC Vision AI - a platform for live testing and developing of computer vision and artificial intelligence algorithms targeting robotics, home automation and autonomous vechicles
Python
80
star
4

OSSDC-SIM

OSSDC SIM - Self Driving Car Simulator based of LGSVL
C#
59
star
5

OSSDC-SIM-Demos

Demos of OSSDC SIM
Python
10
star
6

OSSDC-SmartCities

Simulations of Smart Cities from the perspective of Self Driving Cars
8
star
7

OSSDC-VisionAI-Mobile

OSSDC VisionAI Mobile
Java
5
star
8

OSSDC.github.io

Open Source Self Driving Car Initiative
HTML
5
star
9

OSSDC-Monza

Monza race track map for OSSDC-SIM
2
star
10

OSSDC-VisionAI-Datasets

Datasets for OSSDC Vision AI app
2
star
11

OSSDC-LKAS

Discuss requirments and develop code for #2-mvp-lkas MVP (see also this channel on ossdc.org Slack)
2
star
12

OSSDC-SmartCamera

Discuss requirments and develop code/hardware for #3-mvp-smart-camera MVP (see also this channel on ossdc.org Slack)
1
star
13

opensdc_exp

Open Source Self Driving Car Experimental Code to test out new algorithms
1
star
14

opensdc

Open Source Self Driving Car Code
1
star
15

DAC18-Contest-FPGA-v1

OSSDC Repository for 2018 DAC System Design Contest - FPGA - http://www.cse.cuhk.edu.hk/~byu/2018-DAC-HDC/
Tcl
1
star
16

traffic_signs_recognition

Traffic Signs Recognition Project
Jupyter Notebook
1
star
17

OSSDC-VisionAI-Results

Results for OSSDC Vision AI app
1
star
18

OSSDC-DashCamera

Repository for #4-mvp-dash-camera MVP, to build an Android dash camera app to simplify data collection (image, IMU, OBD2/CAN bus) and also to add simple ADAS features like LKAS
1
star