littlemountainman / selfdrive

Autopilot written in Keras for Self Driving Cars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

selfdrive

driving

Install:

sudo ./preperation/cereal/install_capnp.sh

Data

Now you need to download the commaai dataset from here you will get 10 files labeled from Chunk1.zip to Chunk10.zip. Choose one and unpack it into the data folder. In the data folder should now be folders with name 2019-0.... etc. Then you have to read them.

cd data/
python ../preperation/reader.py ./ ../unpacked_data

You can change the last argument to whereever you want to save your .npy files. So the training files. Keep in mind that you will have to remember this folder. Now the unpacked_data folder should be filled with files. Once that is done we can move onto the next step.

Training

python3 train.py ./unpacked_data/

this will give you two files once it's done. The first file "learning.h5" gets updated every epoch. The second file "final.h5" will be the final version and generated when the training is over. Both are the same at the end. They have the same weights in them.

Testing

python3 app.py  final.h5

If you encounter any issues feel free to post them. Have fun !

About

Autopilot written in Keras for Self Driving Cars


Languages

Language:Cap'n Proto 67.8%Language:Python 25.2%Language:Shell 3.0%Language:Makefile 2.2%Language:C++ 1.7%