--- title: O2LaF Demo emoji: 🎬 colorFrom: indigo colorTo: pink sdk: gradio sdk_version: 5.50.0 app_file: app.py pinned: false license: cc-by-nc-4.0 tags: - ml-intern --- # O2LaF — Interactive Demo A minimal, interactive demo of **O2LaF** ([arXiv 2511.20490](https://arxiv.org/abs/2511.20490)): a single latent action model that reads egocentric *and* third-person video, turns it into one 32-d latent action token per frame pair, and replays those actions on any first frame with a Wan2.2 TI2V-5B world model.
## What you can do here | Tab | What it shows | |---|---| | **Replay on a new scene** | Actions from a source video drive the world model from any first frame — including human ↔ robot transfer on matched PH2D scenes. | | **Actions from video (IDM)** | The latent action encoder's output tokens, their latent space (PCA), and the paper's action-query attention overlay. | | **Atomic actions** | Steer the third-person world model directly with the shipped atomic action library (idle / w / a / s / d / camera). | | **Showcase** | Precomputed results, with the real demo of the target embodiment as a reference — no GPU needed. | ## Checkpoints - **`o2laf_dit_egodexmix`** (default) — trained on EgoDex + GR-1 + PH2D; best for egocentric manipulation and human→robot transfer (24 fps). - **`o2laf_dit_mixed`** — trained on MiraData + EgoDex; handles third-person scenes and ships the atomic action library (16 fps). ## Credits - Paper: [One for All: Latent Actions for Egocentric and Third-Person Video](https://arxiv.org/abs/2511.20490) - Code: [showlab/O2LaF](https://github.com/showlab/O2LaF) · Project page: [showlab.github.io/o2laf](https://showlab.github.io/o2laf/) - Checkpoints: [YuxinJ/O2LaF](https://huggingface.co/YuxinJ/O2LaF) · Base model: Wan-AI/Wan2.2-TI2V-5B - Egocentric example clips from [EgoDex](https://huggingface.co/datasets/Wehere/EgoDex) (Apple). - Matched human / Unitree H1 clips from [PH2D](https://huggingface.co/datasets/RogerQi/PH2D) ([Humanoid Policy ~ Human Policy](https://human-as-robot.github.io/), MIT). ## Implementation notes `O2LaF/` is a trimmed, inference-only fork of the upstream package (see `O2LaF/README.md`): no `torch.compile` (the action encoder uses SDPA with a dense mask), the encoder LoRA is merged at load, and guidance runs both branches in one batched forward. Both pipelines are loaded once at startup.