| <div align="center"> |
|
|
| # GR00T-VisualSim2Real |
|
|
|
|
| <table> |
| <tr> |
| <td align="center" valign="top" width="50%"> |
| <p><b>VIRAL</b><br><br><b>Visual Sim-to-Real at Scale for<br>Humanoid Loco-Manipulation</b></p> |
| <a href="https://arxiv.org/abs/2511.15200"><img src="https://img.shields.io/badge/arXiv-2511.15200-b31b1b.svg" alt="VIRAL Paper"></a> |
| <a href="https://viral-humanoid.github.io/"><img src="https://img.shields.io/badge/Project-Page-blue.svg" alt="VIRAL Project Page"></a> |
| <a href="https://github.com/NVlabs/GR00T-VisualSim2Real/tree/main"><img src="https://img.shields.io/badge/Code-viral-lightgrey.svg" alt="VIRAL Code"></a> |
| <br><br> |
| <img src="./media/viral-teaser.gif" width="100%"> |
| </td> |
| <td align="center" valign="top" width="50%"> |
| <p><b>DoorMan</b><br><br><b>Opening the Sim-to-Real Door for<br>Humanoid Pixel-to-Action Policy Transfer</b></p> |
| <a href="https://arxiv.org/abs/2512.01061"><img src="https://img.shields.io/badge/arXiv-2512.01061-b31b1b.svg" alt="DoorMan Paper"></a> |
| <a href="https://doorman-humanoid.github.io/"><img src="https://img.shields.io/badge/Project-Page-blue.svg" alt="DoorMan Project Page"></a> |
| <a href="https://github.com/NVlabs/GR00T-VisualSim2Real/tree/doorman"><img src="https://img.shields.io/badge/Code-doorman-lightgrey.svg" alt="DoorMan Code"></a> |
| <br><br> |
| <img src="./media/doorman-teaser.gif" width="100%"> |
| </td> |
| </tr> |
| </table> |
| |
|
|
| </div> |
|
|
| <br/> |
|
|
| ## Overview |
| This repository contains the application code for **VIRAL** (Visual Sim-to-Real for Humanoid Loco-Manipulation) and **DoorMan**. The system enables humanoid robots (e.g., Unitree G1) to perform complex tasks like opening heavy doors in the real world through a teacher-student simulation framework. |
|
|
| This repository contains the official code for: |
|
|
| - **VIRAL**: *Visual Sim-to-Real at Scale for Humanoid Loco-Manipulation* |
| [Paper](https://arxiv.org/abs/2511.15200) | [Project](https://viral-humanoid.github.io/) | [Code](https://github.com/NVlabs/GR00T-VisualSim2Real/tree/main) |
| - **DoorMan**: *Opening the Sim-to-Real Door for Humanoid Pixel-to-Action Policy Transfer* |
| [Paper](https://arxiv.org/abs/2512.01061) | [Project](https://doorman-humanoid.github.io/) | [Code](https://github.com/NVlabs/GR00T-VisualSim2Real/tree/doorman) |
|
|
| --- |
|
|
|
|
| # VIRAL: Visual Sim-to-Real at Scale for Humanoid Loco-Manipulation |
|
|
| A reinforcement learning framework for humanoid robot loco-manipulation on the **Unitree G1** robot. The codebase supports: |
|
|
| - **Teacher Training** -- PPO-based policy training with privileged state observations |
| - **Student Training** -- Vision-based policy distillation (DAgger) from a trained teacher using RGB camera input |
| - **Evaluation** -- Evaluate trained teacher or student checkpoints, with optional ONNX export for deployment |
|
|
| Built on [Isaac Lab](https://isaac-sim.github.io/IsaacLab/) (Isaac Sim 5.1), [TRL](https://github.com/huggingface/trl), and [Hydra](https://hydra.cc/) for configuration management. |
|
|
| ## Table of Contents |
|
|
| - [GR00T-VisualSim2Real](#gr00t-visualsim2real) |
| - [Overview](#overview) |
| - [VIRAL: Visual Sim-to-Real at Scale for Humanoid Loco-Manipulation](#viral-visual-sim-to-real-at-scale-for-humanoid-loco-manipulation) |
| - [Table of Contents](#table-of-contents) |
| - [Prerequisites](#prerequisites) |
| - [Installation](#installation) |
| - [1. Create conda environment](#1-create-conda-environment) |
| - [2. Install Isaac Sim 5.1](#2-install-isaac-sim-51) |
| - [3. Install Isaac Lab](#3-install-isaac-lab) |
| - [4. Install this package](#4-install-this-package) |
| - [5. Verify installation](#5-verify-installation) |
| - [Usage](#usage) |
| - [Teacher Training (PPO)](#teacher-training-ppo) |
| - [Teacher Evaluation](#teacher-evaluation) |
| - [Student Training (DAgger Distillation)](#student-training-dagger-distillation) |
| - [Student Evaluation](#student-evaluation) |
| - [Configuration](#configuration) |
| - [Experiment Tracking](#experiment-tracking) |
| - [ONNX Export](#onnx-export) |
| - [Project Structure](#project-structure) |
| - [License](#license) |
| - [Copyright \& Attribution](#copyright--attribution) |
| - [Citation](#citation) |
|
|
| ## Prerequisites |
|
|
| - Ubuntu 22.04 |
| - NVIDIA GPU with driver >= 535 |
| - [Isaac Sim 5.1](https://docs.omniverse.nvidia.com/isaacsim/latest/installation/install_workstation.html) |
| - [Isaac Lab](https://isaac-sim.github.io/IsaacLab/) |
| - Conda or Mamba |
|
|
| ## Installation |
|
|
| ### 1. Create conda environment |
|
|
| ```bash |
| conda create -n viral python=3.11 -y |
| conda activate viral |
| ``` |
|
|
| ### 2. Install Isaac Sim 5.1 |
|
|
| ```bash |
| pip install torch==2.7.0 torchvision==0.22.0 --index-url https://download.pytorch.org/whl/cu128 |
| |
| pip install isaacsim==5.1.0.0 isaacsim-rl==5.1.0.0 |
| ``` |
|
|
| ### 3. Install Isaac Lab |
|
|
| Clone or download [Isaac Lab](https://github.com/isaac-sim/IsaacLab) and install: |
|
|
| ```bash |
| pip install setuptools poetry-core flatdict |
| |
| pip install --no-build-isolation -e <path-to-IsaacLab>/source/isaaclab |
| pip install --no-build-isolation -e <path-to-IsaacLab>/source/isaaclab_assets \ |
| -e <path-to-IsaacLab>/source/isaaclab_tasks \ |
| -e "<path-to-IsaacLab>/source/isaaclab_rl[all]" |
| |
| pip install numpy==1.26.0 |
| ``` |
|
|
| Verify the install: |
|
|
| ```bash |
| python -c "import isaaclab; print(isaaclab.__file__)" |
| ``` |
|
|
| ### 4. Install this package |
|
|
| ```bash |
| cd <path-to-this-repo> |
| pip install -e . |
| |
| pip install numpy==1.26.0 # pip may upgrade it; pin again |
| ``` |
|
|
| ### 5. Verify installation |
|
|
| ```bash |
| python -c "from gr00t.rl.envs.base_task.base_task import BaseTask; print('OK')" |
| ``` |
|
|
| ## Usage |
|
|
| ### Teacher Training (PPO) |
|
|
| Train a teacher policy using privileged state observations: |
|
|
| ```bash |
| HYDRA_FULL_ERROR=1 accelerate launch --num_processes 1 \ |
| gr00t/rl/train_agent_trl.py \ |
| +exp=loco_manip/walk_stand_place_grasp_turn_homie \ |
| num_envs=48 \ |
| project_name=wsdpt_teacher |
| ``` |
|
|
| > **Tip:** Add `headless=False` to open the Isaac Sim GUI and watch training live. |
|
|
| <p align="center"> |
| <img src="./media/viral-teacher-gif.gif" width="60%"><br/> |
| <em>Teacher policy running in Isaac Sim</em> |
| </p> |
|
|
| | Argument | Description | |
| |---|---| |
| | `num_envs` | Number of parallel environments (higher = faster, more VRAM) | |
| | `project_name` | Weights & Biases project name | |
| | `headless` | `True` (default) for headless; `False` to open GUI | |
| | `env.config.reset_from_dataset.enable` | Reset from demonstration dataset | |
|
|
| ### Teacher Evaluation |
|
|
| ```bash |
| python gr00t/rl/eval_agent_trl.py \ |
| +checkpoint=logs_rl/<experiment_dir>/model_step_044500.pt |
| ``` |
|
|
| ### Student Training (DAgger Distillation) |
|
|
| Train a vision-based student policy by distilling from a trained teacher: |
|
|
| 1. Update the teacher checkpoint path in the experiment config: |
|
|
| ```yaml |
| # gr00t/rl/config/exp/loco_manip/wsdpt_student_for_teacher_v8q8.002_resnet_rgb_delay.yaml |
| teacher_actor_path: logs_rl/<your_teacher_experiment>/model_step_XXXXXX.pt |
| ``` |
|
|
| 2. Launch training: |
|
|
| ```bash |
| HYDRA_FULL_ERROR=1 accelerate launch --num_processes 1 \ |
| gr00t/rl/train_agent_trl.py \ |
| +exp=loco_manip/wsdpt_student_for_teacher_v8q8.002_resnet_rgb_delay \ |
| num_envs=8 \ |
| headless=True \ |
| experiment_name=wsdpt_student \ |
| project_name=wsdpt_student_debug |
| ``` |
|
|
| If you add `headless=False`, you can see the student policy running in Isaac Sim: |
|
|
| <p align="center"> |
| <img src="./media/viral-student-gif.gif" width="60%"><br/> |
| <em>Student policy running in Isaac Sim</em> |
| </p> |
|
|
| ### Student Evaluation |
|
|
| ```bash |
| python gr00t/rl/eval_agent_trl.py \ |
| +checkpoint=logs_rl/<student_experiment_dir>/model_step_XXXXXX.pt |
| ``` |
|
|
| ## Configuration |
|
|
| This project uses [Hydra](https://hydra.cc/) for configuration. Configs are composed from YAML files in `gr00t/rl/config/`. Override any value from the command line: |
|
|
| ```bash |
| # Number of environments |
| ... num_envs=16 |
| |
| # Reward weights |
| ... rewards.reward_scales.tracking_lin_vel=1.0 |
| |
| # Training hyperparameters |
| ... algo.config.actor_learning_rate=1e-4 |
| ``` |
|
|
| ### Experiment Tracking |
|
|
| Training logs to [Weights & Biases](https://wandb.ai/) by default: |
|
|
| ```bash |
| wandb login |
| ``` |
|
|
| Checkpoints are saved to `logs_rl/<experiment_name>/` at intervals controlled by the `save_frequency` callback parameter. |
|
|
| ## ONNX Export |
|
|
| During evaluation with `num_envs=1`, the policy is automatically exported as ONNX for deployment: |
|
|
| ```bash |
| python gr00t/rl/eval_agent_trl.py \ |
| +checkpoint=<path_to_checkpoint.pt> \ |
| num_envs=1 |
| ``` |
|
|
| The exported model is saved to `<experiment_dir>/exported/`. |
|
|
|
|
| ## Project Structure |
|
|
| ``` |
| gr00t/rl/ |
| βββ train_agent_trl.py # Training entry point (teacher & student) |
| βββ eval_agent_trl.py # Evaluation entry point |
| βββ config/ # Hydra YAML configs |
| β βββ base.yaml # Base training config |
| β βββ base_eval.yaml # Base evaluation config |
| β βββ exp/loco_manip/ # Experiment configs |
| β βββ algo/ # Algorithm configs (PPO, DAgger) |
| β βββ env/ # Environment configs |
| β βββ robot/g1/ # Robot configs (G1 43-DOF) |
| β βββ rewards/ # Reward function configs |
| β βββ terrain/ # Terrain configs |
| β βββ obs/ # Observation configs |
| β βββ domain_rand/ # Domain randomization configs |
| βββ envs/ # Environment implementations |
| β βββ base_task/ # Base task classes |
| β βββ loco_manip/ # Loco-manipulation task |
| βββ trl/ # TRL-based trainers and modules |
| β βββ trainer/ # PPO and distillation trainers |
| β βββ modules/ # Actor-critic network modules |
| β βββ callbacks/ # Training callbacks |
| β βββ utils/ # Training utilities |
| βββ agents/modules/ # Neural network building blocks |
| βββ simulator/isaacsim/ # Isaac Sim interface |
| βββ data/ # Task data (robot assets, scenarios) |
| βββ utils/ # General utilities |
| ``` |
|
|
| ## License |
|
|
| This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details. |
|
|
| ## Copyright & Attribution |
|
|
| Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
|
|
| This project includes third-party open-source software. Please refer to individual source files for specific licenses and copyright headers. |
|
|
| ## Citation |
|
|
| If you find this work useful, please cite: |
|
|
| ```bibtex |
| @inproceedings{he2025viral, |
| title={VIRAL: Visual Sim-to-Real at Scale for Humanoid Loco-Manipulation}, |
| author={He, Tairan and Wang, Zi and Xue, Haoru and Ben, Qingwei and Luo, Zhengyi and Xiao, Wenli and Yuan, Ye and Da, Xingye and CastaΓ±eda, Fernando and Sastry, Shankar and Liu, Changliu and Shi, Guanya and Fan, Linxi and Zhu, Yuke}, |
| booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, |
| year={2026} |
| } |
| |
| @inproceedings{xue2025opening, |
| title={Opening the Sim-to-Real Door for Humanoid Pixel-to-Action Policy Transfer}, |
| author={Xue, Haoru and He, Tairan and Wang, Zi and Ben, Qingwei and Xiao, Wenli and Luo, Zhengyi and Da, Xingye and Casta{\~n}eda, Fernando and Shi, Guanya and Sastry, Shankar and others}, |
| booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)}, |
| year={2026} |
| } |
| ``` |
|
|