NeRF2Real: Sim2real Transfer of Vision-guided Bipedal Motion Skills using Neural Radiance Fields

Arunkumar Byravan, Jan Humplik, Leonard Hasenclever, Arthur Brussee, Francesco Nori, Tuomas Haarnoja, Ben Moran, Steven Bohez, Fereshteh Sadeghi, Bojan Vujatovic, Nicolas Heess

TL;DR

NeRF2Real is a pipeline that turns short smartphone videos of real-world scenes into high-fidelity simulation environments using Neural Radiance Fields (NeRFs). By extracting both photorealistic renderings and accurate collision geometry from NeRFs, the authors successfully trained a 20-DOF humanoid robot to perform vision-guided navigation and object manipulation with zero-shot transfer to the real world.

What Problem Does This Paper Address?

Training robots in simulation (Sim2Real) is a standard paradigm because it is safe, fast, and data-efficient. However, the "Sim2Real gap"—the discrepancy between a simplified simulator and the messy real world—often causes policies to fail when deployed on hardware.

This gap is particularly wide for vision-guided robots. Traditional simulators use "clean" CAD models that lack the visual complexity (lighting, textures, shadows) and geometric nuances of "in the wild" environments. Creating realistic digital twins usually requires expensive 3D scanners or hours of manual artist labor. NeRF2Real addresses this by enabling anyone with a smartphone to create a high-fidelity simulation of a complex, unstructured scene.

Methods

The authors propose a multi-step pipeline to integrate NeRFs into a physics engine:

  1. Scene Capture & Localization: A 5-6 minute video of a static scene (e.g., a lab or office) is captured with a standard smartphone. Camera poses are estimated using COLMAP (Structure-from-Motion).
  2. NeRF Training: They train a NeRF to represent the scene. To make this practical, they use a multi-scale spatial hash grid (similar to Instant-NGP) for rapid training and rendering. A key contribution here is a Gaussian blur augmentation during training, which helps the network interpolate better across different scales and resolutions.
  3. Geometry Extraction: The underlying scene geometry is extracted by voxelizing the NeRF’s density field and running the Marching Cubes algorithm to generate a collision mesh.
  4. Hybrid Simulation: The static scene (rendered via NeRF) is combined with dynamic objects (the robot and a ball, rendered via MuJoCo’s native engine) in the MuJoCo physics simulator.
  5. Reinforcement Learning: Policies are trained using DMPO (Distributional Maximum A Posteriori Policy Optimization). They use an asymmetric actor-critic setup: the "critic" sees the ground-truth physics state, while the "actor" (the policy that runs on the robot) only sees the NeRF-rendered RGB images and proprioceptive data.

Datasets

The paper does not rely on standard static datasets. Instead, it introduces a methodology for creating custom datasets from real-world environments.

  • Training Environments: Created from smartphone videos of a 5m x 4m lab space containing obstacles like chairs, plants, and cones.
  • Evaluation: Real-world performance was measured using a motion capture system to provide ground-truth positioning for analysis, though this data was not provided to the robot's policy.

Key Insights and Ideas

  • NeRF as a Unified Representation: NeRFs are used for both the visual input (rendering) and the physical constraints (collision mesh), ensuring that what the robot "sees" matches what it "touches."
  • Scale-Space Augmentation: By blurring training samples, the authors found they could significantly improve reconstruction quality at lower resolutions, which is vital for the limited compute available on mobile robot hardware.
  • Disentangled Skills: Interestingly, the robot learned to separate low-level balance from high-level scene understanding. If the camera was blocked, the robot would stop walking but remain standing, rather than falling over—a sign of a robust, hierarchical gait.
  • The "Gain" Factor: The authors discovered that matching the camera's "gain" (brightness/sensitivity) between the training data and the real robot's camera was critical. Small mismatches in image intensity could cause the policy to fail or walk in circles.

Key Results

The researchers tested the system on a Robotis OP3 humanoid (20 degrees of freedom) across two tasks:

  • Navigation & Obstacle Avoidance:
    • Simulation: 86% success rate.
  • Real World (Zero-Shot): 87% success rate using 60x80 resolution images. This indicates a remarkably small Sim2Real gap.
  • Localization: The robot maintained a median localization error of just 0.25m using only its head-mounted RGB camera.
  • Ball Pushing:
    • This task involved moving a basketball to a target corner. The robot successfully transferred the skill, though the success rate dropped from 99% in sim to 78% in real (for center starts). The gap was larger here due to the complex contact physics of pushing a ball near walls.

Limitations and Future Work

  • Occlusion Handling: The current system overlays dynamic objects (the robot) on top of the static NeRF. This means the robot cannot currently go behind a static object (like a pillar) without visual artifacts.
  • Manual Refinement: Some manual steps are still required, such as defining the floor plane and scaling the mesh to real-world units.
  • Static Backgrounds: The NeRF represents a static scene. Future work could involve dynamic NeRFs to handle environments with moving people or changing lights.
  • Contact-Rich Tasks: While ball pushing worked, more complex interactions (like climbing or opening doors) will require even higher fidelity in the extracted collision meshes.

Summary updated

BibTeX
@inproceedings{byravan2023nerf,
  author = {Arunkumar Byravan and Jan Humplik and Leonard Hasenclever and Arthur Brussee and Francesco Nori and Tuomas Haarnoja and Ben Moran and Steven Bohez and Fereshteh Sadeghi and Bojan Vujatovic and Nicolas Heess},
  title = {{NeRF2Real: Sim2real Transfer of Vision-guided Bipedal Motion Skills using Neural Radiance Fields}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2023},
  url = {https://openreview.net/forum?id=6WmfdAlrc0},
}
Figure