Repository navigation
Drop the every-step final observation flag for SuperMimic - #9214
Conversation
SuperMimic's learned dynamics required environments to capture physical successors before resets and interval events on every step, so isaac-sim#9193 added final_obs_every_step to the manager-based, direct and multi-agent environments. rsl-rl-lib-extras 6.0.0.2 takes the successors of finished episodes from the regular final observations, like SAC, and the others from the returned observations; resets are handled as before and replay windows still stop at dones. Only interval edits such as pushes now enter the world model's targets, about one transition in 600 in G1 motion tracking, with no measurable effect on training. The environments return to their state before isaac-sim#9193. The SuperMimic runner configuration enables compute_final_obs instead, and the dependency moves to rsl-rl-lib-extras 6.0.0.2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Compatibility and deprecation (2), Style consistency (1). Other reviewed categories look good.
- PR description: Correct “only interval edits” to include command updates, remove the deprecation exemption, and complete supplied learning comparisons with baseline/candidate revisions, command, hardware, backend, environment count, warmup, and metrics.
- Design and architecture: Architecture looks good.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: Breaking changes: Removing final_obs_every_step configurations and the validity signal lacks functional compatibility, targeted warnings, migration guidance, removal guidance, and transition coverage; SuperMimic's new default also rejects supported mask-native reset overrides.
- Implementation: Implementation looks good.
- Style consistency: Deleting the isaaclab changelog fragment leaves its configuration and behavior changes undocumented; replace it with a package-local transition entry.
- Test quality: Test quality looks good.
Significant concerns. Posted 3 inline findings.
Automated review; human maintainers own approval decisions.
[Medium impact] The changes affect optional final-observation capture across environment types and the SuperMimic training path. Capture final observations for manual resets before merging so SuperMimic keeps the true final states of finished episodes. Findings
SummaryRemoves
Acknowledgments: Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Advance physics] --> B{Automatic episode end?}
B -->|Yes| C[Capture final observations]
C --> D[Reset finished environments]
B -->|No| E{Manual reset requested?}
D --> E
E -->|Yes| F[Mark remaining episodes finished]
F --> G[Reset without capturing final observations]
E -->|No| H[Update commands and interval events]
G --> H
H --> I[Return observations]
Reviews (1) · Last reviewed commit: "Drop the every-step final observation fl..." · Reviewed by Greptile |
A reset requested from the viewer marks the remaining episodes as terminated and resets them, but final observations were only captured for automatic resets. On a step without an automatic reset, learners that read extras["final_obs"] for done environments, such as SAC and now SuperMimic, received dones without final observations. Manager-based, direct and multi-agent environments now capture them before the viewer reset when no automatic reset did. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pending changelog fragments must not be edited, so the model-based entries stay as merged and new fragments record the removal of the every-step option and the SuperMimic runner and dependency change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
There is a wheel for this one?
There was a problem hiding this comment.
|
run-ci |
Motivation
#9193 added a public option,
final_obs_every_step, to the configs of the manager-based, direct and multi-agent environments. Only SuperMimic uses it: its learned dynamics needed every environment to capture the physical successor on every step, before resets and interval events. That is a public API change to every environment type for a single learner, and it hasn't shipped yet. This PR reverts it before 3.1 is released.Change
The revert is possible because of
rsl-rl-lib-extras6.0.0.2 (leggedrobotics/rsl_rl#308). Learned dynamics there follows the same contract as SAC: the successors of finished episodes come from the regularextras["final_obs"], and the others from the returned observations. The environments go back to their state before #9193, the SuperMimic runner config enablescompute_final_obsinstead of the removed option, and the dependency moves to 6.0.0.2.Effect on training
Training is unaffected. Resets are handled as before, and replay windows still stop at dones. Command updates only change goal observations, not the
stateandlabelsgroups the world model learns from. So the only difference is that physical interval edits such as pushes now enter the world model's targets, about one transition in 600 in G1 motion tracking. OnIsaac-Motion-Tracking-G1(Newton, default environment count, one L40S per run, 3 seeds × 60 minutes per recipe), training with and without every-step capture gave the same results: episode reward 12.1 ± 0.4 without vs 11.7 ± 0.3 with it for the SuperMimic recipe, and 13.8 ± 0.2 vs 13.5 ± 0.7 for the BlinkMimic recipe, with the same world-model error.Viewer-reset fix
Since SuperMimic now relies on
final_obs, this also fixes a gap that affected SAC: a reset requested from the viewer on a step without an automatic reset ended episodes without capturing their final observations. The three environment types now capture them in that case too.Testing
To train:
On one RTX 6000 Ada with 1024 environments, the reward rose from 0.17 to 7.4 in under 8 minutes.
🤖 Generated with Claude Code