Skip to content

Implemented object detection using Tensorflow's object detection API and used it in GTA V

Notifications You must be signed in to change notification settings

PurveshBaghele/ObjectDetectionGTA5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ObjectDetectionGTA5

Implemented object detection using Tensorflow's object detection API and used it in GTA V

The only code needed is in grabscreen.py and vehicleDetection.py . For the rest of the part, follow the instructions from https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md and place the grabscreen.py and vehicleDetection.py files in research\object_detection directory.

GIF1

GIF2

SelfDrive.py file in Behavioral Cloning folder is unsed to train a Convolutional neural net with the training images acquired from Udacity's self-driving car simulator. The model is then saved with the name model3.h5 and is then used by drive.py to connect the simulator to the model.

Now, the simulator sends frames to drive.py which in turn returns the correct steering angle as an output from the model and then the car drives accordingly.

About

Implemented object detection using Tensorflow's object detection API and used it in GTA V

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published