File size: 3,750 Bytes
077401d
 
1e69baa
 
 
 
 
 
 
077401d
1e69baa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2af7086
 
1e69baa
2af7086
 
 
 
 
 
 
 
1e69baa
2af7086
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1e69baa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2af7086
 
 
1e69baa
 
 
 
 
 
 
 
 
 
 
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
license: apache-2.0
base_model: Wan-AI/Wan2.2-TI2V-5B-Diffusers
pipeline_tag: image-to-video
tags:
  - world-model
  - latent-action
  - video-generation
  - wan2.2
---

# O²LaF: One Prior, Two Dynamics

Models for **One Prior, Two Dynamics: Repurposing Video Diffusion Transformers
for Self-Supervised Latent Action Learning** ·
[Paper](https://arxiv.org/abs/2611.26617) · [Project page](https://showlab.github.io/o2laf/) ·
[Code](https://github.com/showlab/o2laf) · [Video](https://youtu.be/AYWevG1Nhpc)

O²LaF learns latent actions from unlabelled video. One pretrained video
diffusion transformer, Wan 2.2 TI2V-5B, is the prior for both dynamics: an
**action encoder** infers a latent action for every transition of a video, and a
**world model** generates video from a first frame and a sequence of those
actions. No action labels are used.

## Models

Each model lives in its own folder. Pass the folder as the model name, e.g.
`--model YuxinJ/O2LaF/o2laf_dit_mixed`.

| Model | Training data | Action encoder | Bidirectional world model from |
|---|---|---|---|
| [`o2laf_dit_mixed`](https://huggingface.co/YuxinJ/O2LaF/tree/main/o2laf_dit_mixed) | MiraData + EgoDexMix | Wan DiT | the causal world model |
| [`o2laf_dit_mira`](https://huggingface.co/YuxinJ/O2LaF/tree/main/o2laf_dit_mira) | MiraData | Wan DiT | Wan 2.2 |
| [`o2laf_dit_mira_e2e`](https://huggingface.co/YuxinJ/O2LaF/tree/main/o2laf_dit_mira_e2e) | MiraData | Wan DiT | the causal world model |
| [`o2laf_dit_egodexmix`](https://huggingface.co/YuxinJ/O2LaF/tree/main/o2laf_dit_egodexmix) | EgoDexMix | Wan DiT | the causal world model |
| [`o2laf_vjepa2_mira`](https://huggingface.co/YuxinJ/O2LaF/tree/main/o2laf_vjepa2_mira) | MiraData | V-JEPA 2 † | Wan 2.2 |
| [`o2laf_st_transformer_mira`](https://huggingface.co/YuxinJ/O2LaF/tree/main/o2laf_st_transformer_mira) | MiraData | spatio-temporal transformer | Wan 2.2 |

**Which one to use.** `o2laf_dit_mixed` is the model the paper evaluates and the
only one that ships the atomic action library — start there.
`o2laf_dit_egodexmix` is for egocentric manipulation video. The MiraData models
are the matched arms of the paper's ablations: `o2laf_dit_mira` against
`o2laf_vjepa2_mira` and `o2laf_st_transformer_mira` compares action encoders,
and `o2laf_dit_mira` against `o2laf_dit_mira_e2e` compares where stage 2
started.

† The V-JEPA 2 encoder keeps its ViT-g trunk frozen, so that trunk is not part
of the release. Download
[`vitg-384.pt`](https://dl.fbaipublicfiles.com/vjepa2/vitg-384.pt) and pass
`--base-action-encoder /path/to/vitg-384.pt`. It must be this checkpoint, not
the `transformers` conversion of it.

Every model has two modes: `bidirectional` (81 frames) and `causal` (41 frames),
both at 480×832. `o2laf_dit_egodexmix` runs at 24 fps, the others at 16.

## Usage

Install the code from the [O²LaF repository](https://github.com/showlab/o2laf), then:

```bash
o2laf-transfer --model YuxinJ/O2LaF/o2laf_dit_mixed \
    --source-video source.mp4 --first-frame frame.png --output out.mp4
```

```python
from o2laf import LatentActionPipeline

pipe = LatentActionPipeline.from_pretrained("YuxinJ/O2LaF/o2laf_dit_mixed", mode="bidirectional")
```

Only the files a run needs are downloaded: about 2.5 GB for `causal`, 12 GB for
`bidirectional`. See each model's own card for its contents, modes and training
details.

## Citation

```bibtex
@article{jiang2026o2laf,
  title   = {One Prior, Two Dynamics: Repurposing Video Diffusion Transformers for Self-Supervised Latent Action Learning},
  author  = {Jiang, Yuxin and Sun, Wenqiang and Li, Jiaqi and Gu, Yuchao and Zhang, Lvmin and Tsang, Ivor and Shou, Mike Zheng},
  journal = {arXiv preprint arXiv:2611.26617},
  year    = {2026}
}
```