RoboHome / code /robohome /README.md
wentywenty's picture
Explain the residential scene area range and square-metre notation
074239e verified
|
Raw History Blame Contribute Delete
8.24 kB

RoboHome

Whole-home scene generation with native-scale assets, functional layouts, saved-geometry validation, and Blender rendering. RoboHome accepts a residential description or a floorplan image and produces furnished scenes and structured metadata. Robot tasks are recorded as sidecars; generation does not execute a robot policy.

Code | Dataset | Configuration | Workflows

Contents

Requirements

  • Linux and Python 3.10 for the generation controller.
  • Blender configured with RHG_BLENDER. Packages imported by Blender must also be installed for Blender's Python version.
  • A compatible root filesystem, asset library, annotation/retrieval indexes, prepared asset pools with receipts, runtime template, and floorplan library.
  • Optional: local Qwen3-VL weights and compatible PyTorch/Transformers for image input. GPU rendering requires a supported Blender backend.

Source downloads exclude model weights, scene payloads and binary Python environments.

Installation

Download the standalone source tree, then install host dependencies:

python3 -m pip install huggingface_hub
hf download RoboParty/RoboHome --repo-type dataset --local-dir download \
  --include 'code/robohome/**'
cd download/code/robohome
python3.10 -m venv .venv
source .venv/bin/activate
python -m pip install -r requirements.txt
python tools/verify_source.py --dependencies
python scene_workflow.py --help

Image input additionally needs mutually compatible PyTorch and Torchvision, Transformers with Qwen3-VL support, and opencv-python-headless. src/requirements-floorplan.txt records the snapshot's image dependencies. USD workflows require OpenUSD's pxr; MDL preparation requires the MDL SDK and its Python runtime. See configuration.

Download Data

Code, assets and scenes can be downloaded independently. Run from the project root:

# Asset bundles only.
hf download RoboParty/RoboHome --repo-type dataset --local-dir . \
  --include 'assets/archives/public/**'
# Published scenes only, without the asset corpus.
hf download RoboParty/RoboHome --repo-type dataset --local-dir . \
  --include 'scenes/**'
# One scene: choose a stable public ID from the scene registry.
hf download RoboParty/RoboHome --repo-type dataset --local-dir . \
  --include 'scenes/residential/100-109m2/scene-000001/**'

The complete library in assets/archives/complete/compressed/ and the raw archive in assets/archives/complete/uncompressed/ are alternative archive representations. Download one if a full closure is needed. Concatenate split archives in filename order and check supplied SHA256 manifests before extraction.

Scenes may reference external textures or assets. Consult their dependency records for complete rendering or reproduction. Pin downloads with --revision COMMIT.

100-109m2 means residential home scenes with a floor-area range of 100-109 square metres. m2 is equivalent to m² (square metres). Scene manifest metadata records the grouping range as area_m2_min=100 and area_m2_max=109.

Quick Start

Configure your installation's data locations as described in configuration:

export ROBOHOME_DATA="$PWD/assets/extracted"
export RHG_BLENDER="$(command -v blender)"
export RHG_ROOTFS="$ROBOHOME_DATA/rootfs"
export RHG_LIBRARY_ROOT="$ROBOHOME_DATA/asset_library"
export RHG_RUNTIME_TEMPLATE="$ROBOHOME_DATA/runtime_template.json"
export RHG_PREPARED_ASSET_POOL="$ROBOHOME_DATA/prepared/prepared_assets.sqlite3"
export RHG_COLLISION_FRAME_MAPPINGS="$ROBOHOME_DATA/collision_frame_mappings.json"
export RHG_RPLAN_SEEDS="$ROBOHOME_DATA/floorplans/library.json"

CASE="$PWD/work/case-001"
python scene_workflow.py build-shell --case "$CASE" --seed 42 \
  --description 'A two-bedroom home with a living room, kitchen and balcony'
python scene_workflow.py prepare --case "$CASE" --seed 42
python scene_workflow.py execute --case "$CASE"
python scene_workflow.py audit --case "$CASE"
python scene_workflow.py render --case "$CASE" --device CPU --samples 4

These directory names illustrate an installation, not a fixed archive layout. Point every variable and runtime-template path to the corresponding extracted resource. Use a fresh case directory per run. A room requirement with no matching floorplan fails explicitly. See workflows for image input and rendering.

Batch Collection

Copy config/collection.example.json, replace its placeholders, and inspect a job:

cp config/collection.example.json config/collection.local.json
python src/tools/collection/collect_one.py \
  --config config/collection.local.json \
  --case-id case-001 --seed 42 --cpus 0-3 \
  --dataset "$PWD/scenes" --log-root "$PWD/logs" --dry-run
python src/tools/collection/collection_queue.py \
  --config config/collection.local.json \
  --dataset "$PWD/scenes" --log-root "$PWD/logs" \
  --seed-base 42 --slots 'cpu0:0-3::' --max-new 1

${NAME} values expand from the environment. Replace all placeholders, including unused optional settings, with valid or empty values. Adapt affinity to the host. Workflows covers disk protection, rendering and run retention.

Outputs

Output Purpose
scene_input.json Selected floorplan and input evidence
execution_summary.json Final attempt, exit code, output directory and validation flags
execution/result.json First attempt; recovery can produce a different final output
Final scene directory Saved .blend, composition manifest and asset/import evidence
renders/presentation/render_summary.json Rendering status and image records
Collection dataset package Area-bin package, manifests, floorplan preview and renders

After recovery, follow execution_summary.json.final_output. Generation success requires saved-geometry and output-contract checks; it does not certify physical simulation, visual quality or robot-task success.

Project Layout

robohome/
  scene_workflow.py          # public command-line entrypoint
  requirements.txt           # host dependencies
  config/                    # portable collection configuration
  docs/                      # configuration and workflow guides
  tools/verify_source.py     # source completeness and dependency checks
  src/                       # generator and regression tests
    engine/                  # generation, geometry and rendering
    tools/collection/        # collection queue and packaging
    tools/rplan/             # floorplan conversion
    tools/rplan_library/     # floorplan screening
  assets/                    # downloaded assets
  scenes/                    # downloaded or collected scenes

src/ preserves sibling imports and engine resource paths. RHG_* variables and schema identifiers remain stable for compatibility. Collection tools orchestrate the same public workflow stages.

Tests

python tools/verify_source.py --dependencies
python -m pip install -r requirements-test.txt
python -m pytest -q \
  src/test_rhg_paths_029.py src/test_oss_defaults_023.py src/test_area_bin_033.py \
  src/test_door_jambs_032.py src/test_coffee_sofa_clearance_032.py \
  src/test_furnishing_support_precheck.py src/test_residential_group_search.py \
  src/test_stack_batch_compatibility.py

The verifier checks packaged files, engine signatures and required dynamic helpers without generation. Integration tests needing Blender or external datasets require a configured installation; source checks do not replace them.

Licenses

A project-wide source license has not been declared in this snapshot. Third-party notices describe dependency licenses. Assets and datasets retain their upstream terms and access conditions.