Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion compass/utils/nurec_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def uses_nurec_spg_runtime(args):
if getattr(args, "spg_runtime", False):
return True

if getattr(args, "environment", None) not in NUREC_SCENE_NAMES:
if getattr(args, "nurec_scene", None) not in NUREC_SCENE_NAMES:
return False

usd_file = getattr(args, "nurec_usd_file", "") or ""
Expand Down
5 changes: 4 additions & 1 deletion docker/Dockerfile.rl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
FROM nvcr.io/nvidia/isaac-lab:3.0.0-beta1
# Temporary internal Isaac Lab image from the private NGC registry.
# Replace with public nvcr.io/nvidia/isaac-lab:<version> after the fix is released.
FROM nvcr.io/0947644777160149/internal/isaac-lab:latest-release-3.0.0-119c17247c436f3d97c07dd26c7a52404d3dfc7c

# Omniverse runtime env (required for any kit / pip step run as root in the container).
ENV ACCEPT_EULA=Y
ENV OMNI_KIT_ALLOW_ROOT=1
USER root

# COMPASS lives in /workspace/COMPASS so /workspace/isaaclab (from the base image)
# is preserved when docker/run.sh bind-mounts the host repo at runtime.
Expand Down
65 changes: 0 additions & 65 deletions docker/Dockerfile.rl.isaaclab-3.0-ga

This file was deleted.

8 changes: 3 additions & 5 deletions docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#
# Usage:
# ./docker/run.sh build [tag] # build the image (default tag: latest)
# COMPASS_DOCKERFILE=docker/Dockerfile.rl.isaaclab-3.0-ga ./docker/run.sh build isaaclab-3.0-ga
# ./docker/run.sh assets [--hf-token TOK] # download USDs + X-Mobility ckpt to ./assets
# [--nurec-scene SCENE] # also download a NuRec scene folder
# ./docker/run.sh up # idempotent: start daemon container if not running
Expand All @@ -25,7 +24,6 @@ REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
# Image tag. Override via `./docker/run.sh build mytag` then `COMPASS_IMAGE_TAG=mytag ./docker/run.sh up`.
IMAGE_TAG="${COMPASS_IMAGE_TAG:-latest}"
IMAGE_NAME="compass-rl:${IMAGE_TAG}"
DOCKERFILE="${COMPASS_DOCKERFILE:-docker/Dockerfile.rl}"

# Container name = "compass-<user>-<8-hex of repo path>". Hashing the absolute repo
# path means multiple checkouts of COMPASS coexist without colliding, and the same
Expand Down Expand Up @@ -103,9 +101,9 @@ _compass_run_args() {
# ──────────────────────────────────────────────────────────────────────────────
cmd_build() {
local tag="${1:-${IMAGE_TAG}}"
step "Building ${IMAGE_NAME/:*/:${tag}} from ${DOCKERFILE}"
step "Building ${IMAGE_NAME/:*/:${tag}} from docker/Dockerfile.rl"
cd "${REPO_ROOT}"
docker build --network=host -f "${DOCKERFILE}" -t "compass-rl:${tag}" .
docker build --network=host -f docker/Dockerfile.rl -t "compass-rl:${tag}" .
info "Build complete: compass-rl:${tag}"
}

Expand Down Expand Up @@ -190,7 +188,7 @@ cmd_shell() {

cmd_status() {
echo "Image: ${IMAGE_NAME}"
echo "Dockerfile:${DOCKERFILE}"
echo "Dockerfile:docker/Dockerfile.rl"
if docker image inspect "${IMAGE_NAME}" >/dev/null 2>&1; then
echo "Image OK: $(docker image inspect "${IMAGE_NAME}" --format '{{.Id}} ({{.Created}})')"
else
Expand Down
33 changes: 0 additions & 33 deletions docs/handbook/osmo.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ python osmo/run_osmo.py train \
--wandb-project <wandb-project> \
[--resume-ckpt <wandb-artifact>] \
[--no-residual] \
[--dockerfile docker/Dockerfile.rl.isaaclab-3.0-ga] \
[--image <pre-built-image>]
```

Expand All @@ -78,41 +77,15 @@ python osmo/run_osmo.py eval \
[--no-residual] \
[--embodiment h1|spot|carter|g1|digit] \
[--environment <scene-name>] \
[--dockerfile docker/Dockerfile.rl.isaaclab-3.0-ga] \
[--image <pre-built-image>]
```

### NuRec Real2Sim

For NuRec training or eval, pass the scene download arguments explicitly. The
workflow downloads the scene from
[`nvidia/PhysicalAI-Robotics-NuRec`](https://huggingface.co/datasets/nvidia/PhysicalAI-Robotics-NuRec),
switches to the Real2Sim gin config, and passes `--nurec-usd-file` through to
`run.py` alongside `--nurec-scene`.

```bash
python osmo/run_osmo.py train \
--experiment-name nurec-galileo \
--wandb-project compass-rl \
--dockerfile docker/Dockerfile.rl.isaaclab-3.0-ga \
--embodiment carter \
--nurec-scene nova_carter-galileo \
--nurec-revision refs/pr/34 \
--nurec-usd-file particle_spg-runtime.usdz \
--num-envs 12
```

For NuRec jobs submitted through `run_osmo.py`, use `--nurec-scene` instead of
`--environment`. The workflow uses that scene for both the Hugging Face download
and the `run.py --nurec-scene` value.

### `record`

```bash
python osmo/run_osmo.py record \
--experiment-name <name> \
--dataset-name <output-osmo-dataset> \
[--dockerfile docker/Dockerfile.rl.isaaclab-3.0-ga] \
[--image <pre-built-image>]
```

Expand Down Expand Up @@ -153,12 +126,6 @@ If you do not pass `--image`, `run_osmo.py` will:
2. `docker push` that tag.
3. Pass the resulting image into the `osmo workflow submit` command.

Pass `--dockerfile docker/Dockerfile.rl.isaaclab-3.0-ga` to build an Isaac Sim 6.0.1
image with Isaac Lab pinned to commit
`20976357cce6498d4f3db91b18540f3969c84247`, instead of the legacy
`nvcr.io/nvidia/isaac-lab:3.0.0-beta1` base image. The Dockerfile still exposes
`ISAACLAB_REF` as a build arg for deliberate pin updates.

For repeated runs against the same code, build the image once and pass it via
`--image` to skip the build/push.

Expand Down
Loading
Loading