Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
246 commits
Select commit Hold shift + click to select a range
9036232
Batch Cosmos camera views and follow the Sim-Transfer recipe in the s…
temiroff Oct 9, 2026
b1050c2
Warm the Cosmos service through its full history window
temiroff Oct 9, 2026
624b2dc
Verify Cosmos cache release and simplify prompt handling
temiroff Oct 9, 2026
d19d3e3
Initialize Cosmos view caches once and organize control documentation
temiroff Oct 9, 2026
2017beb
Keep Cosmos images on the GPU with CUDA IPC and serve on a private Un…
temiroff Oct 9, 2026
a1ee880
Release partial CUDA IPC channels and focus transport coverage
temiroff Oct 9, 2026
687fc86
Clarify CUDA IPC transfer guarantees and view limits
temiroff Oct 9, 2026
dbd6c8c
Document service-side CUDA synchronization accurately
temiroff Oct 9, 2026
2d3a4e7
Run any camera task with Cosmos through --cosmos
temiroff Oct 9, 2026
43bab9a
Test Cosmos image publication and document supported cameras
temiroff Oct 9, 2026
0ec63a9
Clarify Cosmos camera support and derive shared configuration values
temiroff Oct 9, 2026
a8539f0
Derive Cosmos view counts and episode budgets per session
temiroff Oct 9, 2026
1f57461
Merge service review fixes into Cosmos transport
temiroff Oct 9, 2026
50d6a38
Sync Cosmos service fixes and preserve camera preset settings
temiroff Oct 9, 2026
101af11
Support several environments in the Shadow Hand Cosmos presets
temiroff Oct 9, 2026
badcb48
Require per-step captures for several Cosmos environments
temiroff Oct 9, 2026
7e5fadf
Queue image transfer controls only for the views a capture covers
temiroff Oct 9, 2026
a258568
Merge per-capture image transfer queueing into Cosmos transport
temiroff Oct 9, 2026
3743d61
Drop the per-step capture requirement for several Cosmos environments
temiroff Oct 9, 2026
7c4b0a8
Merge per-capture image transfer queueing into Cosmos camera
temiroff Oct 9, 2026
26458c9
Document recording several Cosmos environments during headless training
temiroff Oct 9, 2026
2b0bb1a
Explain the Shadow Hand Cosmos frame budget in the docs
temiroff Oct 9, 2026
ab54cb0
Merge Shadow Hand frame budget docs into Cosmos transport
temiroff Oct 9, 2026
b74562c
Merge Shadow Hand frame budget docs into Cosmos camera
temiroff Oct 9, 2026
66f0a62
Leave the episode budget out of the Cosmos prompt example
temiroff Oct 9, 2026
0fba320
Explain which canvas the Cosmos warmup compiles
temiroff Oct 9, 2026
ea78168
Default the Cosmos control to depth
temiroff Oct 9, 2026
fab989a
Name the replaced Cosmos frame-budget default in the changelog
temiroff Oct 9, 2026
a5c6e14
Merge service review fixes into Cosmos transport
temiroff Oct 9, 2026
9c3e185
Merge service review fixes into Cosmos camera
temiroff Oct 9, 2026
ded12b3
Capture every step in the Shadow Hand Cosmos presets
temiroff Oct 10, 2026
6242a76
Remove the Cosmos server's episode length cap
temiroff Oct 10, 2026
69f3f18
Merge branch 'atemirov/review-service-publish' into atemirov/review-t…
temiroff Oct 10, 2026
49f8abf
Drop the removed episode cap from the transport test service
temiroff Oct 10, 2026
4f1752d
Merge service cap removal into Cosmos camera
temiroff Oct 10, 2026
1f44b41
Remove the episode cap from the Cosmos camera client
temiroff Oct 10, 2026
ef35574
Describe per-view frame budgets in the batch length comment
temiroff Oct 10, 2026
ceef4b8
Merge service comment fix into Cosmos transport
temiroff Oct 10, 2026
1d267d9
Merge service comment fix into Cosmos camera
temiroff Oct 10, 2026
9ad89a9
Share Cosmos CUDA IPC buffers between peer GPUs
temiroff Oct 11, 2026
2462bf0
Mention peer GPUs in the Cosmos transport option help
temiroff Oct 11, 2026
33e1f47
Wrap a long line in the Cosmos transport docs
temiroff Oct 11, 2026
0c35890
Split a Cosmos camera's environments across several services
temiroff Oct 11, 2026
559af38
Import Cosmos CUDA IPC events on the waiting GPU
temiroff Oct 11, 2026
f387e2a
Merge branch 'atemirov/cosmos-gpu-peer' into atemirov/cosmos-multi-gpu
temiroff Oct 11, 2026
09656da
Check that restart seeds reach the Cosmos generation iterator
temiroff Oct 12, 2026
0a180fc
Count Cosmos episode frames in one helper that matches the environmen…
temiroff Oct 12, 2026
45906ae
Merge Cosmos frame budget helper and seeds test into Cosmos transport
temiroff Oct 12, 2026
c00f7b6
Describe both Cosmos stream input kinds in the service protocol
temiroff Oct 12, 2026
5067e8a
Use CUDA IPC in auto only for a Cosmos service on this machine
temiroff Oct 12, 2026
55f239d
Merge frame budget helper, stream types, and host check into Cosmos c…
temiroff Oct 12, 2026
4b0e635
Size the --cosmos frame budget with the shared episode helper
temiroff Oct 12, 2026
aaaa4a3
Say that feature extraction only distinguishes one image update frame…
temiroff Oct 12, 2026
439e85d
Merge frame budget helper, stream types, and host check into Cosmos p…
temiroff Oct 12, 2026
e054461
Select the Cosmos peer GPU test's service device through the test dev…
temiroff Oct 12, 2026
f67abe2
Merge frame budget helper, host check, and peer test devices into Cos…
temiroff Oct 12, 2026
c6633e8
Let each Cosmos IPC process own the buffer it writes and free it only…
temiroff Oct 12, 2026
f02dfc9
Replace a Cosmos Unix socket file only when nothing listens on it
temiroff Oct 12, 2026
647f0a4
Merge IPC buffer ownership and socket replacement fixes into Cosmos c…
temiroff Oct 12, 2026
de67a3a
Merge IPC buffer ownership and socket replacement fixes into Cosmos p…
temiroff Oct 12, 2026
1d4ab49
Keep Cosmos protocol version 2 for sessions on peer GPUs
temiroff Oct 12, 2026
0c063da
Merge IPC buffer ownership, socket replacement, and protocol fixes in…
temiroff Oct 12, 2026
c29648d
Update the sharded failure comment and the release test for direct st…
temiroff Oct 12, 2026
1ea0e97
Format the Cosmos peer GPU test module
temiroff Oct 12, 2026
5496ade
Merge peer GPU test formatting into Cosmos multi-GPU
temiroff Oct 12, 2026
76a90e7
Merge exp/cosmos after the Cosmos service PR
temiroff Oct 12, 2026
2353acc
Merge exp/cosmos after the Cosmos service PR
temiroff Oct 12, 2026
0380386
Merge exp/cosmos after the Cosmos service PR
temiroff Oct 12, 2026
a22a7ef
Merge exp/cosmos after the Cosmos service PR
temiroff Oct 12, 2026
ecdb49f
Read Cosmos prompts from text and JSON files
temiroff Oct 12, 2026
9d07039
Serialize structured JSON prompt captions once
temiroff Oct 12, 2026
f447268
Keep the merged Cosmos session changelog fragments unchanged
temiroff Oct 12, 2026
a94e5d4
Merge the camera changelog fix
temiroff Oct 12, 2026
20570e9
Merge the camera changelog fix
temiroff Oct 12, 2026
4c346e9
Merge the camera changelog fix
temiroff Oct 12, 2026
452d4e7
Share one Cosmos session across several cameras
temiroff Oct 12, 2026
6c5656a
Keep Cosmos IPC buffers until release is confirmed
temiroff Oct 12, 2026
87e038c
Merge the transport review fixes
temiroff Oct 12, 2026
32d23fe
Merge the transport review fixes
temiroff Oct 12, 2026
4376b88
Merge the transport review fixes
temiroff Oct 12, 2026
87ebadf
Merge the transport review fixes
temiroff Oct 12, 2026
2ff5c34
Merge the transport review fixes
temiroff Oct 12, 2026
6d9b0a3
Accept comma-separated Cosmos camera names
temiroff Oct 12, 2026
e781b80
Correct the Cosmos docs on view-count changes and reset-free clips
temiroff Oct 12, 2026
b9e458f
Merge the Cosmos doc corrections
temiroff Oct 12, 2026
5ad7f31
Merge the Cosmos doc corrections
temiroff Oct 12, 2026
3b63142
Merge the Cosmos doc corrections
temiroff Oct 12, 2026
7ec4b7c
Merge the Cosmos doc corrections
temiroff Oct 12, 2026
13e7bd3
Name the command-line form of the Cosmos camera overrides
temiroff Oct 13, 2026
97a4115
Merge the camera branch's command-line override wording
temiroff Oct 13, 2026
2aa2c8f
Merge the peer-GPU branch's command-line override wording
temiroff Oct 13, 2026
7b8e9cd
Merge the multi-GPU branch's command-line override wording
temiroff Oct 13, 2026
d64ed96
Merge the camera branch's command-line override wording
temiroff Oct 13, 2026
19835cf
Explain why the blur control accepts arrays and device tensors
temiroff Oct 13, 2026
5f03dc5
Remove the unused blur control from the Cosmos service
temiroff Oct 19, 2026
ec5fc69
Merge the blur removal into the Cosmos transport PR
temiroff Oct 19, 2026
96e704d
Merge the transport PR and remove the blur control from the camera in…
temiroff Oct 19, 2026
865def1
Merge the camera PR and remove the blur control from the GPU peer tra…
temiroff Oct 19, 2026
c0660b6
Merge the GPU peer PR and remove the blur control from the multi-GPU …
temiroff Oct 19, 2026
e9805d8
Merge the multi-GPU PR and remove the blur control from the multi-cam…
temiroff Oct 19, 2026
c0c47d2
Escape the control choices in the Cosmos options table
temiroff Oct 19, 2026
d1d803d
Escape the control choices in the Cosmos options table
temiroff Oct 19, 2026
b4e3682
Escape the control choices in the Cosmos options table
temiroff Oct 19, 2026
99772fe
Escape the control choices in the Cosmos options table
temiroff Oct 19, 2026
7a72dfe
Merge branch 'wip/camera-fix' into wip/prompt-fix
temiroff Oct 19, 2026
a859a07
Record the blur removal in a new changelog fragment
temiroff Oct 19, 2026
47894ba
Merge branch 'wip/transport-fix' into wip/camera-fix
temiroff Oct 19, 2026
832f1cf
Merge branch 'wip/camera-fix' into wip/gpu-peer-fix
temiroff Oct 19, 2026
8765351
Merge branch 'wip/gpu-peer-fix' into wip/multi-gpu-fix
temiroff Oct 19, 2026
e23cd15
Merge branch 'wip/camera-fix' into wip/prompt-fix
temiroff Oct 19, 2026
c2151a5
Merge the multi-GPU PR with the changelog fix
temiroff Oct 19, 2026
30b1166
Merge the prompt files PR with the multi-camera session
temiroff Oct 19, 2026
3c451d4
Add the Cosmos 3 Transfer Shadow Hand quick start
temiroff Oct 19, 2026
bee69bd
Register the causal model aliases in setup instead of vendoring a patch
temiroff Oct 19, 2026
19ec660
Reduce the Cosmos quick start to the built-in commands
temiroff Oct 19, 2026
78ba025
Explain the Isaac Lab options in the Cosmos Shadow Hand README
temiroff Oct 19, 2026
901baac
Set the Cosmos options in a config file instead of command-line flags
temiroff Oct 19, 2026
c6acd06
Merge the camera PR and set the GPU peer transport in the Cosmos config
temiroff Oct 19, 2026
dbb7e4f
Merge the GPU peer PR and list the service endpoints in the Cosmos co…
temiroff Oct 19, 2026
8b44bc3
Merge the multi-GPU PR and name the shared cameras in the Cosmos config
temiroff Oct 19, 2026
a2da33d
Merge the camera PR and read prompt files from the Cosmos config
temiroff Oct 19, 2026
6b1c326
Merge the multi-camera PR with the Cosmos config file
temiroff Oct 19, 2026
fb764fe
Merge the prompt files PR with the Cosmos config file
temiroff Oct 19, 2026
1168fef
Use the Cosmos config file in the Shadow Hand README
temiroff Oct 19, 2026
1264134
Remove the GPU requirement and the checkpoint link from the Cosmos RE…
temiroff Oct 19, 2026
faf7ca8
Add an example Cosmos config for the Shadow Hand task
temiroff Oct 19, 2026
4118fed
Configure Cosmos through presets and overrides instead of command-lin…
temiroff Oct 19, 2026
4c140db
Merge branch 'wip/camera-fix' into wip/gpu-peer-fix
temiroff Oct 19, 2026
f2985d2
Set the peer GPU transport with an override
temiroff Oct 19, 2026
75ea52e
Merge the GPU peer PR and set the service endpoints with an override
temiroff Oct 19, 2026
63b1c01
Merge the multi-GPU PR and pass the shared cameras to apply_cosmos
temiroff Oct 19, 2026
5771461
Merge the camera PR and keep prompt files as a helper for configurations
temiroff Oct 19, 2026
5cf39a9
Merge the multi-camera PR with the override-based Cosmos options
temiroff Oct 19, 2026
e0cf304
Merge the prompt files PR
temiroff Oct 19, 2026
b73d101
Use Isaac Lab overrides for the Cosmos options in the Shadow Hand README
temiroff Oct 19, 2026
9410613
Keep the recorded Shadow Hand clip free of mid-episode resets
temiroff Oct 19, 2026
b83349c
Remove the unused existing-camera update path and trim the apply_cosm…
temiroff Oct 19, 2026
8403637
Merge branch 'wip/camera-fix' into wip/gpu-peer-fix
temiroff Oct 19, 2026
69ab790
Merge the camera PR and state when the peer GPU transport is rejected
temiroff Oct 19, 2026
cc258b9
Merge the GPU peer PR and remove the unused sharded transport property
temiroff Oct 19, 2026
2c6ad85
Merge the multi-GPU PR, check every shared camera renders synchronous…
temiroff Oct 19, 2026
5178a18
Merge branch 'wip/camera-fix' into wip/prompt-fix
temiroff Oct 19, 2026
e67a809
Merge the camera PR, drop the bracketed prompt-file lists, and fix th…
temiroff Oct 19, 2026
dad1393
Merge branch 'wip/multi-camera-fix' into atemirov/cosmos-demo
temiroff Oct 19, 2026
eaaef3f
Merge branch 'wip/prompt-fix' into atemirov/cosmos-demo
temiroff Oct 19, 2026
598f6e6
Split training from recording in the Cosmos README and define the che…
temiroff Oct 19, 2026
099a28d
Identify the service's machine by boot ID only and trim repeated tran…
temiroff Oct 19, 2026
8dc5e97
Reject misspelled override fields and say which Cosmos control the ch…
temiroff Oct 19, 2026
6af0701
Merge branch 'wip/transport-fix' into wip/camera-fix
temiroff Oct 19, 2026
49c8ba9
Merge the camera PR with the boot-ID transport check and trimmed tran…
temiroff Oct 19, 2026
c586ca2
Merge the GPU peer PR with the boot-ID transport check
temiroff Oct 19, 2026
e9d91af
Merge branch 'wip/multi-gpu-fix' into wip/multi-camera-fix
temiroff Oct 19, 2026
b0c72fc
Merge the multi-GPU PR and select shared cameras only by name
temiroff Oct 19, 2026
d1b42d1
Merge the camera PR with the boot-ID transport check and the override…
temiroff Oct 19, 2026
3f0d280
Merge the updated Cosmos stack
temiroff Oct 19, 2026
8034cc1
Merge the updated Cosmos stack
temiroff Oct 19, 2026
7c706de
Say that misspelled overrides are rejected
temiroff Oct 19, 2026
42cb5fa
Keep the Cosmos camera helpers and docs to depth control
temiroff Oct 19, 2026
ffd2501
Merge the camera PR with depth-only camera helpers
temiroff Oct 19, 2026
ece0477
Merge the GPU peer PR with depth-only camera helpers
temiroff Oct 19, 2026
0315957
Merge the multi-GPU PR with depth-only camera helpers
temiroff Oct 19, 2026
11a47d5
Merge the camera PR with depth-only camera helpers
temiroff Oct 19, 2026
74a843b
Merge the updated Cosmos stack
temiroff Oct 19, 2026
2bab5fe
Merge the updated Cosmos stack
temiroff Oct 19, 2026
f3b9cfe
Expose the Shadow Hand preset's Cosmos settings as env.cosmos
temiroff Oct 19, 2026
71dce69
Merge the camera PR with env.cosmos
temiroff Oct 19, 2026
99a98c7
Set the peer GPU transport with env.cosmos
temiroff Oct 19, 2026
c73eaf0
Merge the GPU peer PR with env.cosmos
temiroff Oct 19, 2026
7c2d098
List the service endpoints with env.cosmos
temiroff Oct 19, 2026
89ee6e2
Merge the camera PR with env.cosmos
temiroff Oct 19, 2026
e6cad13
Merge the multi-GPU PR with env.cosmos
temiroff Oct 19, 2026
16fce14
Merge the updated Cosmos stack
temiroff Oct 19, 2026
e059d02
Merge the updated Cosmos stack
temiroff Oct 19, 2026
b09053e
Set the Cosmos prompts with env.cosmos in the README
temiroff Oct 19, 2026
db7bb4d
Use a misspelling codespell accepts in the override test
temiroff Oct 19, 2026
ff65e83
Merge the override test spelling fix
temiroff Oct 19, 2026
2e34229
Merge the override test spelling fix
temiroff Oct 19, 2026
5633c21
Merge the override test spelling fix
temiroff Oct 19, 2026
4234635
Merge the override test spelling fix
temiroff Oct 19, 2026
a79503a
Merge the updated Cosmos stack
temiroff Oct 19, 2026
2c10739
Merge the updated Cosmos stack
temiroff Oct 19, 2026
ed04a20
Point the contributing guide's pull request link at main, as on main
temiroff Oct 19, 2026
8d9a7ed
Merge the contributing guide link fix
temiroff Oct 19, 2026
14c6e2a
Merge the contributing guide link fix
temiroff Oct 19, 2026
5d7beaf
Merge the contributing guide link fix
temiroff Oct 19, 2026
7d30c7c
Merge the contributing guide link fix
temiroff Oct 19, 2026
1abe13c
Merge the contributing guide link fix
temiroff Oct 19, 2026
dc68789
Merge the updated Cosmos stack
temiroff Oct 19, 2026
09e3f77
Merge the updated Cosmos stack
temiroff Oct 19, 2026
0bcf2f6
Keep env.cosmos working in derived configs, require depth after overr…
temiroff Oct 19, 2026
ddc3caa
Merge the camera PR review fixes
temiroff Oct 19, 2026
00e39a8
Merge the GPU peer PR with the review fixes
temiroff Oct 19, 2026
4a3d643
Merge the camera PR review fixes
temiroff Oct 19, 2026
bb08fce
Merge the camera PR review fixes and drop a stale test comment
temiroff Oct 19, 2026
aef22d0
Merge the multi-GPU PR with the review fixes
temiroff Oct 19, 2026
7d7fb26
Say that several cameras are configured in code and share a session o…
temiroff Oct 19, 2026
0422c16
Merge the updated Cosmos stack
temiroff Oct 19, 2026
f3d68fa
Merge the updated Cosmos stack
temiroff Oct 19, 2026
a0e286e
Scope the typo note to env.cosmos and qualify the default-history advice
temiroff Oct 19, 2026
ce79d26
Move the canvas crop into the Cosmos camera, its only user
temiroff Oct 19, 2026
42523f9
Merge the updated Cosmos camera
temiroff Oct 19, 2026
8b3f573
Merge the updated Cosmos camera
temiroff Oct 19, 2026
08d983c
Merge the updated Cosmos camera
temiroff Oct 19, 2026
a41e243
Merge the updated Cosmos camera
temiroff Oct 19, 2026
9f59ae6
Merge the updated Cosmos camera
temiroff Oct 19, 2026
5d527d5
Merge the updated Cosmos camera
temiroff Oct 19, 2026
8229a92
Keep only depth control for Cosmos and drop the modality setting
temiroff Oct 19, 2026
d698fd5
Merge the depth-only Cosmos service and drop the depth checks it make…
temiroff Oct 19, 2026
fb91ad3
Merge the depth-only Cosmos camera
temiroff Oct 19, 2026
7cc9228
Merge the depth-only Cosmos camera
temiroff Oct 19, 2026
6af7da2
Merge the depth-only Cosmos camera
temiroff Oct 19, 2026
49fc9f2
Merge the depth-only Cosmos camera
temiroff Oct 19, 2026
58103c7
Merge the depth-only Cosmos stack
temiroff Oct 19, 2026
0146164
Merge the depth-only Cosmos stack
temiroff Oct 19, 2026
81cc5e0
Skip the isaaclab_tasks changelog for the preset's removed modality a…
temiroff Oct 19, 2026
5cb32ec
Merge the depth-only Cosmos changelog fragment
temiroff Oct 19, 2026
393a836
Merge the depth-only Cosmos changelog fragment
temiroff Oct 19, 2026
388ed96
Merge the depth-only Cosmos changelog fragment
temiroff Oct 19, 2026
2e283f7
Merge the depth-only Cosmos changelog fragment
temiroff Oct 19, 2026
50a81af
Merge the depth-only Cosmos changelog fragment
temiroff Oct 19, 2026
01e6372
Merge the depth-only Cosmos changelog fragment
temiroff Oct 19, 2026
57d5936
Merge the depth-only Cosmos changelog fragment
temiroff Oct 19, 2026
60e4796
Drop list indexes from override paths, which only reached the Cosmos …
temiroff Oct 19, 2026
7ccb26c
Merge override paths without list indexes
temiroff Oct 19, 2026
ee9cd7a
Merge override paths without list indexes
temiroff Oct 19, 2026
dee709a
Merge override paths without list indexes
temiroff Oct 19, 2026
37b675e
Merge override paths without list indexes
temiroff Oct 19, 2026
e3c3467
Merge override paths without list indexes
temiroff Oct 19, 2026
9f4de93
Merge override paths without list indexes
temiroff Oct 19, 2026
373c45f
Use the task's environment count in apply_cosmos instead of a num_env…
temiroff Oct 19, 2026
8d9824f
Merge apply_cosmos without a num_envs argument
temiroff Oct 19, 2026
c4be526
Merge apply_cosmos without a num_envs argument
temiroff Oct 19, 2026
c7ba951
Merge apply_cosmos without a num_envs argument
temiroff Oct 20, 2026
f63aa58
Merge apply_cosmos without a num_envs argument
temiroff Oct 20, 2026
c63cc01
Merge apply_cosmos without a num_envs argument
temiroff Oct 20, 2026
f0da5f4
Merge apply_cosmos without a num_envs argument
temiroff Oct 20, 2026
b3207c4
Add CosmosModelCfg.prompt_files so prompt files are set like any over…
temiroff Oct 20, 2026
15b532c
Merge prompt files as their own field
temiroff Oct 20, 2026
11ef3f3
Keep the Cosmos service's default history in the docs
temiroff Oct 20, 2026
f5b7872
Merge the default-history docs
temiroff Oct 20, 2026
1c1763f
Merge the default-history docs
temiroff Oct 20, 2026
8430854
Keep the Cosmos service's default history in the demo
temiroff Oct 20, 2026
e0abc0f
Merge the default-history docs
temiroff Oct 20, 2026
2fc66db
Merge the default-history docs
temiroff Oct 20, 2026
b03cd4f
Merge the default-history docs
temiroff Oct 20, 2026
fd78cdd
Merge the default-history docs
temiroff Oct 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions demos/cosmos3-transfer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Cosmos 3 Transfer on the Shadow Hand camera task

Isaac Lab renders the Shadow Hand camera's depth, Cosmos turns it into a realistic image, and the policy trains on that
image. Run the Cosmos service in one terminal and `isaaclab train` in another. These are the commands from
[Serving Cosmos](../../source/isaaclab_experimental/docs/cosmos_service.md) and
[Cosmos camera integration](../../source/isaaclab_experimental/docs/cosmos.md); see those pages for every option.

## 1. Start the Cosmos service

In its own terminal, with the paths of your Isaac Lab checkout, the
[Cosmos Framework](https://github.com/NVIDIA/cosmos-framework) checkout and the checkpoint folder:

```bash
export ISAAC_LAB_ROOT=/absolute/path/to/IsaacLab
export COSMOS_FRAMEWORK_ROOT=/absolute/path/to/cosmos-framework
export COSMOS_CHECKPOINT=/absolute/path/to/Cosmos3-Nano-Sim-Transfer

cd "$COSMOS_FRAMEWORK_ROOT"
uv sync --locked --all-extras --group=cu130-train
uv run --no-sync uv pip install --editable "$ISAAC_LAB_ROOT/source/isaaclab_experimental/isaaclab_experimental/cosmos"
uv run --no-sync hf download nvidia/Cosmos3-Nano-Sim-Transfer --local-dir "$COSMOS_CHECKPOINT"

export LD_LIBRARY_PATH=
uv run --no-sync isaaclab-cosmos-server --checkpoint "$COSMOS_CHECKPOINT"
```

The `uv sync`, `uv pip install`, and `hf download` commands are one-time setup. Wait for `Cosmos ready at ...`.
If two environments do not fit beside Isaac Sim, run the service on a GPU of its own with `--device cuda:1`.

## 2. Train with Cosmos on the camera

In a second terminal:

```bash
export ISAAC_LAB_ROOT=/absolute/path/to/IsaacLab
cd "$ISAAC_LAB_ROOT"
uv run isaaclab cosmos status # expect "ready": true and "session_active": false

uv run isaaclab train --task Isaac-Reorient-Cube-Shadow-Camera-Direct --rl_library rsl_rl --num_envs 2 \
presets=cosmos \
env.cosmos.prompt="['A close-up overhead view of a robotic Shadow Hand turning a red cube on a wooden workbench.', 'A close-up overhead view of a robotic Shadow Hand turning a blue cube in a bright white lab.']"
```

- `presets=cosmos` selects the task's Cosmos camera: depth goes to the service and the generated image replaces the
camera's `rgb`.
- `env.cosmos` holds the camera's Cosmos settings, set with ordinary Isaac Lab overrides. `env.cosmos.prompt`
describes the scene of each environment: with `--num_envs 2` the first prompt is environment 0 and the second is
environment 1. `env.cosmos.endpoint` and `env.cosmos.transport` work the same way; see the
[camera integration guide](../../source/isaaclab_experimental/docs/cosmos.md). A misspelled `env.cosmos` field stops
the run with an error naming it.

## 3. Record a clip

The same training run, recording both environments side by side:

```bash
uv run --extra video isaaclab train --task Isaac-Reorient-Cube-Shadow-Camera-Direct --rl_library rsl_rl --num_envs 2 \
--max_iterations 20 \
--viz newton_gl --video viz:newton_gl:streaming_view --video_length 600 \
presets=cosmos env.fall_dist=1000.0 agent.init_at_random_ep_len=false \
env.cosmos.prompt="['A close-up overhead view of a robotic Shadow Hand turning a red cube on a wooden workbench.', 'A close-up overhead view of a robotic Shadow Hand turning a blue cube in a bright white lab.']"
```

- `--viz newton_gl --video viz:newton_gl:streaming_view --video_length 600` records 600 steps (one episode) of the
generated images. The run prints the folder with the clip. Without a screen, for example over SSH, run
`unset DISPLAY` first.
- A reset shows black until the environment's next chunk. `env.fall_dist=1000.0` and
`agent.init_at_random_ep_len=false` keep the clip free of mid-episode resets: a dropped cube does not end the
episode, and both environments run to the time limit together.

Press Ctrl+C in the first terminal to stop the service.
2 changes: 1 addition & 1 deletion docs/source/refs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ follow the following steps to contribute code:
3. Create a new branch for your changes.
4. Make your changes and commit them.
5. Push your changes to your fork.
6. Submit a pull request to the `develop branch <https://github.com/isaac-sim/IsaacLab/compare/develop...>`__.
6. Submit a pull request to the `main branch <https://github.com/isaac-sim/IsaacLab/compare/main...>`__.
7. Ensure all the checks on the pull request template are performed.

After sending a pull request, the maintainers will review your code and provide feedback.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Added :func:`~isaaclab_experimental.cosmos.cosmos_camera` and :func:`~isaaclab_experimental.cosmos.apply_cosmos`
to put Cosmos on compatible RGB-only pinhole cameras at a Cosmos canvas with the same view and original output
size. ``apply_cosmos`` rejects a missing or busy service before the simulation is set up.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Added CUDA IPC between GPUs for the Cosmos service: the service can run on another GPU of the same machine that
can access the camera's GPU directly, over NVLink or PCIe, and images still move without host copies. Both
processes must see both GPUs; ``auto`` uses the socket otherwise, and ``cuda_ipc`` fails instead.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Added :attr:`~isaaclab_experimental.cosmos.CosmosModelCfg.cameras` so several cameras share one Cosmos session:
each capture generates all their environments as one batch, and each camera publishes its own views at its own
output size. :func:`~isaaclab_experimental.cosmos.apply_cosmos` takes a list of camera names and renders them at one
canvas; :func:`~isaaclab_experimental.cosmos.cosmos_camera` takes the canvas to use.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Added splitting a Cosmos camera's environments across several services, for example one per GPU:
:attr:`~isaaclab_experimental.cosmos.CosmosModelCfg.endpoint` takes a list, and the environments are split into
contiguous shares of near-equal size, one per service. Each step sends every service its share before waiting
for any reply, so the services generate at the same time. A failure on any service closes every session.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
* Added :attr:`~isaaclab_experimental.cosmos.CosmosModelCfg.prompt_files` and
:func:`~isaaclab_experimental.cosmos.read_prompt_files`, which read one Cosmos prompt per file: ``.txt`` text
without leading and trailing whitespace, and ``.json`` structured captions serialized once, keeping their
structure. Patterns expand in sorted order. Paths have their own field, so ``prompt`` is always text.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* Added a CUDA IPC transport to the Cosmos service: on the same Linux machine and GPU, controls and generated images
move between the camera and service through shared GPU memory, ordered by interprocess CUDA events, without
host copies for that transfer. The camera-side IPC handoff uses events; the service synchronizes its CUDA
stream before replying to report GPU faults.
:attr:`~isaaclab_experimental.cosmos.CosmosModelCfg.transport` selects ``auto`` (default), ``cuda_ipc`` or
``socket``; ``auto`` uses CUDA IPC only when the service's ``status`` reports this machine's boot ID and the
camera's GPU. Each process allocates the buffer it writes and frees it only after the other process released
it.
* Added Unix socket endpoints (``unix:///path``) to the Cosmos service. On Linux the service and cameras default
to ``/tmp/isaaclab-cosmos-<uid>.sock``, which only the user can open; ``tcp://host:port`` remains available for
Isaac Lab on another machine. ``isaaclab-cosmos-server --endpoint`` replaces ``--host`` and ``--port``.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Fixed delays of small Cosmos messages over TCP: each message was written in two parts without
``TCP_NODELAY``, so it could wait 40 ms for a delayed acknowledgment. Messages are now written at once with
``TCP_NODELAY`` on both ends.
* Fixed the Cosmos connection error to name the endpoint and how to start the server.
* Fixed CUDA IPC session setup leaking buffers and events when a later resource could not be created or opened.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* Removed the ``blur`` Cosmos control and ``blur_processor``, which no workflow used: the current Sim-Transfer
checkpoint is depth-trained, and blur was the only control the service had to copy between GPU and CPU.
* Removed the ``edge`` and ``seg`` Cosmos controls with their recipes and helpers (``edge_processor``,
``regional_edge_processor``, ``segmentation_processor``, ``edge_control``, ``region_control``,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we keep this information about edge, segment etc. This doesn't exist yet.

``regional_edges``, ``RegionalEdgeControl``) and ``CosmosModelCfg.modality``: the checkpoint is depth-trained,
so Cosmos uses depth control only. The service protocol is now version 3.
Loading
Loading