Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to build a self-driving car

Buzzvil
February 24, 2021

How to build a self-driving car

By Peter

Buzzvil

February 24, 2021
Tweet

More Decks by Buzzvil

Other Decks in Programming

Transcript

  1. for frame in range(args.frames): sensor_data = ... control_at_frame = my_tesla_3.get_control()

    # e.g. {'steer': 0.7, 'throttle': 0.3, 'brake': 0.01} sensor_data.save_to_disk(f'{frame}.png') # e.g. 000003.png
  2. Training data contains single images sampled from the video, paired

    with the corresponding steering command (1/r). Training with data from only the human driver is not sufficient. The network must learn how to recover from mistakes. Otherwise the car will slowly drift off the road. The training data is therefore augmented with additional images that show the car in different shifts from the center of the lane and rotations from the direction of the road. Bojarski, Mariusz, et al. “End to End Learning for Self-Driving Cars.” ArXiv.org, 25 Apr. 2016, arxiv.org/abs/1604.07316.
  3. Training data contains single images sampled from the video, paired

    with the corresponding steering command (1/r). Training with data from only the human driver is not sufficient. The network must learn how to recover from mistakes. Otherwise the car will slowly drift off the road. The training data is therefore augmented with additional images that show the car in different shifts from the center of the lane and rotations from the direction of the road. Bojarski, Mariusz, et al. “End to End Learning for Self-Driving Cars.” ArXiv.org, 25 Apr. 2016, arxiv.org/abs/1604.07316.
  4. Problem No data that shows how to recover from mistakes

    Solution Data augmentation In summary...
  5. Lessons Learned (or re-learned) • Open-source spreads knowledge and creates

    opportunities for all - here’s mine • EC2 is great for on-demand GPUs i.e. ML side projects • Pytorch >> TensorFlow • Machine Learning is 99% infrastructure and 1% Machine Learning • Best way to learn is to build it on your own