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

[RxR-Habitat] How to export a robot navigation video based on a baseline

Open 2201957 opened this issue 2 years ago • 4 comments

demo example2 Could you provide me with the code in the image above "Generate a video of a robot navigating with natural language guidance based on baseline"?

2201957 avatar Sep 15 '23 06:09 2201957

You can use config options to generate a video during evaluation: https://github.com/jacobkrantz/VLN-CE/blob/2375f186cd8a1224a5ff15efa4c0ac05edfb2d42/vlnce_baselines/config/default.py#L23-L24

If you want to update the way in which frames are produced, you can modify/replace the functions in https://github.com/jacobkrantz/VLN-CE/blob/master/habitat_extensions/utils.py

Custom elements in the above videos (arrows, additional text) were added using opencv utilities.

jacobkrantz avatar Sep 15 '23 18:09 jacobkrantz

Hi @jacobkrantz what can be reason for not getting a robot navigating video even after make changes to the [default.py](vlnce_baselines/config/default.py) as follows:

_C.VIDEO_OPTION = ["disk"]  # options: "disk", "tensorboard" 
 _C.VIDEO_DIR = "data/videos/debug" 

Do we need to make any others changes? One more question, what's the difference between using 'disk' and 'tensorboard' and how can they be accessed?

chalindunis avatar Nov 30 '23 10:11 chalindunis

Hi @jacobkrantz what can be reason for not getting a robot navigating video even after make changes to the [default.py](vlnce_baselines/config/default.py) as follows:

_C.VIDEO_OPTION = ["disk"]  # options: "disk", "tensorboard" 
 _C.VIDEO_DIR = "data/videos/debug" 

Do we need to make any others changes? One more question, what's the difference between using 'disk' and 'tensorboard' and how can they be accessed?

Solved it. Thank you!

chalindunis avatar Dec 26 '23 06:12 chalindunis