Fix ManiSkill2 frame extraction during evaluation#4
Merged
iChubai merged 1 commit intoJul 17, 2026
Merged
Conversation
Collaborator
|
Thank you so much for catching and fixing this! The _extract_frame issue was easy to miss but would directly break ManiSkill2 video recording during evaluation. The fix is clean and well-scoped. Really appreciate your first contribution to WorldFoundry — looking forward to more! |
There was a problem hiding this comment.
Pull request overview
Fixes ManiSkill2 evaluation video-frame extraction by correcting _extract_frame to be an instance method so it can access self.enabled_cameras during reset() and step() without raising NameError.
Changes:
- Converted
_extract_framefrom@staticmethodto an instance method (self-aware) to support configured camera selection. - Kept frame selection behavior aligned with
enabled_camerasordering (first available configured camera wins). - Reformatted the long
specsimport into a multi-line import block (no functional change).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Fix ManiSkill2 video-frame extraction by making
_extract_framean instance method. The method selects frames fromself.enabled_cameras, but it was declared as a static method, so bothreset()andstep()raisedNameError: name 'self' is not definedwhen recording observations.User-Visible Behavior
ManiSkill2 benchmark episodes can now record the first configured camera's RGB frame during reset and step instead of crashing before evaluation proceeds.
Affected Pipeline / Benchmark
maniskill2Change Type
Asset / API / GPU Requirements
Commands Run
reset()+step()harness (below)python -m ruff check worldfoundry/evaluation/tasks/embodied/simulators/maniskill2/benchmark.pypython -m ruff format --check worldfoundry/evaluation/tasks/embodied/simulators/maniskill2/benchmark.pymake lintmake compile-eval && make docs-checkmake cli-checkbash scripts/docs/build.sh --skip-bootstrapnpmis not installed. No docs were changed.Focused regression command
Checkpoint / API Key Needs
Sample Artifact Evidence
stubbed reset/step frame recording: PASSNameError.Validation Matrix Status
reset()+step()harness abovemake cli-check; focused adapter harnessmake docs-check; full Node build skipped becausenpmis unavailableLeaderboard Validity Impact
leaderboard_validimpact: Nonemake cli-checkpassed; no scorecard schema changedCompatibility And Risk
_extract_frameis private and all in-tree callers invoke it on an instance.Checklist
data/test_cases/or assets fromdata/benchmarks/where practical.