All models

OmniTokenizer

A transformer tokenizer that encodes and reconstructs both images and video with one model.

Diffusion and generative · 1,021 operations Structure only

Structure-only capture: TorchLens recorded this graph without running real numbers through the model, so shapes and data types on the diagram are hypotheses, not measurements.

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (18 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
53.7M
Operations
1,021
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2024
Cited by
11 (as of 27 October 2026)
Authors
Junke Wang, Yi Jiang, Zehuan Yuan and others
License
MIT
Checked
Structure only: shapes and data types are hypotheses, not measurements.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m18988
Graph hash
ffd8997f47dc946a0425de1d71caaa10f2105647fa44dbfb44a3737d808056c8
Skeleton hash
f626519a58c7be2a564f79ef3da17f601d0da37f740a1bc817f17f24981436c1
Architecture hash
8bbb1812a888b2cb6e5d0422615b6b860e459f00acd9d5c9f83819a047232e0c
Diagram SHA-256
8a9646eac9f5300d16286a9fba93e5384a4a840a678942a6c5098f116642e7b3
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3

What it is

OmniTokenizer is a transformer-based tokenizer that handles both images and video. A tokenizer maps visual data into a compact latent space and sits at the core of visual generative models. The paper starts from the finding that existing tokenizers are tailored to image inputs or to video inputs.

The architecture decouples space and time, with window attention for spatial modeling and causal attention for temporal modeling. Training is progressive: the model is first trained on images at a fixed resolution, then jointly on images and video at multiple resolutions to learn temporal dynamics.

The paper reports a reconstruction FID of 1.11 on ImageNet and a reconstruction FVD of 42 on UCF-101. The repository releases both VQVAE and VAE versions of OmniTokenizer. The VAE version is obtained by fine-tuning the VQVAE model with a KL loss.

Key idea. OmniTokenizer tokenizes images and video in one transformer model, using a spatial-temporal decoupled architecture and progressive training from image-only to joint image-video data.

  • OmniTokenizer
  • joint image-video tokenizer
  • visual tokenizer
  • video tokenizer
  • image tokenizer
  • VQVAE
  • visual generation
  • reconstruction FID

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{wang2024omnitokenizerjointimagevideotokenizer,
      title={OmniTokenizer: A Joint Image-Video Tokenizer for Visual Generation}, 
      author={Junke Wang and Yi Jiang and Zehuan Yuan and Binyue Peng and Zuxuan Wu and Yu-Gang Jiang},
      year={2024},
      eprint={2406.09399},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2406.09399}, 
}