Skip to content

[6Av] Share image views with recording and simplify launch selection - #8457

Merged
ooctipus merged 13 commits into
isaac-sim:developfrom
ooctipus:refactor/pr6av-shared-image-recording
Oct 12, 2026
Merged

ooctipus merged 13 commits into
isaac-sim:developfrom
ooctipus:refactor/pr6av-shared-image-recording

Conversation

@ooctipus

@ooctipus ooctipus commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Video recorders accept an ImageViewCfg or a source string through one source field (default "viz"), consuming the same image selection as a window, reusing its composed GPU frame and host readback. Sensor recording uses the GPU image path, removing the duplicate CPU colorizer and repeated source discovery. Existing sensor:<name> and viz:<type>[:streaming_view] strings remain supported; recorders bind their capture function after the initial simulation reset. Invalid sources or channels fail during construction; empty warmup frames are skipped.

Launch selects display and recording producers together. A perspective recording retains its exact configured producer headlessly when --viz does not select it, including when multiple viewers use the same backend. Device handling stays at the launch boundary, and physics configuration subclasses retain compatibility checks without class-name guessing. Visualizer loading propagates ordinary Python import errors without installation-hint wrappers. Viser initializes its native client state directly, applies camera updates without capability probes, and keeps only the pending pose needed while clients are disconnected. The CLI defaults to an empty visualizer selection; CSV validation and deprecated aliases remain supported.

view = ImageViewCfg(source="front_camera", envs=(0, 2), channels=("rgb", "depth"))
viewer = NewtonGLVisualizerCfg(view=view, window=WindowCfg(size=(1280, 720)))
recording = VideoRecorderCfg(source=view)

Rebased onto merged #8432 (6Aiv). This PR now contains only 6Av: 48 files, +938 / −1,672 (734 fewer lines) against develop.

Previously measured recording performance

Before the series → complete 6Aiv + 6Av implementation, ms/frame. These are not incremental 6Av speedups. Compared 74303febb with pre-split 8e17a1165; the measured production paths are preserved by this split.

Consumers / channels Tiles Frame preparation Preparation + RGB byte packing
One window / RGB 16 0.050 → 0.052 —
Two windows / RGB + depth 16 0.137 → 0.080 —
Sensor recorder / RGB 1 1.179 → 0.146 1.198 → 1.164
Sensor recorder / depth 1 2.541 → 0.152 2.579 → 1.171
Window + recorder / RGB 16 17.838 → 1.356 18.844 → 17.650
Window + recorder / RGB + depth 16 45.279 → 19.480 55.453 → 52.108
Two windows + recorder / RGB + depth 16 54.126 → 20.560 63.343 → 53.271

GPU0 RTX 5090, Threadripper PRO 7965WX; 640×480 synthetic, already-published RGBA8/depth GPU tiles. Three runs per revision in balanced order, 30 warmups and 100 CUDA-synchronized frames per case; median of run medians. Pixels matched. Preparation includes composition and readback; the last column adds MoviePy's RGB byte packing, excluding codec, disk I/O, sensor rendering, display, physics, and startup. Much of the RGB acquisition saving moves to byte packing; this is not a claim of comparable end-to-end encoding speedup.

Visualizer test startup

Native RTX cases now run in their existing RTX integration file. Kit viewport and tiled tests share one process, and the duplicate Kit-only tiled scene is removed. Scenes still initialize and close independently. This cleanup removes 83 lines, preserving all 51 cases and CI markers, image tolerances, motion steps, and the two existing lighting skips.

Passing CI runs, including the earlier 6Aiv baseline:

Measurement 6Aiv 6Av before cleanup 6Av after cleanup
Full GitHub visualizer job 13m37s 15m39s 14m57s
Actual pytest elapsed time (start to suite completion) 12m54s 12m56s 9m26s
Docker image pull 0.3s (cached) 1m54s 4m17s
Summed test-file wall time 13m15s 13m17s 10m35s
Changed test groups, summed wall time 443.4s 446.4s 273.6s

6Aiv / 6Av before cleanup / 6Av after cleanup. Test-file times overlap when files run concurrently; their sum is not the full job duration. These are CI observations, not a controlled multi-run benchmark. Tests finished about 3m30s sooner after cleanup, but the slower image pull left the full job 1m20s slower than 6Aiv and 42s faster than the preceding 6Av run. Local GPU0 (RTX 5090) warm-cache Newton tests measured 55.4 → 52.9s.

Newton+Kit golden cases remain intermittent: the passing run above followed a failure on the same commit. The earlier c8b514444 run again failed six Kit golden cases after RTX command-buffer synchronization errors, 30-second streaming timeouts, and empty/wrong-size frames. This cleanup does not claim to fix that failure.

Validation

  • Kit tiled-camera warmup: moved the existing Kit update inside the convergence loop. The before/after probe measured 1 update / 21 identical reads → 50 updates / 50 distinct frames; its minimum-update assertion failed before the fix and passed afterward. Cartpole Kit tiled golden and Newton/PhysX tiled motion/pause tests passed on GPU0; formatting and changelog checks passed. The latest CI failure was ANYmal Kit tiled (14.94% pixel difference against a 12% limit). Local Kit 6.1 still has the separate ANYmal image mismatch already reproduced on merged 6Aiv (~65%); CI uses Kit 6.2 and is being rerun. No image thresholds or retry counts changed.
  • Marker follow-up: updated the test double to expose Viser's connected-client server interface. Reproduced the failure before the one-line fix; all 31 marker tests passed afterward. An earlier CI native exit 139 was not reproduced locally and did not recur in the latest CI run; no skip or rendering workaround was added.
  • Source API follow-up: 109 focused tests passed across shared GPU composition, producer selection, recorder behavior, and recording CLI integration. The existing sharing regression failed before the fix. Removed the optional recorder view field and its conflicting-source check; updated examples and migration guidance. Narrowed an overbroad CLI test mock to runtime launchers so it no longer intercepts visualizer configuration imports.
  • Earlier cleanup: 253 focused tests passed, including launcher/backend selection, recording entrypoints, Viser initialization and camera updates, managers, actuator authoring, and native RTX motion/markers. The affected manager and actuator CI cases now check original import errors and real unsupported actuator classes. GPU checks used GPU0 only.
  • Consolidated Viser visibility checks into the initialization/reset test and verified that deliberately losing the environment selection fails it. The RTX test now contains its own setup and assertions; its warm-cache body measured 12.0 → 11.8 seconds locally, preserving motion, pause, first-frame, and marker checks. A real Viser startup/step/close smoke test passed. These two follow-ups removed 234 lines net: 168 fewer production lines, 73 fewer test lines, and 7 added documentation/changelog lines.
  • Earlier eager-binding, import-error, FPS, and gallery regressions failed before their fixes. Direct and manager-based Cartpole each produced a moving 20-frame, 60-FPS headless GL recording without --viz. The original visualizer consolidation passed 49 cases with 2 existing skips; its deliberate frozen readback failed the retained motion test. Local Kit 6.1 needed the existing retry policy; CI uses Kit 6.2.
  • A fresh Sphinx build, formatting, and changelog checks against merged develop passed. Full CI is being rerun. The preceding ARM installation run failed with CUDA out-of-memory; this cleanup does not claim to fix that or the intermittent Kit golden failures above.

Type of change

  • New feature
  • Breaking change: invalid recording sources fail at initialization; missing dependencies retain ModuleNotFoundError
  • Documentation update

Release backport

  • Backport to the active release branch

Checklist

  • Read the contribution guidelines and audited the changed tests
  • Ran formatting, focused tests, changelog checks, and a clean documentation build
  • Updated public documentation and package changelog fragments
  • Contributor already listed
  • Pass full CI

@github-actions github-actions Bot added documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Oct 11, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6av-shared-image-recording branch from d264437 to 7119dc1 Compare October 11, 2026 00:39
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6av-shared-image-recording branch from 7119dc1 to 3c8e03e Compare October 11, 2026 01:10
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6av-shared-image-recording branch from 3c8e03e to 66ac336 Compare October 11, 2026 03:48
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6av-shared-image-recording branch from 66ac336 to 33d697b Compare October 11, 2026 03:57
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6av-shared-image-recording branch from 33d697b to 8779af5 Compare October 11, 2026 04:32
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus
ooctipus force-pushed the refactor/pr6av-shared-image-recording branch from 8779af5 to 229ca89 Compare October 11, 2026 04:58
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus

Copy link
Copy Markdown
Collaborator Author

run-ci

@isaaclab-bot isaaclab-bot Bot added ci:run-docker Trigger the on-demand Docker and GPU CI workflow and removed ci:run-docker Trigger the on-demand Docker and GPU CI workflow labels Oct 11, 2026
@ooctipus
ooctipus merged commit e21e251 into isaac-sim:develop Oct 12, 2026
60 checks passed
@ooctipus
ooctipus deleted the refactor/pr6av-shared-image-recording branch October 12, 2026 03:08
kellyguo11 added a commit that referenced this pull request Oct 12, 2026
# Description

Refreshes the PhysX ANYmal-D Kit tiled golden image after #8457 changed
tiled-camera convergence to advance Kit on every warmup frame. The
previous golden was captured by #8433 before those changes were
combined, so it retained temporal blur while the current capture is
sharp.

The first observed failure after the merge started at 2026-10-12 03:37
UTC in run
https://github.com/isaac-sim/IsaacLab/actions/runs/38200234944. The old
baseline fails with a 13.19% pixel difference against the 12% limit.
Four independent post-merge captures agree within 0.018-0.019% and SSIM
0.99878-0.99880.

This replaces only the affected golden and adds a skip changelog
fragment. It does not relax comparison thresholds.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Release backport

- [ ] <!-- backport-active-release --> Backport this pull request to the
active release branch after it merges into `develop`

## Validation

- Regression comparison: old golden fails at 13.19%; replacement passes
at 0%.
- Cross-run comparison: three other CI captures pass at 0.018-0.019%,
SSIM 0.99878-0.99880.
- `uv run python tools/changelog/cli.py check upstream/develop
--include-worktree`
- `uv run isaaclab -f` (all applicable hooks passed; the changelog hook
was also run separately against the actual upstream base because the
fork tracking ref is stale)

## Checklist

- [x] I have read and understood the contribution guidelines
- [x] I have run the pre-commit checks with `uv run isaaclab --format`
- [x] Documentation changes are not applicable to this test-only
baseline update
- [x] My changes generate no new warnings
- [x] I have validated the changed behavior with focused coverage and
applied the test-audit criteria
- [x] I have added a changelog fragment under
`source/isaaclab_visualizers/changelog.d/`
- [x] My name already exists in `CONTRIBUTORS.md`
kellyguo11 pushed a commit that referenced this pull request Oct 14, 2026
# Description

On `release/3.0.0`, training `IsaacContrib-Franka-Pour` or
`IsaacContrib-UR10-Particle-Push` without `--viz` starts Isaac Sim even
though the run summary reports `none (headless)`. The launcher counts
the tasks' `default_visualizer_cfg` as an active visualizer. Playback
defaults can similarly start the OVRTX runtime unnecessarily.

Exclude the `default_visualizer_cfg` subtree from runtime discovery.
These settings customize a selected visualizer; active visualizers,
physics, and camera sensors continue to determine which runtimes start.
Retain shared Kit streaming-camera requirements when Kit is selected.
The regression also covers a renderer nested inside the defaults.

This PR targets `release/3.0.0`. Both tasks already resolve to Kit-free
training on current `develop` after #8457; that larger visualizer and
recording refactor was not backported.

## Type of change

- Bug fix (non-breaking change which fixes an issue)

## Validation

- All three regression cases failed without the fix for the intended
reason: Kit, Newton RTX, and nested OVRTX renderer defaults requested a
runtime. All pass with the fix.
- Focused pytest files: visualizer intent **12 passed**, runtime
compatibility **27 passed**, and launcher requirements/lifecycle **11
passed** (**50 total**). Coverage also preserves camera auto-enabling
for selected Kit streaming views.
- Resolved training and playback configs for both affected tasks:
defaults no longer request Kit or OVRTX; UR10's configured Newton GL
playback visualizer is retained.
- GPU smoke run completed one Franka Pour training iteration without
`--viz` or `--viz none`, with the Isaac Sim 6.2 extra installed. No Kit
startup occurred:
  ```bash
  uv run --no-sync --extra isaacsim isaaclab train --rl_library rsl_rl \
    --task IsaacContrib-Franka-Pour --max_iterations 1
  ```
- Repository-wide `./isaaclab.sh -f` and `git diff --check` passed,
including the changelog gate against `release/3.0.0`.

## Checklist

- [x] I have read and understood the contribution guidelines.
- [x] I have run the pre-commit checks.
- [x] My changes generate no new warnings.
- [x] I have validated the changed behavior with focused coverage and
applied the test-audit criteria.
- [x] I have added a changelog fragment for every touched package.
- [x] My name already exists in `CONTRIBUTORS.md`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation infrastructure isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants