hminle / car-behavioral-cloning-with-pytorch

23 stars 7 forks source link

Car Behavioral Cloning using Pytorch

Overview

I create this project after watching Siraj's video about how to simulate a self-driving car. Instead using Keras to build a model, I want to use Pytorch for the model and training.

The repo is inspired by naokishibuya. I adapt his augmentation methods.

Video demo:

Screenshot

Youtube link

Challenges:

What has been done so far

Model summary:

  (module): CarSimpleModel (
    (conv_layers): Sequential (
      (0): Conv2d(3, 24, kernel_size=(3, 3), stride=(2, 2), bias=False)
      (1): ELU (alpha=1.0)
      (2): Conv2d(24, 48, kernel_size=(3, 3), stride=(2, 2), bias=False)
      (3): MaxPool2d (size=(4, 4), stride=(4, 4), dilation=(1, 1))
      (4): Dropout (p = 0.25)
    )
    (linear_layers): Sequential (
      (0): Linear (3648 -> 50)
      (1): ELU (alpha=1.0)
      (2): Linear (50 -> 10)
      (3): Linear (10 -> 1)
    )

Notes

Training the model

generate steering

Testing the model

Dependencies

conda env create -f environments.yml