In Support of Uber ATG

I am a big fan of the team at Uber ATG, and especially of our friends Drew Gray and Lior Ron.

When Udacity launched the Self-Driving Car Program last summer, Otto, which has since become Uber Advanced Technologies Group, was there from the beginning.

They only had 100 people in a semi-deserted warehouse, and not a lot of engineering talent to spare. But they have always been so enthusiastic to spend time teaching students about self-driving cars.

Drew Gray, in particular, is a wonder of an engineer. Whether we need help with deep learning, or control, or tying computer vision to trajectory planning, Drew knows everything and is always excited to help Udacity students.

There’s a wrinkle at the end of one of our Computer Vision projects where we ask students to use lane lines to calculate the radius of curvature of the road. This seems like a weird thing to do, but it ultimately ties into trajectory planning. We only made the leap because Drew pointed it out to us.

Uber has received a lot of criticism recently, and maybe deservedly so. I don’t have much insight into that and you can read better analyses elsewhere.

But I know the folks at Uber ATG, and they have been great partners and great advocates for students who want to get jobs working on autonomous vehicles. And I am grateful for that.


Now would be a good time reiterate something I haven’t posted in a while, which is that this is a personal blog. I have an agenda, which is pretty transparent in my Medium bio. But I don’t speak for Udacity, or CarND students, and certainly not for Udacity partners.

How the Unscented Kalman Filter Got Its Name

Term 2 of the Udacity Self-Driving Car Engineer Nanodegree Program is hardcore roboticsā€Šā€”ā€Šsensor fusion, localization, and control.

These topics are taught by expert engineers from Mercedes-Benz and Uber ATG, who teach the skills they actually use on the job. These are also the skills students need to know get jobs working on autonomous vehicles.

Although there’s a lot of math and programming involved, there are also some good stories. Watch this video of Dominik and Andrei, from the Mercedes-Benz Sensor Fusion Team, talking with Sebastian about how the unscented Kalman filter got its name.

And if you’d like to understand what the unscented Kalman filter is, here’s Dominik (this one involves more math):

Livestream with Boschā€Šā€”ā€ŠToday

This afternoon, at 6pm PDT, Udacity will be hosting a livestream with Angela Klein of Bosch.

Bosch is the world’s largest automotive supplier, and a hiring partner that wants to employ lots of Udacity Self-Driving Car students!

Angela is a real live wire and a lot of fun to be around.

Tune in to hear what it takes to break into one of the best companies in the automotive industry!

https://youtu.be/rIec-e14DrEand

Udacity Students on Computer Vision and World Travel

If you want to explore different areas of computer vision, you should check out these awesome posts by Udacity students on different ways to use OpenCV to find lane lines.

And if you want to learn about the Udacity Self-Driving Car Engineer Nanodegree Program, there’s a post on that, too!

Plus a post on world travel, for good measureĀ šŸ™‚

The Udacity Self Driving Car Nanodegreeā€Šā€”ā€ŠTermĀ 1

Arnaldo Gunzi

Upon completing all of his Term 1 projects, Arnaldo wrote a high-level overview of all of the projects, and reflected on what he learned:

ā€œIt had a very practical focus: theory enough to understand the core concepts, and then, the practical application. It is a reason why it requires a lot of background. It is not a course on basic python, or basic neural networks, but how to apply it in real cases.ā€

Advanced Lane FindingĀ Project

Sujay Babruwad

Sujay has an incredibly thorough analysis of his computer vision pipeline for lane-finding, including a great debugging tool:

ā€œThis project involves fine tuning of lot of parameters like color thresholding, gradient thresholding values to obtain the best lane detection. This can be trickier if the pipeline fails for few video frames. To efficiently debug this I had to build a frame that captures multiple stages of the pipeline, like the color transformation, gradient thresholding, line fitting on present and averaged past frames.ā€

Self-Driving Car Engineer Diaryā€Šā€”ā€Š6

Andrew Wilkie

Andrew has posts fun images from his lane-finding pipeline, but what really caught my eye was his analysis of Udacity’s Career Services:

ā€œThe SDC Engineer course emphasises job readiness and the Udacity team provides an excellent Careers Service built right in. We were asked to search for an advertised job that interested us, provide a resume tailored to either Entry Level, Prior Experience or Career Change and the associated Cover Letter. For a ā€˜career changer’ like me, I was surprised by the amount of self-reflection this caused.ā€

10 weeks, 3 countries and 5 self-driving carĀ projects

Morgane LUSTMAN

Morgane is completing CarND while on a nine-month world tour, starting in Ecuador!

ā€œOur next stop was Cuenca, Ecuador, where my fiance’s immediate family lives. I had an amazing time there, visiting the city and Cajas National Park. The only issue is that people did not understand why I was spending so much time on my laptop! They expected me to be free all the time since I was on holidays. I had set up a routine where I’d work for a few hours in the morning while waiting for people to get up and at night. After explaining to them what my goal was and showing them what I was doing, they were definitely more understanding. They got particularly interested when I showed them how I had trained a neural network to drive a car in a simulator, and how I used computer vision and machine learning to recognize lanes and other vehicles on the road.ā€

Temporal Smoothing to Remove Jitter in Detected LaneĀ Lines

Liam Bowers

Liam took the introductory Udacity Lane-Finding Project and optimized it:

ā€œI created a buffer to store the slope and y-intercept values for each line detected in the last N frames. The actual line drawn on the current frame is simply the average slope/intercept of all these lines. By continuously pushing the latest detected line onto this buffer and simultaneously dropping the oldest line, I can calculate a rolling mean of the lines over time, or what I call ā€œtemporal smoothingā€.ā€

Working at NVIDIA

One of my favorite parts of the Udacity Self-Driving Car Engineer Nanodegree Program is the tremendous partners that are supporting us in training autonomous vehicle engineers.

The very first partner to sign up was NVIDIA. The NVIDIA team is super-excited about the Udacity Nanodegree Program and is actively interviewing students in the program, even before they graduate.

If you’d like to learn more about how NVIDIA drives autonomous vehicle technology, watch the video we made with them:

Udacity Students Explain Kalman Filters, Mini AVs, and Computer Vision

Here are some great explanatory posts from Udacity Self-Driving Car students about Kalman filters, computer vision, and how to build a mini autonomous vehicle.

Kalman filter: Intuition and discrete case derivation

Vivek Yadav

Vivek has transposed some of the notes from his Advanced Controls course at SUNY-Stony Brook. These notes are great for understanding the intuition of how Kalman filters reduce uncertainty:

ā€œThis process of combining system dynamics with state measurements is the underlying principle of Kalman filters. Kalman filters provide good estimation properties and are optimal in the special case when the process and measurement follow a Gaussian distributions.ā€

Vehicle Detection and Distance Estimation

Milutin N. Nikolic

Milutin provides a clear and thorough explanation of his pipeline for detecting vehicles using HOG and Linear SVM:

ā€œThe goals/steps of this project are the following:

Extract the features used for classification

Build and train the classifier

Slide the window and identify car on an image

Filter out the false positives

Calculate the distance

Run the pipeline on the videoā€

Vehicle Detection and Tracking using ComputerĀ Vision

Arnaldo Gunzi

I like the intuitive explanation that Arnaldo provides for the histogram of oriented gradients (HOG) algorithm:

ā€œThe HOG extractor is the heart of the method described here. It is a way to extract meaningful features of a image. It captures the ā€œgeneral aspectā€ of cars, not the ā€œspecific detailsā€ of it. It is the same as we, humans, do: in a first glance, we locate the car, not the make, the plate, the wheel, or other small detail.

HOG stands for ā€œHistogram of Oriented Gradientsā€. Basically, it divides an image in several pieces. For each piece, it calculates the gradient of variation in a given number of orientations.ā€

Toy Autonomous Car

Srikanth Pagadala

I love the mini autonomous vehicle that Shrek built, and especially I love that he trained a deep neural network so that the car react to traffic signs!

ā€œdriver.pyā€Šā€”ā€Šis the heart of the project. It includes the image processing pipeline that identifies the traffic sign from the camera by using the previously trained DNN and then send appropriate driving control signals to the car.ā€

Advanced Lane Linesā€Šā€”ā€ŠChallenge VideosĀ Try

Alena Kastsiukavets

Alena went beyond the minimum requirements for the Advanced Lane Finding Project, and she got her computer vision pipeline to work on the challenge video:

ā€œWhen the first line was identified successfully, I use line equation with margin as an area to search for the next line. No need to do Sliding Window Search again.ā€

Anthony Levandowski, Force of Nature

Source: AsianetĀ News

If you’re looking for a weekend longread, I recommend ā€œFury Road: Did Uber Steal the Driverless Future from Googleā€, written by Max Chafkin and Mark Bergen in Bloomberg.

Although the headline is about Uber and Google, the article is really about current Uber executive, and former Google executive, Anthony Levandowski.

The article is a kind of mini-autobiography of Levandowski, with a particular emphasis on the latest stages in his careerā€Šā€”ā€ŠGoogle (now Waymo), then Otto, then Uber Advanced Technologies Group.

The article doesn’t take a strong position on the merits of Google’s lawsuit against Uber and Levandowski. It’s more useful as background information on some of the most important individuals and companies in the industry.

Before I drop in some quotes, I should mention that I have a number of connections to people who appear in the article. My boss, Sebastian Thrun, launched the Google Self-Driving Car program. The article doesn’t quote him, but he does appear in a few cameos. Additionally, Otto, and now Uber ATG, has been a terrific partner of the Udacity Self-Driving Car Engineer Nanodegree Program. I’ve met Levandowski briefly, and he seems like good people.

Here are some of the quotes that stuck with me:

ā€œAt 16 he started a web design firm that a former colleague says made him a millionaire by the end of high school.ā€

ā€œGhostrider, his self-balancing, self-driving motorcycle, was the only two-wheel vehicle in the contest [the 2004 DARPA Challenge].ā€

ā€œAnthony is a rogue force of nature,ā€ says a former Google self-driving car executive. ā€œEach phase of his Google career he had a separate company doing exactly the same work.ā€ According to two former Google employees, founders Page and Sergey Brin tolerated Levandowski’s freelancing because they saw it as the fastest way to make progress. Google’s car team embraced Levandowski’s nature, too. The attitude, says a former colleague, was ā€œhe’s an asshole, but he’s our asshole.ā€

Read the whole thing.

Udacity Students on Computer Vision and Deep Learning

Here are five Udacity Self-Driving Car students that went above and beyond the project requirements by using trigonometry, color spaces, dashcams, buffers, and teaching other students.

Alright Squares; Let’s Talk Triangles

Andrew Hogan

Andrew digs way back into high school trigonometry to investigate the relationship between the multiple cameras used in the Behavioral Cloning Project. The result is a pretty awesome run:

ā€œAs the car is making a stronger turn from the center angle, it can be safely assumed that the distance between the center camera and its goal (point A) is shrinking in relation to when point A was a significant distance away from the carā€Šā€”ā€Šwhen steering angle D was 0. This can easily be seen in how far away the most distant center point on the road is when the car is driving straight versus when it is in a 25 degree turn. After getting tired of manually calculating SOH CAH TOA/law of cosines and sines over and over again, I wrote a couple python scripts to chart out what the change in the angle would be given a center angle and a distance between each camera along with a distance to the goal at 0 degrees and the distance to the goal at the given angle.ā€

Finding Lane Lines with Colour Thresholds

Joshua Owoyemi

Joshua is a Nigerian PhD student at a Japanese university, making him a perfect example of Udacity’s goal of democratizing education. He also does a terrific job experimenting with various color spaces for isolating lane lines:

ā€œWe know that white is represented by (255,255,255) in both RGB and HSL colour space, but we have to ascertain the values for the yellow lane colour. To do this, I pulled out colour picker from the Inkscape software, just to have a visual representation.ā€

My Dashcam And My Lane Finding Algorithm

Chris Edwards

Chris bought a dashcam and super-imposed his lane-finding algorithm on one of his regular routesā€Šā€”ā€Šup the 5 in San Diego:

ā€œI found it eerily calming to safely watch a drive I do way too often. It’s like the difference between watching a horse and being dragged behind one. The video starts just after what I believe to be the most dangerous on-ramp in the world. Having survived that, we can check out the camera, my driving, and my algorithm’s ability to find lane lines.ā€

CarND Project 1: Lane Lines Detectionā€Šā€”ā€ŠA CompleteĀ Pipeline

Kirill Danilyuk

Kirill goes way beyond the requirements in his initial lane-finding project, and builds a computer vision pipeline that can identify lanes in all sorts of conditions. In particular, he develops a nice stability heuristic:

ā€œLane lines stability. This is an important issue to be addressed. There are several stabilization techniques I used:

1. Buffers. My lane line objects memorize N recent states and update the buffer itself by inserting a line state from the current frame.

2. Smarter lane line state updates. If we still get noisy data after our filtering efforts, line fitting can easily go wrong. If we see that the estimated slope of the fitted line from the current frame differs too much from the buffer’s average, we need to treat this line more conservatively. For this very purpose, I created DECISION_MAT, which is a simple decision matrix on how to combine current line position and buffer’s average position.ā€

Teaching a car to drive with deepĀ learning

Robin Stringer

Robin has an easy-to-follow writeup of my sequence of videos demonstrating an iterative approach to completing the Behavioral Cloning Project. Start with some basic data, normalize it, augment it, add side cameras, and keep going:

ā€œThis is the stage at which the car began to make it around the track successfully for me. The behavioral cloning project is a great lesson in the fun and value in experimentation when working with deep learning. Altering model architecture and parameters help us build an intuition of how convolutions, drop out layers and subsamples work together to make a useful model.ā€

Udacity Students on Deep Learning, Hiring, and CarND

Five Udacity students muse about deep learning, hiring, and the Self-Driving Car Program.

Behavioral Cloningā€Šā€”ā€ŠSelf-Driving Car Simulation

Jonathan Mitchell

Jonathan’s post has a really nice walkthrough of his behavioral cloning project, including a visual explanation of the data pre-processing pipeline:

ā€œOur data comes in as 160 x 320 x 3 RGB images. I used several preprocessing techniques to augment, transform, and create more data to give my network a better chance at generalizing to different track features.ā€

Vehicle tracking using a support vector machine vs.Ā YOLO

Kaspar Sakmann

Kaspar has a terrific comparison of vehicle detection pipelines using standard computer vision, compared with a deep learning solution using YOLO:

ā€œA forward pass of an entire image through the network is more expensive than extracting a feature vector of an image patch and passing it through an SVM. Hoever, this operation needs to be done exactly once for an entire image, as opposed to the roughly 150 times in the SVM+HOG approach. For generating the video above I did no performance optimization, like reducing the image or defining a region of interest, or even training specifically for cars. Nevertheless, YOLO is more than 20x faster than the SVM+HOG and at least as accurate.ā€

Five Skills Self-Driving Companies Need

Caleb Kirksey

Caleb put together an awesome list of autonomous vehicle skills, and which companies are looking for them:

ā€œThe one constant in all of the postings is that experience with programming in C++ is a highly sought attribute for self-driving companies. Since performance is so vital for any code running on a real time system, it’s necessary to use a language that can be compiled to machine code for speed.ā€

Machine versus human learning in traffic sign classification

Arnaldo Gunzi

Arnaldo has a fun comparison of how machine learning compares to human learning, specifically applied to the Traffic Sign Classifier Project:

ā€œOverfit: the guy who has a perfect grade in school, in all subjects, but outside school knows nothing in real world. Or someone who has a phD in nuclear advanced theoretical gravitational quantum physics, but works as a waiter in a restaurant, because his knowledge is so specific it has no real world application.ā€

Self-Driving Car Engineer Diaryā€Šā€”ā€Š7

Andrew Wilkie

Andrew has a generous assessment of Term 1 of CarND:

ā€œā€œAmazing projects. Steep learning curve. Strong student community. Incredibly supportive and adaptive Udacity staff. Be prepared to commit 2–3 times estimated 10 hours per week to complete Term 1 successfully as projects encourage experimentation. Now to catch-up on sleep before the start of Term 2 on 24/Mar/2017.ā€

Bosch Will Package NVIDIA Drive PX

Bosch will be packaging the NVIDIA Drive PX platform for use by automotive manufacturers, which is a huge win for the NVIDIA automotive group.

The automotive supply chain is highly-structured, with Tier 2 suppliers (like NVIDIA) providing specialized products to Tier 1 suppliers (like Bosch) who package them as automotive-grade components that automotive manufacturers (like Mercedes-Benz or BMW) can use.

One of the big challenges from NVIDIA and Intel and any other chipmaker breaking into the automotive space is how to take their incredible technology and fit it into the automotive supply chain, with all of the safety and reliability checks that entails.

Bosch solves that manufacturing and distribution problem for NVIDIA.