CwwwwS / end_to_end_self_driving_car

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

end_to_end_self_driving_car

This is the code for https://www.bilibili.com/video/BV1NT4y1L7ki?spm_id_from=333.999.0.0

# Use TensorFlow without GPU
conda env create -f environments.yml 

# Use TensorFlow with GPU
conda env create -f environment-gpu.yml

Usage

Run the pretrained model

Start up the Udacity self-driving simulator, choose a scene and press the Autonomous Mode button. Then, run the model as follows:

python drive.py model.h5

To train the model

You'll need the data folder which contains the training images.

python model.py

This will generate a file model-<epoch>.h5 whenever the performance in the epoch is better than the previous best. For example, the first epoch will generate a file called model-000.h5.

Credits

This code is attributed to https://github.com/architsave/How_to_simulate_a_self_driving_car-master . I just made a little adjustment

About


Languages

Language:Python 84.6%Language:Jupyter Notebook 15.4%