-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The data format #2
Comments
Hi, ChauffeurNet/network/models/Dataset.py Line 203 in deddf29
About 'future_poses_regr_offset' and 'future_penalty_maps': Since the network is doing the spatial softmax at a reduced resolution, say 3x smaller, then the prediction would be coarse. To improve the prediction. For each waypoint, the network learns to predict an offset for both x and y from the argmax location. Thus each prediction of a waypoint consists of 3 feature maps. For one of them is applied a spatial softmax where we get x y. Another is the regression offset for the selected x and another one is the regression offset for the selected y. At train time the loss is computed only for the ground truth position. This is optional but since you were looking over the code, it might be of interest. ChauffeurNet/simulator/util/Path.py Line 99 in deddf29
The function is called in ChauffeurNet/network/models/Dataset.py Line 132 in deddf29
Hope my explanation helped a bit |
Thank you for your answer. I have one more question. In the pkl dataset, I see one speed and one steering for one trajectory. I mean there are several points in "future_penalty_maps" and only one speed and steering. For example, for the above data sample, I think the speed and steering data is not correct. Am I right? Thank you again for your help |
Hi! Yes you are right.. There are several points predicted using a RNN, however for the speed and steering predicition I did not attached them to the RNN. ChauffeurNet/network/models/SimpleConv.py Line 62 in deddf29
ChauffeurNet/network/models/SimpleConv.py Line 183 in deddf29
And even if I was training the network with speed prediction, I did not incorporated into the vehicle control at test time, because I had no idea how. I do not know much about control theory. I calculated the speed solely based on the waypoints using some heuristics.
I calculated the speed in the following way: I calculated the average distance between every waypoint. I observed that near an intersection they would be closer togheter, while on a simple straight road they would be far stretched. Then, I interpolated the average distance from 0 and Config.num_skip_poses * Config.max_speed (which says how far can be two waypoints in 3D) and [0, Config.max_speed]. ChauffeurNet/simulator/util/Vehicle.py Line 299 in deddf29
For the steering angle I selected two predicted waypoints, I took their coordinates on the ground plane (x, and z) and calculated the required angle that would bring the car that coordinate. ChauffeurNet/simulator/util/Vehicle.py Line 310 in deddf29
If you have any more questions, feel free to ask them. I am happy that someone took that much interest into this project. |
Thank you for your answer. I have to read the code for simulator too. For now, I focused on the dataset you provided. |
I am not very familiar with reinforcement learning. It could be doable. The simulator should be simple enough in order to have access to the entire state of the world. |
What is the sequence of 6 input matrices in the field of 'data' in the dataset? I mean the inputs and the shape of them. The size of the input in every batch is something like [64, 6, 144, 192] and when I plot it, there 6 different inputs.
Did you use a grayscale image for roadmap? I cannot differentiate between the second and third frames.
It would be great if you can explain a little about 'future_poses_regr_offset' and 'future_penalty_maps' in the dataset.
Thank you
The text was updated successfully, but these errors were encountered: