imitation-learning icon indicating copy to clipboard operation
imitation-learning copied to clipboard

Model & training question

Open aranga81 opened this issue 6 years ago • 6 comments

Hi, I have the following questions. Really appreciate if anyone can answer..!!

  • Firstly I understand the control commands are like one hot encoded inputs for--> High level command, int ( 2 Follow lane, 3 Left, 4 Right, 5 Straight). How are these generated - carla outputs these automatically? or are they looking at the steer values to output these ?
  • speed prediction auxiliary output - really cant get my head around why this is helping longitudinal performance?
  • Training: do we run the backprop only on the active branch for each frame ?

aranga81 avatar May 30 '18 18:05 aranga81

Hey @aranga81

  • High-level commands will be generated by a local planner (A* in this case).
  • Although I don't know why this can be helpful, they mentioned that this speed output practically helped in a better and smooth driving particularly for turns. So, there is not any logical proof available.
  • As far as I understood, the answer is yes. There is a mask variable which is a determiner for that active branch. So, the deep learning framework such as Tensorflow can automatically understand how to backpropagate on that specific branch.

mvpcom avatar May 31 '18 03:05 mvpcom

hey @mvpcom Thanks for your reply ! So for training, control commands (one-hot encoded) should be inputs? and outputs --> active branch+speed_prediction ?

  • Any idea how the loss function is tailored for this ?

aranga81 avatar May 31 '18 16:05 aranga81

Yes @aranga81, the control commands is an input. If you are going to re-train the model, maybe this can help as an initializer code. I will do my best to fix the current issues as soon as possible. You are free to pull any changes. However, for the loss function, you only need to define an additive loss function for all branches weighted by that mask variable. Reading this issues, 1, 2, 3, and 4 also will be helpful.

mvpcom avatar May 31 '18 20:05 mvpcom

@mvpcom @felipecode for tweaked conditional imitation learning i am generating my own carla datasets - Can you help me with how the high level control command from the simulator can be recorded ?

aranga81 avatar Jun 14 '18 23:06 aranga81

Exactly my questions as above.. how are the high level commands generated ?Are we supposed to use the A* algorithm in this case? If so, what's the input to this?

SoumiDas avatar Sep 13 '18 01:09 SoumiDas

@mvpcom @felipecode for tweaked conditional imitation learning i am generating my own carla datasets - Can you help me with how the high level control command from the simulator can be recorded ?

Same question here. Can anyone please help with this?

MalekWahidi avatar Jan 01 '24 20:01 MalekWahidi