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
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
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
.
This code is attributed to https://github.com/architsave/How_to_simulate_a_self_driving_car-master . I just made a little adjustment