Repository navigation
[Backport] PR #8624 to release/3.0.0 - #8628
kellyguo11 merged 4 commits into
Conversation
(cherry picked from commit a18ece2)
[Low impact] Updates documentation images and build instructions. The PR appears safe to merge, with non-blocking fixes recommended for GPU selection and resumed batch summaries. FindingsSummaryRefreshes documentation previews and points the environment browser at local JPEGs.
Reviews (1) · Last reviewed commit: "Refresh environment and demo documentati..." · Reviewed by Greptile |
| "--device", | ||
| entry.get("device", args.device), |
There was a problem hiding this comment.
_worker_command always prefers the manifest's device, and six entries hard-code cuda:0. Starting a shard with --device cuda:1 still sends those captures to GPU 0. This defeats the documented multi-GPU split and can make shards compete for memory.
Keep the required CPU/GPU choice separate from the GPU index, or let an explicit CLI device override GPU entries.
| results.append(previous) | ||
| continue |
There was a problem hiding this comment.
Resumed summaries miss captures
--skip-existing adds reused receipts to results but skips writing the batch summary. If a resumed run captures an earlier entry and skips the remaining entries, summary-*-of-*.json omits those reused successes. If every entry is skipped, no summary is written.
Write the complete summary after the loop so maintainers can see the whole selected batch without opening individual receipts.
There was a problem hiding this comment.
Isaac Lab Review Bot
Needs attention: Design and architecture (1), Implementation (1), Style consistency (2). Other reviewed categories look good.
- PR description: The body matches the asset, browser, manifest, and capture-tool diff; classify it as tooling plus documentation, state that end-to-end capture was not run, and remove the transient source-PR status.
- Design and architecture: Private KitVisualizer camera state makes capture behavior depend on an internal attribute; use a supported camera-selection API or configuration.
- Scope and over-engineering: No over-engineering issues.
- API: API changes look good.
- Compatibility and deprecation: No breaking changes identified.
- Implementation: An unmatched
--onlyfilter performs no captures and returns success; validate requested selectors and fail when none match. - Style consistency: Known configuration fields use fallback
getattr, hiding schema drift; branch on optional owners and access required attributes directly. - Test quality: Test quality looks good.
Minor fixes needed. Posted 4 inline findings.
Automated review; human maintainers own approval decisions.
|
|
||
| Each task runs in a separate process so Kit and physics resources are released between | ||
| captures. Manifest entries contain ``path`` and ``task``; optional ``eye``, ``lookat``, | ||
| ``focal_length``, ``physics``, ``overrides``, and ``num_envs`` control the scene and framing. |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — Docstring omits supported manifest keys
This docstring is also the --help text, but omits camera_origin, track_asset, device, and seed, which _worker_command reads and the shipped manifest uses. List them so authors need not read the implementation.
| if base is None: | ||
| base = next(iter(cfg.sim.visualizer_cfgs or []), None) | ||
| viewer = getattr(cfg, "viewer", None) | ||
| eye = args.eye or getattr(base, "eye", None) or getattr(viewer, "eye", (3.0, -3.0, 2.0)) |
There was a problem hiding this comment.
🟡 Warning · Style Consistency — getattr defaults hide known config fields
The coding guide forbids getattr with default values for known attributes. If eye, lookat, or viewer is renamed or absent, framing silently falls back to hardcoded values. Branch explicitly on base is None, then access…
| UsdGeom.Xformable(camera).AddTransformOp().Set(camera_transform) | ||
| # A dedicated camera avoids Kit's stronger session-layer opinions on its | ||
| # interactive perspective camera, including delayed viewport pose changes. | ||
| visualizer._controlled_camera_path = camera_path |
There was a problem hiding this comment.
🟡 Warning · Design Architecture — Tool writes private visualizer attribute
Assigning visualizer._controlled_camera_path depends on internal KitVisualizer state; a rename there silently reverts every capture to the default camera with no error. Select the capture camera through a supported visualizer API or configuration.
| if count < 1 or not 0 <= shard < count: | ||
| raise ValueError("--shard must have 0 <= index < count.") | ||
| selected = [entry for index, entry in enumerate(entries) if index % count == shard] | ||
| if args.only: |
There was a problem hiding this comment.
🟡 Warning · Implementation — Unmatched --only exits successfully
A mistyped --only value filters the selection to nothing, so the run captures no images and still returns 0. Validate requested values against the manifest and fail when none match.
|
Synchronized the expanded visualization-marker audit from #8624 in |
|
run-ci |
Description
Backports #8624 at source head
cb1215a9torelease/3.0.0.The source PR was narrowed to replace only existing JPEG documentation previews. This backport mirrors that latest scope: 114 existing JPEGs are refreshed byte-for-byte from the source PR.
Six of the source PR's 120 image paths do not exist on
release/3.0.0, so this backport preserves those release-branch deletions:docs/source/_static/demos/nist.jpgdocs/source/_static/environment-previews/microduck_flat.jpgdocs/source/_static/environment-previews/rizon_sharpa_coffee.jpgdocs/source/_static/environment-previews/shoelace_dual_franka.jpgdocs/source/_static/examples/sharpa_rj45.jpgdocs/source/_static/examples/tablecloth_h2.jpgThe source PR is still open at the synced revision.
Type of change
Validation
cb1215a9sipsupstream/release/3.0.0— passed; no source packages changedgit diff --check upstream/release/3.0.0...HEAD— passedChecklist
CONTRIBUTORS.md