Skip to content

[Sim2Sim] Fix camera rendering, compliant materials, and training continuation - #8379

Closed
StafaH wants to merge 5 commits into
isaac-sim:developfrom
StafaH:fix/review-simulation-training-fixes
Closed

StafaH wants to merge 5 commits into
isaac-sim:developfrom
StafaH:fix/review-simulation-training-fixes

Conversation

@StafaH

@StafaH StafaH commented Oct 8, 2026 •

Copy link
Copy Markdown
Collaborator

Superseded by three independently mergeable PRs targeting develop:

The scene-partition idempotence fix and its regression test are already present in develop, so they are omitted from the replacement PRs. All remaining changes, tests, documentation, and changelog entries are included in the three PRs above.


  • Newton ignored explicit HDR backgrounds and USD-only lens distortion; fill background misses in linear space and warn about ignored distortion.

  • Material randomization overwrote compliant stiffness; preserve it on PhysX/OVPhysX and import acceleration-spring clones through USD.

  • Repeated scene partition authoring failed; reuse existing attributes.

  • RSL-RL continuation restored old optimizer settings; add --reset_optimizer to restore models and iteration with a fresh policy optimizer.

  • Distributed workers missed downstream tasks; load installed task registrations before backend selection.

  • Literal overrides were mistaken for preset names; apply them after preset resolution.

  • Backport to the active release branch after merging into develop.

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team labels Oct 8, 2026
@StafaH StafaH changed the title Fix camera rendering, compliant materials, and training continuation [Sim2Sim] Fix camera rendering, compliant materials, and training continuation Oct 8, 2026
@StafaH StafaH closed this Oct 10, 2026
@StafaH
StafaH deleted the fix/review-simulation-training-fixes branch October 10, 2026 19:45
@StafaH
StafaH restored the fix/review-simulation-training-fixes branch October 10, 2026 20:55
@StafaH StafaH reopened this Oct 10, 2026
@StafaH StafaH closed this Oct 12, 2026
StafaH added a commit that referenced this pull request Oct 12, 2026
…cloning (#8464)

Material randomization overwrote compliant-contact stiffness encoded in
negative restitution, and native OVPhysX clones lost acceleration-spring
behavior. Preserve stiffness during PhysX/OVPhysX material randomization
and import scenes through USD when an acceleration-spring material has
positive compliant-contact stiffness. The fallback now logs a warning
naming the triggering material. The fallback trades native-cloning
startup savings for correct contact behavior.

Split from #8379. This PR targets `develop` independently and includes
the corresponding material and cloning regression coverage.

## Validation

- `uv run --no-sync python -m pytest
source/isaaclab_ov/test/test_randomize_rigid_body_material_mdp.py`: 2
passed on the original split (material randomization is unchanged in
this follow-up).
- `uv run --no-sync python -m pytest
source/isaaclab_ov/test/assets/test_rigid_object.py -k
heterogeneous_clone`: 7 passed.
- `uv run --no-sync isaaclab -f`: passed, including changelog checks.
- Native PhysX material-selection test attempted with the `isaacsim`
extra; Isaac Sim stopped at an EULA prompt before test collection. That
test remains to be validated in CI.

## Type of change

- Bug fix

## Release backport

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

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran formatting and lint checks.
- [x] Kept regression tests with the corresponding fixes.
- [x] Included package changelog fragments.
- [x] Author already appears in `CONTRIBUTORS.md`.

## CI follow-up

The failed visualizer job on the previous head hit the known PhysX
ANYmal-D Kit tiled golden mismatch (13.43% versus the 12% limit).
Rebased onto `a48bd07c1`, which includes #8470's targeted golden refresh
after the warmup change; comparison thresholds remain unchanged.
Requested a fresh Docker CI run on `19ee4f488`.

Ordinary imports are at module scope; inline imports are retained where
required by optional dependencies or deferred runtime loading.
StafaH added a commit that referenced this pull request Oct 12, 2026
Continuing RSL-RL training restored the checkpoint's optimizer settings
even when a new learning rate was configured. Add the training-only
`--no-resume_optimizer_state` option to restore models and iteration
while retaining a fresh policy optimizer, with documented
PPO/distillation and RND behavior.

Also fix two training-configuration paths: expose
`isaaclab.cli.load_external_tasks()` and discover installed downstream
tasks before distributed workers select a backend, and apply non-string
literal overrides after preset resolution, including a literal following
a named selection on the same path. These changes keep task selection
and continuation settings consistent at training startup.

Split from #8379. This PR targets `develop` independently and includes
the training documentation and existing-test extensions.

## Validation

- `uv run --no-sync python -m pytest
source/isaaclab_rl/test/test_entrypoints.py -k "checkpoint_preserves or
task_registered_default_backend or rsl_training_registers"`: 6 passed.
The existing checkpoint test now uses real runners and saved
checkpoints; it checks model/iteration restoration, policy optimizer
selection, and RND model/optimizer restoration. Disabling iteration or
RND loading makes it fail.
- `uv run --no-sync python -m pytest
source/isaaclab_tasks/test/core/test_hydra.py`: 67 passed. The extended
mixed-override regression fails without the fix.
- `uv run --no-sync python -m pytest
source/isaaclab/test/cli/test_installed_workflow_entrypoints.py`: 34
passed.
- `uv run --isolated --extra dev -- make -C docs current-docs`: passed
with warnings treated as errors.
- `uv run --no-sync isaaclab -f`: passed, including changelog checks.

## Type of change

- Bug fix and new CLI option

## Release backport

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

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran formatting and lint checks.
- [x] Kept regression tests with the corresponding fixes.
- [x] Included package changelog fragments.
- [x] Author already appears in `CONTRIBUTORS.md`.

Optimizer state resumes by default (`--resume_optimizer_state`);
`--no-resume_optimizer_state` retains a fresh policy optimizer and its
configured learning rate. Existing runner/dispatch/parser and
lazy-import tests: 15 passed; default, enabled, and disabled CLI forms
also checked.

Ordinary imports are at module scope; inline imports are retained where
required by optional dependencies or deferred runtime loading.
StafaH added a commit that referenced this pull request Oct 12, 2026
Explicit camera backgrounds were ignored in Newton HDR output, and
USD-only lens distortion was silently ignored. Fill background misses in
linear space before ISP processing while preserving black geometry, and
warn when distortion must be configured explicitly.

Split from #8379. This PR targets `develop` independently. The
scene-partition idempotence fix and test from the original PR are
already in `develop` and are omitted.

## Validation

- `uv run --no-sync python -m pytest
source/isaaclab/test/renderers/test_camera_output_contract.py`: 18
passed. The existing incomplete test fixture was corrected to use
`CameraCfg`/`PinholeCameraCfg`; typed camera fields retain their
documented defaults.
- `uv run --no-sync isaaclab -f`: passed, including changelog checks.

## Type of change

- Bug fix

## Release backport

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

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran formatting and lint checks.
- [x] Kept regression tests with the corresponding fixes.
- [x] Included package changelog fragments.
- [x] Author already appears in `CONTRIBUTORS.md`.

## Renderer cost

Baseline renderer: `4eccae0f2`; candidate: `ac68f9e8f`. NVIDIA RTX PRO
6000 Blackwell Workstation Edition, one cube and one HDR camera per
environment, explicit sRGB background, ambient/default lighting
disabled. A temporary driver derived from the HDR regression called
`renderer.render(render_data)` directly (CUDA graph replay),
synchronized after 20 warmup calls and after 200 timed calls. Command:
`uv run --no-sync python /tmp/8463-benchmark.py`. Only the renderer
module was replaced with its baseline revision for the comparison;
dependencies and scene setup stayed fixed.

| Environments | Resolution | Baseline | Candidate |
| --- | --- | --- | --- |
| 16 | 128 × 128 | 0.0083 ms | 0.0103 ms |
| 256 | 64 × 64 | 0.0205 ms | 0.0267 ms |

These measure render dispatch plus GPU completion for a small static
scene, not total simulation frame time or a broad performance claim.

## CI follow-up

The failed visualizer job on the previous head hit the known PhysX
ANYmal-D Kit tiled golden mismatch (13.41% versus the 12% limit).
Rebased onto `a48bd07c1`, which includes #8470's targeted golden refresh
after the warmup change; comparison thresholds remain unchanged.
Requested a fresh Docker CI run on `710ed98b0`.

Ordinary imports are at module scope; inline imports are retained where
required by optional dependencies or deferred runtime loading.
isaaclab-bot Bot pushed a commit that referenced this pull request Oct 12, 2026
Explicit camera backgrounds were ignored in Newton HDR output, and
USD-only lens distortion was silently ignored. Fill background misses in
linear space before ISP processing while preserving black geometry, and
warn when distortion must be configured explicitly.

Split from #8379. This PR targets `develop` independently. The
scene-partition idempotence fix and test from the original PR are
already in `develop` and are omitted.

## Validation

- `uv run --no-sync python -m pytest
source/isaaclab/test/renderers/test_camera_output_contract.py`: 18
passed. The existing incomplete test fixture was corrected to use
`CameraCfg`/`PinholeCameraCfg`; typed camera fields retain their
documented defaults.
- `uv run --no-sync isaaclab -f`: passed, including changelog checks.

## Type of change

- Bug fix

## Release backport

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

## Checklist

- [x] Read the contribution guidelines.
- [x] Ran formatting and lint checks.
- [x] Kept regression tests with the corresponding fixes.
- [x] Included package changelog fragments.
- [x] Author already appears in `CONTRIBUTORS.md`.

## Renderer cost

Baseline renderer: `4eccae0f2`; candidate: `ac68f9e8f`. NVIDIA RTX PRO
6000 Blackwell Workstation Edition, one cube and one HDR camera per
environment, explicit sRGB background, ambient/default lighting
disabled. A temporary driver derived from the HDR regression called
`renderer.render(render_data)` directly (CUDA graph replay),
synchronized after 20 warmup calls and after 200 timed calls. Command:
`uv run --no-sync python /tmp/8463-benchmark.py`. Only the renderer
module was replaced with its baseline revision for the comparison;
dependencies and scene setup stayed fixed.

| Environments | Resolution | Baseline | Candidate |
| --- | --- | --- | --- |
| 16 | 128 × 128 | 0.0083 ms | 0.0103 ms |
| 256 | 64 × 64 | 0.0205 ms | 0.0267 ms |

These measure render dispatch plus GPU completion for a small static
scene, not total simulation frame time or a broad performance claim.

## CI follow-up

The failed visualizer job on the previous head hit the known PhysX
ANYmal-D Kit tiled golden mismatch (13.41% versus the 12% limit).
Rebased onto `a48bd07c1`, which includes #8470's targeted golden refresh
after the warmup change; comparison thresholds remain unchanged.
Requested a fresh Docker CI run on `710ed98b0`.

Ordinary imports are at module scope; inline imports are retained where
required by optional dependencies or deferred runtime loading.

(cherry picked from commit d6f9f8c)
StafaH added a commit that referenced this pull request Oct 12, 2026
#8495)

## Description

Backport the remaining simulation and training fixes from #8464 and
#8465 to `release/3.0.0`, completing the release coverage for the three
PRs split from #8379. This replaces the conflict-resolution drafts #8490
and #8491.

#8463 is already present in the release branch as
`78a297879f7a1edbfd32959ea4fcab8e967c8152`; replaying its merged commit
is empty. Its Newton HDR background and lens-distortion changes are
inherited from the base and are not duplicated here.

- Preserve compliant-contact stiffness during PhysX/OVPhysX material
randomization and use full-stage USD import for positive-stiffness
acceleration-spring materials, with a warning about the startup cost.
- Add training-only `--resume_optimizer_state` /
`--no-resume_optimizer_state`, preserving checkpoint models, iteration,
and RND state while allowing a fresh policy optimizer.
- Expose task discovery for direct workers and preserve literal
overrides following named preset selections.

## Conflict resolution

Kept the release branch's logging and test organization. Adapted
compliant-contact coverage into its existing
`test_heterogeneous_clone_contacts` and retained its scene helper and
ordinary settling duration. Used the source PR's focused CPU/GPU
scenario selection. Did not import the unrelated develop-only
indexed-state test consolidation or logging changes.

Source commits: `171b0ebe03b728997a09c016b37eb49ab074e81a` (#8464) and
`43100989af845462ac7036a256c01bcc8b84fe4a` (#8465). Release base:
`6ea915c13`.

## Validation

- Existing RSL-RL runner, dispatch, parser, and import checks: 14
passed.
- Hydra suite: 67 passed.
- Installed CLI workflow suite: 34 passed.
- OVPhysX material randomization: CPU and GPU passed in separate
processes (2 cases).
- Heterogeneous clone contacts: CPU and GPU passed in separate processes
(6 cases). Removing the cloning fallback makes the compliant GPU case
fail its clone-height comparison; the backport passes.
- Formatting/lint and changelog checks passed against the release base.
The release checker requires an `origin/` ref, so validation used a
temporary base alias that was removed afterward.
- Camera-output contract suite (including the existing #8463 backport):
18 passed.
- `uv run --isolated --extra dev -- make -C docs current-docs`: passed
with warnings treated as errors.
- Native PhysX integration tests will be covered by requested CI; they
were not run locally for this backport.

## Checklist

- [x] Followed contribution guidelines and kept existing tests with
their fixes.
- [x] Included the original package changelog fragments.
- [x] Preserved ordinary imports at module scope and justified
optional/runtime imports.
- [x] Author already appears in `CONTRIBUTORS.md`.
@StafaH
StafaH deleted the fix/review-simulation-training-fixes branch October 26, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation isaac-lab Related to Isaac Lab team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant