HumanCompatibleAI / overcooked_ai

A benchmark environment for fully cooperative human-AI performance.
https://arxiv.org/abs/1910.05789
MIT License
683 stars 144 forks source link

trajectory replay code #98

Closed AnnieJohnson25 closed 1 year ago

AnnieJohnson25 commented 1 year ago

Hi, I have been trying to investigate how to get the individual frames for each time step from the trajectory. Therefore, I was looking for the code that replays the trajectory json file. That is the code that does this: https://humancompatibleai.github.io/overcooked-demo/replay I am not able to understand how a 30s game play is equivalent to 204 steps, whereas a 60s game play is equivalent to 404 steps.

It would be great if some guidance could be given regarding this.

Thank you!

micahcarroll commented 1 year ago

I think there might be some bug in the replay functionality – it had always been a bit finicky. If you find it, you're more than welcome to submit a PR.

In general, for greatest reliability, I would try to process trajectories (and view them) in python as much as possible.