ndrplz/self-driving-car

How to run project 3 with my own images and control

ArtlyStyles opened this issue · 3 comments

I would like to run Project 3 - Behavioral Cloning but with my own images and control. How can I do it? It was not very clear which is the training steep, and which is the inference step. Also, what is the best way to replace the data with my own images and control? My control data also have throttle data, but I can start with just steering.

It was not very clear which is the training steep, and which is the inference step.

The training code is here. Inference step (i.e. actually driving in the simulator) is in drive.py.

Also, what is the best way to replace the data with my own images and control?

As you can see from the training code, I relied on a generator to provide training examples. This is implemented here currenty returns only the couple (image, steering_angle) but it can be modified to return the throttle too if that is available. It should be fairly easy to generate a CSV file similar to this one, but pointing to your own data. With minor code refactoring you should be able to train on your dataset.

I would like to try Udacity data first. How can I load their data?

You can record Udacity data through their simulator. If you format the CSV similar to the one in this repo, you should be able to run this code with minor modifications.