Repository navigation
Conversation
nblauch
force-pushed
the
feat/active-gaze
branch
from
November 18, 2026 00:57
51100bb to
bd06ce0
Compare
On Isaac Lab main, NewtonBuilderCfg moved out of newton_manager_cfg and physics callbacks register on a manager instance. A NewtonManager subclass now applies the workshop contact model when its own simulation builds the model. The configuration references it by name, so loading a task still does not import the Newton runtime.
The ActiveGaze task needs the foveated camera from Isaac Lab's isaaclab_fovi package, which is still under review. Until it merges, Isaac Lab is built from that pull request's branch. The fovi extra installs isaaclab[fovi] and the transformers release that has the Cosmos3-Edge text model; an override lifts Isaac Lab's older transformers pin. uv.lock is regenerated once the Isaac Lab branch is published.
Copies the task, gaze action, learning and training modules, the number decals and their tests from the original isaaclab_fovi package (IsaacLab fork commit 6fa2e0c61). Only file locations, license headers and package import paths change here, so the next commits show each adaptation on its own. The code does not run yet.
The gaze action now owns the gaze: its step and limit are given in field radii of the retina and converted to radians once, the limit is radial, and it moves the camera through set_gaze_angles. Episodes start at a gaze drawn from the five reset modes using that episode's vial and rack, which replaces the saved reset cache. The teacher's gaze labels come from one method of the action term. The numbered reset term owns each vial's number and target opening, read through target_holes(); the env attributes vial_number, numbered_target_hole and hole_numbers, the reset sampler's env attribute and the goal_mode switch in the gaze code are gone. The pan-tilt rig mode and the binocular parameterization are removed. Registers IsaacTutorial-Place-Vial-SO101-ActiveGaze with string entry points.
nearest, numbered and dino_language are subclasses of the tutorial's state task whose fields say what differs: the numbered spawners, reset, success, held-goal reward and critic goal are set as fields instead of being patched in __post_init__, and the goal_mode and policy class flags and the checkpoint-metadata helpers are gone. The scene camera is an ideal square pinhole given by its spawn optics, with the default 0.591 degree CMF constant and sensor masking; the tutorial's own task defaults now apply, since training starts from scratch. Agent classes drop the robot name and the variants without an environment yet.
The gaze action, its limit and the observed gaze are in field radii of the retina, with simpler defaults: an action of 1 moves the gaze by 0.1 field radii, and the gaze stays within one field radius of the optical axis. Angles are in degrees, as the camera's set_gaze_angles now takes them. The observed gaze state is the gaze and its velocity; the commanded copy existed for the physical rig.
Copies the SO-101 LEAPP export, the real-robot runtime and the software retina from the original isaaclab_fovi package, with their tests. The planar software retina is not copied: the camera samples only in spherical coordinates. Only file locations, license headers and import paths change here.
Isaac Lab now comes from refs/pull/9074/head of isaac-sim/IsaacLab, which reviewers can see and which carries upstream's Git LFS objects. Isaac Lab main requires pre-release hydra-core and omegaconf, so pre-releases are allowed as in Isaac Lab itself. uv.lock is regenerated. Isaac Lab main references a Git LFS object its server does not have (docs/source/_static/actuators/delay-clip.webp, from isaac-sim/IsaacLab#6839); until that is fixed, install with GIT_LFS_SKIP_SMUDGE=1.
The software retina takes the real camera as fovi CameraModel fields and the trained retina's field of view and CMF constant in degrees, and gaze in degrees. Any calibrated camera works, not only a pinhole.
…preset presets=sim2real now adds, to the tutorial's own physical randomization: the scene's colours from the wrist-camera task, an episode-wise photometric variation of the retina, and a per-episode move of the camera's mount. The mount term owns the mount pose and the extrinsics labels; the gaze action reads the mount from it, and the camera follows through set_world_poses. Every reset phase stays in use, so the reset curriculum still applies. The planar camera, the env-wide camera-randomization attribute and the unused lens-visibility model are gone. Agents: gaze supervision is one weight on the same gaze-supervised PPO (no_gaze_supervision sets it to 0), so the unsupervised baseline differs only in that loss. With sim2real the language agent adds the extrinsics head and its loss.
env.observations.vision.tokens.params.num_layers keeps the first transformer layers of the frozen encoder and its final normalization, cutting the cost of perception while keeping pretrained features. None runs every layer.
…nfiguration train.py composes the task from Isaac Lab overrides and writes run.json: retina in degrees and its camera model, gaze in field radii, control rates, gaze supervision, extrinsics and DINO settings. Resuming replays the saved overrides. The runner finds the reset sampler through the curriculum manager and checkpoints the control-step count. The W&B writer takes an optional entity and uploads run.json. The unused periodic-evaluation runner is removed.
The deployment contract carries the real camera's model, the retina in degrees and the gaze step, limit and field radius. The controller integrates the gaze in field radii with the simulator's radial limit, and the proprioception matches simulation: 30 values ending with gaze and gaze velocity. The planar crop is gone. Export defaults to the simulated camera and to the run's DINO checkpoint and exit layer.
The numbered reset spells out the base reset's parameters, which the event manager checks against the configuration. The runner reads the reset sampler from the curriculum manager's resolved configuration. Inspection checks that env 0's reset gaze is inside the camera image, and diagnostic markers are placed in fractions of the camera image. The video helper of the removed periodic evaluation is deleted.
The fovi extra now installs imageio's ffmpeg backend; without it imageio falls back to a TIFF writer and mp4 recording fails.
Tests cover the gaze action in field radii and its teacher, run.json resume, the spawn-derived pinhole camera, the deployment contract and software retina, the camera-mount and photometric sim2real randomization, and the numbered reset that owns each environment's target. Planar and reset-cache tests are removed with their code. The tutorial's task-list and asset tests now include the ActiveGaze task and its built-in MDL label material.
docs/ACTIVE_GAZE.md covers installing the fovi extra, the variants, the gaze action and its teacher, training, resuming, playback, inspection and deployment. The README lists the task.
… above OVRTX now defaults to path-traced RGB; its Minimal modes draw no background, so they stay available as presets. The scene and diagnostic cameras share a white background, matching Newton. A dim dome and a distant key light from above, tilted 25 degrees, replace the bright dome so objects cast visible shadows. Newton's renderer ignores scene lights and is unchanged.
Newton ignores USD lights and lights the scene with its own directional light along (-1, 1, -1); its shadow rays are now on, at about 10% of training throughput. The OVRTX key light keeps the tutorial's rotation, which shines along the same direction, and is sharper and stronger over a dimmer dome, so both renderers cast matching, visible shadows.
The scene inherits the tutorial's dome and key light, whose direction is the Newton renderer's light direction, instead of defining its own.
It keeps an RTX foveated camera's gaze relative to its mount when sim2real moves the mount.
Isaac Lab renamed isaaclab_physx to isaaclab_isaacsim; the old name is a deprecated alias.
Isaac Lab now pins RSL-RL ea39cc2, where PPO.update returns losses and statistics and process_env_step returns the values the logger sums over each episode. OraclePPO returns the same pair and reports the entropy loss as native PPO does. Episode logging keeps the environment's rewards, without the value estimate added for chunk timeouts.
The task had its own gaze action, observation and teacher, written against an earlier isaaclab_fovi. It now uses isaaclab_fovi's: GazeAction for the action, gaze_state for the observation and gaze_teacher_labels, aimed at the world point the task picks, for the teacher. What stays here is the task's own: the point the teacher looks at, the mixed start of each episode's gaze, and the within-1-degree and goal-target logs. MixedResetGazeAction extends GazeAction's reset, which runs after the reset events and so cannot be set from one. The sim2real preset moves the camera's mount, so there the gaze tracks the mount. The retina's field of view and the physical camera now come from the camera's configuration through fovi's CameraModel; isaaclab_fovi's resolve_camera_model and sampling_geometry are gone. Needs isaaclab_fovi's teacher to accept world points and its image-free pose read, which are not in Isaac Lab yet.
Isaac Lab renamed the newton_renderer preset to newton_warp; the old name is a deprecated alias. The ActiveGaze presets and the wrist-camera task's commands and shadow setting use the new name.
Isaac Lab moved to ovrtx 0.7.0 and ovstage 0.4.0.
The guide names the action, observation and teacher the task now takes from isaaclab_fovi, the tracked mount of the sim2real preset, and the Newton renderer's current preset name.
isaaclab_fovi merged into Isaac Lab's main branch. The gaze teacher's world-point target, which this task uses, is under review in isaac-sim/IsaacLab#9183, so Isaac Lab is built from that pull request, and uv.lock is regenerated. The lock holds the pull request's head as of now (030f94b), which does not yet have the teacher's world-point target or the camera's image-free pose read. Until they land there and the lock is refreshed, the ActiveGaze environment does not build from this lock. The Microduck tasks target Isaac Lab 3.0.0 and do not run on this Isaac Lab.
nblauch
force-pushed
the
feat/active-gaze
branch
from
November 24, 2026 07:16
bd06ce0 to
00a9570
Compare
It adds the gaze teacher's world-point target and the camera's image-free pose read, which the ActiveGaze task uses.
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.
Adds
IsaacTutorial-Place-Vial-SO101-ActiveGaze: SO-101 vial placement seen through a fixed, foveated scene camera whose gaze the policy moves. It runs from simulation to the real robot.Depends on
isaaclab_fovi's gaze action; its teacher aims at a world point the task picks (gaze_teacher_labels(target_w=...)) and reads the camera's pose without capturing an image (FoveatedCamera.mount_pos_w), both from #9181. The tutorial builds Isaac Lab fromrefs/pull/9183/head, locked at a5fb082, so this stays a draft until both merge, then moves to Isaac Labmain.isaaclab_fovi. The tutorial'smainpins Isaac Labrelease/3.0.0, which does not have the package. Under this pull request's lock the Microduck tasks do not run: their BAM compatibility layer targets Isaac Lab 3.0.0 GA (it hooksNewtonManager.initialize_solveras a classmethod and importsisaaclab_rl.rsl_rl.handle_deprecated_rsl_rl_cfg), and Isaac Labmainhas BAM and the Microduck tasks natively. The SO-101 state and wrist-camera tasks run on both.Isaac Lab
mainreferences a Git LFS object its server does not have, so sync withGIT_LFS_SKIP_SMUDGE=1 uv sync --locked --extra fovi.What's included
NewtonManagersubclass, PhysX configuration is imported fromisaaclab_isaacsim, the Newton renderer is selected asnewton_warp, and OVRTX is pinned to 0.7.0.numbered(default): put each vial in the opening with its number.nearest: any opening, as in the state task.dino_language: a frozen foveated DINOv3 fused with an instruction.isaaclab_fovi.GazeActionin software mode moves the retina within the fixed camera's image: two of the eight actions, up to 0.1 retinal field radii per step, within 1 field radius of the optical axis.gaze_stateobserves it.gaze_teacher_labelslooks at the vial until the grasp, then at the goal, and its gaze actions supervise the policy through an extra PPO loss. The task adds only its own pieces: the teacher's target, a start gaze that is random, on the vial or the goal, or a few degrees off either, and two logs.sim2real: the tutorial's own randomization, plus a camera mount that moves each episode, which the gaze's teacher tracks, and photometric variation of the retina.chunking: each decision plans three control steps.no_gaze_supervision: turns the teacher's loss off.finetune: warm-starts at a lower learning rate.env.observations.vision.tokens.params.num_layers=N: exits DINO after N layers.python -m isaaclab_tutorial.active_gaze.train {train,play,inspect}takes standard Isaac Lab overrides and writesrun.json, which describes the run for resuming and deployment. The PPO follows the RSL-RL revision Isaac Lab pins (ea39cc2).docs/ACTIVE_GAZE.md, and tests intests/active_gaze/.Verification
Against a local Isaac Lab checkout at isaac-sim/IsaacLab#9183 (a5fb082):
tests/active_gazeand the SO-101 state and wrist-camera tests. The Microduck tests fail, as described above. ruff is clean on the SO-101 and ActiveGaze packages.inspecton Newton and on OVRTX: the retina is upright and magnifies the label it fixates, the start gaze lands on the vial's cap or the rack's label, and resetting one environment leaves the others unchanged.sim2realmount, and on Newton with mounts moved by up to 4 cm.isaaclab_fovi's logged gaze error equals the task's own measure, and the observed gaze equals the camera's after every reset.numbered,chunking,sim2realon Newton, with the teacher's gaze loss active.In an environment synced from
uv.lock(uv sync --locked --extra fovi --extra ovrtx):tests/test_deploy.pyare skipped there because they need OpenCV. The Microduck tests fail at theinitialize_solverhook.sim2realmount fixates the target.Not yet verified
dino_languagein simulation (needs the DINO checkpoint from W&B).