So I'm trying to implement Nvidia's end to end driving paper to simply have an agent in Carla follow the lanes. I'm trying to predict the steering angle of the car based on the RGB images from the front camera.

I'm getting and r_score of about 1.20 %

Every image in the dataset has a steering angle.

So here are plots for the distribution of steering angles.

enter image description here enter image description here

I've also augmented the images but when I run it, the car still fails to follow the lane.

I'm being wrong or should I take another approach? Thanks :)!


To answer your question no.

The term "imbalance" usually refers to classification problems. For your case, i.e. a regression problem you can only look at the distribution of your target variable.

If by "balance" you mean them having a uniform distribution, you could argue that they are, if fact imbalanced. However, I'd argue that this is not the problem here. When steering you rarely need an extreme angle, I think this dataset represents this well.

Your goal is also a bit unclear. Are you trying to "predict the steering angle" or "follow the lane"? If it is the first, I'd first suggest changing your metric. Use one that tells you actually how well you are doing, e.g. MSE, MAE.

A lot of things could be to blame for a poor performance. I don't thing the distribution of the angles is one of them.

  • $\begingroup$ Hey @Djib2011, thanks a lot! I'm getting MSE of about 0.017263 and yes I'm trying to predict the steering angle. Also, what do you mean by an extreme angle and how should I change my metric? $\endgroup$
    – Teo
    Mar 29 '20 at 13:41
  • 1
    $\begingroup$ MSE is fine. I was talking about the $r$. With "extreme angle" I was referring to the fact that most commonly you turn the steering wheel a bit, not extremely. This is reflected in the dataset, so in my opinion, it's distribution shouldn't be to blame for the "poor performance" you exhibit. $\endgroup$
    – Djib2011
    Mar 29 '20 at 14:59
  • $\begingroup$ Thanks a lot!! :) $\endgroup$
    – Teo
    Mar 29 '20 at 17:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.