Learning Visual Parkour from Generated Images

Alan Yu, Ge Yang, Ran Choi, Yajvan Ravan, John Leonard, Phillip Isola

TL;DR

LucidSim enables a quadruped robot to learn agile visual parkour entirely in simulation and transfer zero-shot to the real world using a single off-the-shelf RGB webcam. By combining LLM prompting, physics-guided diffusion models, and optical flow warping, the system synthesizes millions of diverse, geometrically grounded, and temporally consistent training frames without needing a single real-world image.

What Problem Does This Paper Address?

Sim-to-real transfer has unlocked dramatic agility for legged robots, but high-speed parkour has historically relied almost exclusively on depth sensors. Depth cameras sidestep the visual "reality gap" between synthetic rendering and the real world, but they are expensive, struggle outdoors, have restricted sensing ranges, and lack color semantics.

Training vision-based policies directly on RGB images in simulation is notoriously difficult: classical domain randomization (swapping textures and colors) produces cartoonish data that fails to generalize, while building photorealistic 3D assets by hand is too labor-intensive to scale. Generative image models (like diffusion models) offer vast open-world visual diversity, but vanilla text-to-image models lack physical alignment and temporal consistency. This paper asks: Can we steer generative models using simulated physics to create realistic, infinite visual training data for real-world robotic control?

Methods

LucidSim bridges generative vision and robotics through a multi-stage pipeline:

  1. Prior-Assisted Domain Generation (PADG): Instead of reusing a single prompt, an LLM (ChatGPT) generates batches of thousands of structured JSON prompts specifying diverse real-world lighting conditions, materials, weather, and cultural locales.
  2. Physics-Guided Synthesis: A MuJoCo physics engine renders simple obstacle geometry (stairs, hurdles) to generate semantic masks and depth maps. These are fed alongside LLM prompts into a depth-conditioned diffusion model (SDXL Turbo with ControlNet and Latent Consistency Models). Area-composition masks constrain specific textures (e.g., granite steps) to exact obstacle silhouettes.
  3. Dreams in Motion (DIM): Generating independent diffusion frames at every timestep is prohibitively slow and causes visual jitter. LucidSim generates a primary frame and warps it across the next six timesteps using ground-truth optical flow derived from known terrain geometry and camera motion, speeding up frame generation by $6.5\times$ while guaranteeing temporal consistency.
  4. Policy Architecture & On-Policy Supervision: The robot uses a lightweight 5-layer multi-query attention (MQA) Transformer that ingests 7-frame rolling stacks of image patches alongside proprioceptive state tokens at 50 Hz on an onboard Nvidia Jetson AGX Orin. Crucially, the student policy is not just trained on expert demonstrations; it performs three rounds of DAgger (Dataset Aggregation), collecting on-policy rollouts in simulation where it learns to recover from its own visual mistakes with expert feedback.

Datasets and Benchmarks

  • Training: ~10 million purely synthetic images generated by LucidSim across four main tasks: chase-cone, chase-soccer, hurdle, and stairs.
  • Real-to-Sim Benchmarks (Gaussian Splatting): The authors scanned physical evaluation environments (lawns, robotics labs, urban alleys, brick courtyards) using photogrammetry and reconstructed them as interactive evaluation digital twins via 3D Gaussian Splatting (3DGS).
  • Real-World Deployment: Hardware tests on a Unitree Go1 quadruped equipped with an inexpensive standard USB webcam.

Key Insights and Ideas

  • On-Policy Data Is Non-Negotiable: Simply scaling offline expert rollouts plateaus quickly. Without on-policy exploration (DAgger), student policies fail to recover once minor visual drift knocks them off the optimal trajectory.
  • Generative Hallucinations Act as Natural Regularizers: Depth-only policies frequently overfit to sterile simulation environments, getting distracted in evaluation by real-world railings, chairs, and background geometry. In contrast, LucidSim's generative model naturally populates backgrounds with rich clutter, making the resulting RGB policy surprisingly more resilient to real-world distractors.
  • The Conditioning Trade-Off: Strong depth conditioning forces strict geometric alignment but washes out surface texture and variety, whereas weak conditioning drifts from physical reality. Carefully balanced control strength is required to retain physics accuracy without destroying visual diversity.

Key Results

  • Real-World Hardware Transfer:
  • Stairs: LucidSim achieved 100% traversal success, versus 50% for Domain Randomization (DR).
  • Hurdles: LucidSim cleared hurdles at 73.3%–86.7% success, while DR managed only 26.7%–40% (frequently colliding head-on due to misjudged jump timing).
  • Tracking: LucidSim hit 100% on cones and 85% on soccer balls (zero-shot generalizing to balls of unseen colors), compared to DR’s 70% and 35%, respectively.
  • Clipped-Depth Baseline Match: LucidSim’s budget RGB webcam matched the performance of specialized depth-camera policies across both digital twin benchmarks and physical trials.

Limitations and Future Work

  • Short Horizon Memory: Because the Transformer is constrained to run at 50 Hz on an onboard AGX Orin edge computer, its temporal context is limited to 7 frames (~140 ms). This prevents the robot from executing maneuvers requiring longer anticipatory memory (such as leaping across wide gaps, which requires ~400 ms).
  • Static Terrain Layouts: The underlying geometric terrains in simulation were manually parameterized primitives; terrain layouts were not generated end-to-end.
  • Conditioning Sensitivity: Balancing geometric fidelity against diffusion prompt richness currently relies on heuristic tuning. Future work aims to incorporate loose geometric control and procedural 3D world-building.

Summary updated

BibTeX
@inproceedings{yu2024learning,
  author = {Alan Yu and Ge Yang and Ran Choi and Yajvan Ravan and John Leonard and Phillip Isola},
  title = {{Learning Visual Parkour from Generated Images}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=cGswIOxHcN},
}

Loading related content...

Figure