OpenDriveLab / TCP

[NeurIPS 2022] Trajectory-guided Control Prediction for End-to-end Autonomous Driving: A Simple yet Strong Baseline.
Apache License 2.0
309 stars 40 forks source link

Code #41

Closed a1wj1 closed 11 months ago

a1wj1 commented 12 months ago

1688870451493

I haven't understood the code for generating the action yet. Could you please explain it? Thank you

penghao-wu commented 12 months ago

Hi, the code just calculates the mode of the Beta distribution specified by the alpha and beta values. And it then converts the value between [0,1] to [-1,1].