Add video recording support to eval_runner.py#445
Open
cvolkcvolk wants to merge 15 commits intomainfrom
Open
Conversation
…k/feature/droid_pnp_uses_robolab_objects
bcce498 to
9f1e1cb
Compare
alexmillane
approved these changes
Mar 2, 2026
Comment on lines
+303
to
+304
| if render_mode is None: | ||
| env = env.unwrapped |
Collaborator
There was a problem hiding this comment.
What's the reasoning here? If we're in a non-None render mode we don't wanna unwrap the env? Might be worth a comment.
Collaborator
Author
There was a problem hiding this comment.
VideoRecorder is a gym wrapper we don't want to strip away. If we don't require the render_mode, keep the default behaviour to return an unwrapped version
Collaborator
Author
There was a problem hiding this comment.
Having looked deeper into this, we actually might want to return an wrapped gym environment as IsaacLab is doing it
Comment on lines
+118
to
+122
| if hasattr(env.unwrapped.cfg, "metrics"): | ||
| # NOTE(xinjieyao, 2025-10-07): lazy import to prevent app stalling caused by omni.kit | ||
| from isaaclab_arena.metrics.metrics import compute_metrics | ||
|
|
||
| metrics = compute_metrics(env) | ||
| metrics = compute_metrics(env.unwrapped) |
Collaborator
There was a problem hiding this comment.
Is the robust to the env not being unwrapped? I think we had conditional unwrapping of env. Doesn't that mean if video is not requested, and the env is pre-unwrapped, that this will fail?
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Clemens Volk <cvolk@nvidia.com>
This was referenced Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds the ability to record videos of evaluation jobs via
--videoflag. Each job produces an mp4 in a per-job subdirectory under--video_dir