Skip to content

About

Simulation-ready rebuilds of ScanNet++ rooms, made by a coding agent (Codex CLI, Blender, Isaac Sim)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

ScanNet-Sim

Simulation-ready rebuilds of ScanNet++ rooms, made by a coding agent.

A coding agent rebuilds a real room in Blender from photos and a laser scan, and the result is a scene a simulator can use: every object is its own closed mesh, doors and drawers have joints, and the whole room loads into Isaac Sim (PhysX) with working articulations. This repository holds the harness that runs the agent, the tools the agent calls, the hidden-side evaluation, and the scripts that put robots into the finished room.

The agent is a command-line coding agent — by default GPT-6.2 Astra through the Codex CLI at reasoning effort max. It works alone for a few hours per room, inside a sandboxed workspace, and never sees the evaluation data.

Status. Research code, in active use. One room is built so far; the goal is every room the pipeline applies to — the 906 scenes of the ScanNet++ v2 training and validation splits. The repository contains code and documentation only: no dataset files, no rendered images, no model weights (docs/DATA.md). The rebuilt scenes derive from ScanNet++ and will be released after the ScanNet++ authors have given permission.

Why

Robot-learning simulators need rooms that look real, are split into objects, and have doors and drawers that move. Scanned datasets such as ScanNet++ give geometry and photos of hundreds of real rooms, but a scan is one fused surface: nothing can be picked up, no drawer opens, and floors have holes. Building a simulation-ready copy by hand takes an artist days per room.

This project measures how far a coding agent gets on that job, what it costs, and where the cost and the errors come from — with held-out photos, laser-scan depth and third-party joint annotations (Articulate3D) as the reference.

How it works

flowchart LR
  A["Scene package<br/>photos, laser-scan mesh,<br/>instance labels"] --> B["Coding agent in a sandbox<br/>(Codex CLI)"]
  T["Agent tools<br/>render at real cameras, compare,<br/>bake textures, check objects and joints"] <--> B
  B --> S["scene.blend + objects.json + joints.json"]
  S --> H["Harness, hidden side<br/>snapshots, held-out views,<br/>joint ground truth, PhysX"]
  H -- "phase verdicts only" --> B
  S --> U["USD for Isaac Sim"] --> R["Robots in the room<br/>G1, Franka, bimanual YAM"]
Loading

One run is five phases. Each phase starts a fresh agent session; state passes through files in the workspace (PLAN.md, NOTES.md, state.json).

Phase Work Ends when
P0 plan survey the room, write PLAN.md format check passes
P1 geometry room shell and every object as a closed mesh object recall ≥ 0.95, 90% of objects at F@2cm ≥ 0.80, mean ≥ 0.90 — or progress stalls
P2 joints cut doors and drawers, add joints and interiors joint check passes or progress stalls
P3 appearance bake photo textures, set exposure LPIPS on development frames stalls
P4 finish pass every check, tidy the outputs checks pass

While the agent works, the harness snapshots the scene whenever it changes and scores each snapshot on held-out views. The agent receives only its development-frame scores and the object, joint and physics check results. Details: docs/PIPELINE.md.

What is measured

Axis Metric Reference the agent never sees
Appearance LPIPS, PSNR, SSIM, DINO similarity held-out DSLR and iPhone photos
Geometry F-score at 2 cm, for the scene and per object laser-scan depth and instance labels
Joints precision, recall and F1 of doors and drawers (axis within 10°, origin within 10 cm) Articulate3D annotations
Simulation joints that move in PhysX, objects that must stay still —
Cost agent time, tokens and price per phase, per kind of work and per model call —

Quantitative results are not part of this repository yet. Robot experiments in the rebuilt room: docs/ROBOT.md.

Repository layout

Path Contents
spp_v2_kit/BRIEF_v21.md the task brief the agent reads
spp_v2_kit/tools/ tools the agent calls: render at real camera poses, compare sheets, texture baking, object / joint / mesh checks
spp_v2_kit/harness/ run control: phases, snapshots, automatic scoring, final evaluation, videos, cost report, access audit
spp_v2_kit/eval/ metrics, cost and bottleneck analysis, the step-by-step run viewer
spp_v2_kit/prepare/ turn a ScanNet++ scene into an agent package and a hidden evaluation folder
spp_v2_kit/sim/ Blender scene → USD, PhysX joint check, Isaac Sim renders
spp_v2_kit/ir/ pilot: split baked photo textures into albedo and light sources (Mitsuba 3)
robot_tools/ robots in the rebuilt room: Unitree G1, Franka + π0.5, bimanual YAM + MolmoAct2, coding agent as controller
vla_tools/ DROID-style Franka environment and π0.5 policy server used by robot_tools
docs/ data layout, pipeline, robot experiments

BRIEF_v2.md, BRIEF_template.md, setup_ws.sh, run_codex.sh, run_astra.sh and harness/phases_v20.json belong to the earlier single-session pipeline (v2) and are kept so its results can be reproduced.

Requirements

There is no installer yet. The scripts expect:

  • Linux with an NVIDIA GPU.
  • $R2S_ROOT/blender-5.2.3-linux-x64/blender — Blender 5.2.3 LTS.
  • $R2S_ROOT/gs/bin/python — Python 3.10 with PyTorch, OpenCV, LPIPS, trimesh, Pillow, matplotlib (agent tools and evaluation).
  • $R2S_ROOT/isaaclab_env/bin/python — Isaac Lab 3.0 with Isaac Sim (PhysX check, Isaac renders, robots). Only needed for the simulation and robot steps.
  • Codex CLI, logged in, on a machine where its sandbox starts (hosts that block unprivileged user namespaces make it fail).
  • ScanNet++ data under your own access agreement, and the public Articulate3D annotations for joint scoring.
  • The checkout reachable as ~/scratch/real2sim/{spp_v2_kit,robot_tools,vla_tools} (symlinks are fine); workspaces go to ~/scratch/real2sim/spp_v2/.

The hidden side ($R2S_PRIVATE) must sit where the agent cannot read it. In our setup it is the local disk of the evaluation machine, and the agent runs on a second machine that shares only the home directory.

Running one room

mkdir -p ~/scratch/real2sim && cd ~/scratch/real2sim
git clone https://github.com/KAIST-Visual-AI-Group/ScanNet-Sim.git code
ln -s code/spp_v2_kit spp_v2_kit; ln -s code/robot_tools robot_tools; ln -s code/vla_tools vla_tools
cp code/env.example.sh env.sh        # edit, then:
source env.sh

# prepare a scene once: docs/DATA.md, "Preparing a new scene"

# one automatic run (default agent: GPT-6.2 Astra, reasoning effort max)
bash spp_v2_kit/harness/launch_codex_run.sh <scene> <tag> <agent gpu> <eval gpu> [model] [effort]

# after RUN_END appears in the workspace
bash spp_v2_kit/harness/final_eval.sh   <scene> <tag> <gpu>      # all held-out views, PhysX check, Isaac renders
bash spp_v2_kit/harness/audit_run.sh    <scene> <tag>            # did the agent touch hidden data?
bash spp_v2_kit/harness/final_videos.sh <scene> <tag> <gpu>
$R2S_ROOT/gs/bin/python spp_v2_kit/eval/trace_run.py <scene> <tag>   # step-by-step viewer: every model call, its cost, the images it saw

Environment variables

Variable Default Use
R2S_ROOT /scratch/$USER/real2sim tools: Blender, Python environments, models
R2S_PRIVATE $R2S_ROOT/spp_v2_private hidden evaluation scenes (eval_scenes/) and per-run private results (runs/)
R2S_ROBOT $R2S_ROOT/robot robot-experiment inputs (task definitions, scan-scene USD) and results
R2S_AGENT_HOST empty (this machine) machine on which the Codex sandbox runs, reached over ssh
R2S_FFMPEG ffmpeg video encoding
R2S_FONTS ~/scratch/real2sim/fonts NanumGothic fonts for video and figure labels (several labels are in Korean)

Data and terms

  • ScanNet and ScanNet++ data, and anything derived from them (photos, renders, meshes, images of rebuilt scenes), fall under those datasets' terms of use. None of it is in this repository. Scenes built by the pipeline derive from ScanNet++; we plan to release them after obtaining permission from the ScanNet++ authors.
  • The joint annotations are hidden from the agent on purpose: the point is to measure whether it finds the joints itself.
  • Run records (trace/) embed dataset photos. Keep them on the evaluation machine.
  • This project is not affiliated with the ScanNet or ScanNet++ teams. The name says where the rooms come from.

Roadmap

  • All 906 rooms: the pipeline applies unchanged to the ScanNet++ v2 training and validation scenes. The 236 that have Articulate3D joint annotations come first, with repeated runs on a subset to measure variance.
  • Lower cost per room: context compaction between phases, a single automated texture pass, generator functions for repeated furniture.
  • Lights and materials instead of baked photo textures (spp_v2_kit/ir/).
  • A one-command installer and English labels in videos and figures.

License and acknowledgements

Code: MIT (LICENSE).

This project builds on ScanNet++, Articulate3D, Blender, Isaac Sim and Isaac Lab, the Codex CLI, openpi (π0.5-DROID), sim-evals (DROID simulation setup that vla_tools follows), MolmoAct2 and Mitsuba 3. None of their code or data is included here.

About

Simulation-ready rebuilds of ScanNet++ rooms, made by a coding agent (Codex CLI, Blender, Isaac Sim)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages