Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/4379
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 62 PendingAs of commit 164b903 with merge base a2acf99 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Contributor
Author
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
MicroDuck priors can train from proprioception or proprioception plus a sampled head camera, with an explicit choice of actor-input or privileged-state critic. The legacy 56-value walker and nine-skill ordering remain compatible. Skills, prior training and controllers stay in TorchRL; the optional games zoo reuses the sensor sampler and encoder for recurrent game selectors.
The 53-value proprioceptive schema excludes simulator linear velocity and world pose. Camera inputs expose uint8 RGB, age and validity, with configurable rate, delay, dropout and noise. Camera history survives snapshots independently and clears on reset. The loader restores the recorded sensor architecture; controllers use the matching command and clock offsets.
What changes
The legacy state observation contains privileged simulator velocity. The sensor actor instead receives an explicitly ordered deployable input:
Noise is applied only to
gyro[3:6],joint_position[8:22], andjoint_velocity[22:36]. A parametrized regression now proves that each option leaves every other field unchanged.The pinned robot asset’s camera quaternion faces into its own head. The implementation preserves lens position and converts the matching camera site’s outward/up axes to MuJoCo’s optical frame. Native rendering retains at most two resolution-specific contexts, avoiding repeated context creation when policy cameras and spectator videos alternate. Snapshot renderers remain independent. Eviction and environment close make each renderer’s own graphics context current before releasing GPU objects, preventing cleanup from damaging another environment’s images.
Hydra observation groups compose with PPO/PPO-EWMA and the complete-episode prior recipe from #4378. This PR stacks on #4378 above #4375. Documentation cites the stock camera/IMU sources and records simulation/deployment limitations; no onboard-compatibility claim is made for the legacy 14-actuator simulator.
Validation
The installed integration CI pins zoo commit
b1a4dcbdfd232f7c84ccf5190ea7ac4493842f2e. Linux CI exposed a cross-environment rendering regression during clone cleanup. The strengthened pixel regression passes on Mac CGL and GLFW after the cleanup fix in8c4cc4e725c12fa072df70cd1cd9dda45878237c; the dedicated Linux GLFW regressions pass with MuJoCo 3.10 and 3.8.1, as do isolated ARM64 Linux tests with stable and nightly torch. The earlier x86 bulk-suite failure remains under investigation; the current full-suite rerun is pending. Installed integration and zoo native CI are green. Sensor prior learning and hardware deployment remain unevaluated.