• Stars
    star
    137
  • Rank 266,121 (Top 6 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created about 6 years ago
  • Updated about 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A End to End CNN Model which predicts the steering wheel angle based on the video/image

Self Driving Car (End to End CNN/Dave-2)

alt img
Refer the Self Driving Car Notebook for complete Information

  • Used convolutional neural networks (CNNs) to map the raw pixels from a front-facing camera to the steering commands for a self-driving car. This powerful end-to-end approach means that with minimum training data from humans, the system learns to steer, with or without lane markings, on both local roads and highways. The system can also operate in areas with unclear visual guidance such as parking lots or unpaved roads.
  • The system is trained to automatically learn the internal representations of necessary processing steps, such as detecting useful road features, with only the human steering angle as the training signal. We do not need to explicitly trained it to detect, for example, the outline of roads.
  • End-to-end learning leads to better performance and smaller systems. Better performance results because the internal components self-optimize to maximize overall system performance, instead of optimizing human-selected intermediate criteria, e. g., lane detection. Such criteria understandably are selected for ease of human interpretation which doesnโ€™t automatically guarantee maximum system performance. Smaller networks are possible because the system learns to solve the problem with the minimal number of processing steps.
  • It is also called as DAVE-2 System by Nvidia

Watch Real Car Running Autonoumously using this Algorithm https://www.youtube.com/watch?v=NJU9ULQUwng

A TensorFlow/Keras implementation of this Nvidia paper with some changes.

Conclusions from the paper

  • This demonstrated that CNNs are able to learn the entire task of lane and road following without manual decomposition into road or lane marking detection, semantic abstraction, path planning, and control.The system learns for example to detect the outline of a road without the need of explicit labels during training.
  • A small amount of training data from less than a hundred hours of driving was sufficient to train the car to operate in diverse conditions, on highways, local and residential roads in sunny, cloudy, and rainy conditions.
  • The CNN is able to learn meaningful road features from a very sparse training signal (steering alone).
  • More work is needed to improve the robustness of the network, to find methods to verify the robust- ness, and to improve visualization of the network-internal processing steps.

Demo

alt img

How to Use

Download Dataset by Sully Chen: [https://drive.google.com/file/d/0B-KJCaaF7elleG1RbzVPZWV4Tlk/view] Size: 25 minutes = 25{min} x 60{1 min = 60 sec} x 30{fps} = 45,000 images ~ 2.3 GB

Note: You can run without training using the pretrained model if short of compute resources

Use python3 train.py to train the model

Use python3 run.py to run the model on a live webcam feed

Use python3 run_dataset.py to run the model on the dataset

To visualize training using Tensorboard use tensorboard --logdir=./logs, then open http://0.0.0.0:6006/ into your web browser.

Other Larger Datasets you can train on

(1) Udacity: https://medium.com/udacity/open-sourcing-223gb-of-mountain-view-driving-data-f6b5593fbfa5
70 minutes of data ~ 223GB
Format: Image, latitude, longitude, gear, brake, throttle, steering angles and speed
(2) Udacity Dataset: https://github.com/udacity/self-driving-car/tree/master/datasets [Datsets ranging from 40 to 183 GB in different conditions]
(3) Comma.ai Dataset [80 GB Uncompressed] https://github.com/commaai/research
(4) Apollo Dataset with different environment data of road: http://data.apollo.auto/?locale=en-us&lang=en

Some other State of the Art Implementations

Implementations: https://github.com/udacity/self-driving-car
Blog: https://medium.com/udacity/teaching-a-machine-to-steer-a-car-d73217f2492c

Credits & Inspired By

(1) https://github.com/SullyChen/Autopilot-TensorFlow
(2) Research paper: End to End Learning for Self-Driving Cars by Nvidia. [https://arxiv.org/pdf/1604.07316.pdf]
(3) Nvidia blog: https://devblogs.nvidia.com/deep-learning-self-driving-cars/
(4) https://devblogs.nvidia.com/explaining-deep-learning-self-driving-car/

More Repositories

1

Document-Boundary-Detection

Document Boundary & Canny Edge Detection using OpenCV
Python
59
star
2

Wikipedia-Articles-with-temporal-timeline

[Machine Learning | NLP] Getting the articles from Wikipedia and creating a temporal timeline of the sentences
Jupyter Notebook
6
star
3

Face-Recognition

Face Recognition using deep metric learning
Python
5
star
4

Credit-Card-Fraud-Detection

(Machine Learning & Data Analysis) Exploratory Data Analysis and TSNE plots on Credit Card Fraud Detection Dataset
Jupyter Notebook
4
star
5

Color-Quantization-using-K-Means

Color Quantization using K-Means(Machine learning)
HTML
3
star
6

Crypto-Tracker

Crypto Currency Tracking App built using PyQT 4 GUI Framework
Python
3
star
7

Computer-Vision-Playground

Basic Programs in Computer Vision (will be updated)
Python
1
star
8

SummaRise---Text-Summarization

Understanding about Text Summarization and Implementing various Models used for Text Summarization
Python
1
star
9

Courses-Unified

Courses Unified (Ionic 3 Application) is about finding for MOOCโ€™s from various MOOCโ€™s websites like Coursera, edX, Udemy, Udacity, TreeHouse, etc. It will help users to find the best and most popular courses aggregating it from various websites. It ranks courses according to the users rating and upvotes. User can also add the course to enrolled or in the wishlist. User can filter the courses according to the price, date and websites. User can also ask to directly navigate to the MOOC Course Page and buy the Course from within the app.
TypeScript
1
star