More complete and Robust evaluation of WOSAC rollouts #271
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR makes a few changes so the functions we use in the WOSAC evaluation code can have access to the original scenario_id and object_ids from the WOMD data.
This enables to evaluate any Sim Agents method using our code, by matching the scenario_ids and object_ids between the simulated rollouts and our ground truth trajectories.
It also makes the WOSAC code more readable by explicitly adding the is_track_to_predict flag.
This mostly changes functions only used in WOSAC so it shouldn't break anything.
EXCEPT for the fact that it asks to regenerate binaries, also if the CARLA maps do not have a scenario_id weird things might happen. I didn't think about it yet (it should be easy to put a default value for maps that dont have a scenario_id though)