Spaces:
Sleeping

File size: 3,020 Bytes
70124b1
 
d766b4b
 
 
70124b1
6582aae
70124b1
 
d766b4b
 
 
70124b1
 
d766b4b
 
 
 
 
 
 
 
 
 
 
 
c223b70
d766b4b
 
c223b70
d766b4b
 
 
 
 
 
 
 
 
 
 
 
c223b70
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
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.

<div style="display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 2em"><a href="https://hf.co/chat?mode=ml-intern"><img src="https://hf.co/datasets/huggingface/badges/resolve/main/built-with-ml-intern-lg.svg" alt="Built with ML Intern" style="margin:0"></a><a href="https://hf.co/chat?mode=ml-intern&prompt=Add%20more%20egocentric%20examples%20to%20blanchon%2FO2LaF-Demo" style="display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border:1.5px solid #eee;border-radius:16px;background:#f9fbfc;color:#c2410c;font-weight:600;font-size:14px;text-decoration:none">Add more ego examples ›</a></div>

## 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.