VLN-CE icon indicating copy to clipboard operation
VLN-CE copied to clipboard

how to render a random episode?

Open jet-yangqs opened this issue 3 years ago • 1 comments

Hi, Jacobkrantz ~ How do you render the 'gif' performed in the readme file? I want to see what the agents was doing closely for each action within the reconstructed scenes for a random episode. Can you give me some suggestions? Thank you~

jet-yangqs avatar Dec 14 '20 12:12 jet-yangqs

You can save videos during agent evaluation using VIDEO_OPTION and VIDEO_DIR in your experiment config. Example:

...
VIDEO_OPTION: [disk]
VIDEO_DIR: videos
...

https://github.com/jacobkrantz/VLN-CE/blob/5ce28a9471ad86a41aac2cf709374e3d24ccae84/vlnce_baselines/config/default.py#L19 If you want to customize what the video frames show, you can look into the function that generates a single frame: https://github.com/jacobkrantz/VLN-CE/blob/5ce28a9471ad86a41aac2cf709374e3d24ccae84/habitat_extensions/utils.py#L11

jacobkrantz avatar Dec 14 '20 21:12 jacobkrantz