/ Модель

Характеристики

Лицензия
MIT
Библиотека
diffusers
Опубликована
12 июн 2026

Motif-VAE

Преобразование изображенийИзображение, текст → изображение3 профессии

Сверточный 3D VAE Motif VAE с высоким сжатием кодирует и восстанавливает изображения и видео для латентных диффузионных моделей.

54скачиваний за 30 дней14лайковвеса обновлены31 июл 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Motif-Technologies разработала Motif VAE — сверточный трёхмерный причинный вариационный автоэнкодер (VAE) для кодирования и восстановления изображений и видео. Модель использует детерминированный энкодер без attention, латентное пространство из 128 каналов и сжатие по времени в 4 раза и по пространству в 32 раза. Например, ролик размером 256×256 пикселей и длиной 17 кадров кодируется в латентный тензор размером 128×5×8×8. При обработке одного изображения VAE работает в режиме T=1.

Модель предназначена прежде всего для высококомпрессионной токенизации видео и изображений перед обучением и запуском латентных диффузионных моделей. Сжатие уменьшает число пространственно-временных токенов и вычислительные затраты последующей модели; по приведённым в карточке сравнениям, VAE также хорошо сохраняет детали документов, восстанавливает изображения и видео и формирует латентное пространство, подходящее для диффузионного моделирования. Для работы с латентами в диффузионном процессе карточка показывает их нормализацию с помощью параметров scale и shift с последующим обратным преобразованием перед декодированием.

Весы распространяются в формате safetensors через библиотеку diffusers; указана лицензия MIT. Карточка не приводит ограничений применимости, а оценки качества относятся к описанным в ней наборам данных и протоколам сравнения.

Сценарии применения

  • сжатое кодирование видеоклипов для латентной диффузии
  • подготовка видеолатентов для обучения диффузионных трансформеров
  • восстановление видео из латентного представления
  • кодирование изображений перед диффузионной генерацией
  • восстановление мелкого текста и деталей в изображениях документов

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Motif VAE

Motif VAE is a 3D causal video VAE with 4x temporal and 32x spatial compression and a 128-channel latent space, built as a high-compression tokenizer for latent video diffusion models. A 256x256x17-frame clip encodes to a (128, 5, 8, 8) latent, which is 1/16 the spatio-temporal tokens of an 8x-spatial VAE, so downstream diffusion-transformer training and inference cost less. The decoder is much larger than the encoder (about 4:1 in parameters), which helps it keep fine detail such as small text in documents.

It also runs as a plain image VAE at T=1. In its compression class it has the best document text fidelity, video reconstruction, and diffusability (how well a diffusion model converges on its latents) of the tokenizers we compared.

Architecture

Type3D causal VAE, attention-free (pure convolution)
Compressiontemporal 4x (T = 4n+1 grammar) / spatial 32x32
Latent128 channels, deterministic encoder
Parameters1.244B total: encoder 242M, decoder 1,002M (1:4.15)
Encoder5 down stages (3x spatial-only, 2x spatio-temporal), 2 resblocks/stage, parameter-free global skip connections
Decoder1.5x channel width, 3 resblocks/stage, sub-pixel (PixelShuffle + ICNR) spatial upsampling, trilinear temporal upsampling
Norm / actLayerNorm / SiLU

Usage

The model code ships inside this repository (modeling_motifvae.py) and loads through the stock diffusers AutoModel — no extra package beyond torch, diffusers, einops:

import torch
from diffusers import AutoModel

vae = AutoModel.from_pretrained("Motif-Technologies/Motif-VAE", trust_remote_code=True)
vae = vae.to("cuda", dtype=torch.bfloat16).eval()

# video: (B, 3, T, H, W) in [-1, 1], T = 4n+1 (1, 5, 9, 13, 17, ...),
# H/W multiples of 32.  T=1 works as a plain image VAE.
x = torch.randn(1, 3, 17, 256, 256, device="cuda", dtype=torch.bfloat16)
with torch.no_grad():
    z = vae.encode(x).latent_dist.sample()   # (1, 128, 5, 8, 8)
    rec = vae.decode(z).sample               # (1, 3, 17, 256, 256)

For diffusion training, whiten the latent to roughly unit variance with the per-channel statistics shipped in the config — shift is the channel mean and scale the channel std (128 values each, measured over Kinetics-400 video (256x256x17) and ImageNet-1K images (256x256)). Apply per channel, reshaping both to (1, 128, 1, 1, 1):

z = vae.encode(x).latent_dist.sample()
shift = torch.tensor(vae.config.shift, device=z.device).view(1, -1, 1, 1, 1)
scale = torch.tensor(vae.config.scale, device=z.device).view(1, -1, 1, 1, 1)
z = (z - shift) / scale          # whiten for the diffusion model
# ... sample/denoise in this space, then invert before decoding:
z = z * scale + shift
rec = vae.decode(z).sample

Recompute these statistics on your own data if its distribution differs from natural video.

Evaluation

Baseline numbers are either the published values cited in each table or measured by us under the same protocol. MotifVAE is a 32x spatial tokenizer, so the comparison is against the other 32x tokenizers (LTX-Video, LTX-2, and the f32 image VAEs below); the lower-compression 16x Wan2.2 appears only as a reference upper bound.

Image reconstruction — ImageNet-1K val (256x256) & FFHQ (1024x1024)

All models below are 32x (f32) image VAEs. MotifVAE is measured by us with per-image PSNR / SSIM (the published-table convention); baseline rows are the published numbers from the Qwen-Image-VAE-2.0 technical report (Table 2, same ImageNet-256 / FFHQ protocol). Our own runs of the baselines reproduce those values to within 0.2 dB, so the comparison is direct.

ModelSettingImageNet PSNR ↑SSIM ↑FFHQ PSNR ↑SSIM ↑
MotifVAEf32c12830.270.85236.170.921
Qwen-Image-VAE-2.0f32c12829.690.84235.910.918
LTX-Videof32c12829.570.83335.560.905
HunyuanImage-2.1f32c6428.670.82035.300.911
LTX-2f32c12826.060.79333.630.906
DC-AE (Sana)f32c3224.820.69031.350.830

At the f32c128 channel budget MotifVAE leads both benchmarks among 32x image VAEs, above Qwen-Image-VAE-2.0's f32c128 (29.69 / 35.91 dB), LTX-Video, LTX-2, and the lighter f32c64 / f32c32 models.

Qualitative comparison (real photographs)

GT vs frozen-tokenizer reconstruction on ImageNet-1K val photographs; the red box marks the zoom strip shown below each row.

Natural-image reconstruction (ImageNet-1K val): GT vs MotifVAE vs LTX-Video vs LTX-2 vs Wan2.2

These rows are high-frequency patterns that high-compression VAEs find hard: an armadillo's banded shell, a dense solar-panel grid, brickwork, and vehicle markings. LTX-Video and LTX-2 (same 32x class) lose the pattern, and the solar grid collapses for them entirely. MotifVAE keeps it and stays close to the 16x Wan2.2 reference, which also struggles on some of these.

Document text fidelity — OmniDoc-TokenBench (256x256)

f32-compression VAEs on OmniDoc-TokenBench (~3K text-rich documents). Baseline rows are the published numbers from the Qwen-Image-VAE-2.0 technical report (Table 3, same benchmark / resolution / OCR-NED protocol); sorted by NED.

ModelSettingSSIM ↑PSNR ↑LPIPS ↓FID ↓OCR-NED ↑
MotifVAEf32c1280.84922.400.0523.430.825
Qwen-Image-VAE-2.0f32c1280.84422.130.0643.360.707
LTX-Videof32c1280.80620.920.11917.100.565
HunyuanImage-2.1f32c640.78119.850.0965.190.490
LTX-2f32c1280.73518.410.1199.940.357
DC-AE (Sana)f32c320.52615.620.1447.260.069

MotifVAE has the highest OCR-NED of any f32 VAE here: +0.12 over Qwen's f32c128 (same channel budget) and about 2.3x that of LTX-Video / LTX-2. It also leads every pixel metric in its class. The figure below covers English print, Korean print, and Korean handwriting; each row shows the full page and a zoom-in on the red-boxed region. The top two rows are OmniDoc-TokenBench (English); the bottom two are Korean printed text and handwriting from AI-Hub — Korea's national AI-data hub (operated by NIA, the National Information Society Agency), which publishes large-scale Korean AI training datasets (the table metrics above are OmniDoc-only):

Document reconstruction — top two rows OmniDoc-TokenBench (English), bottom two rows Korean print + handwriting from AIHUB; GT vs MotifVAE vs LTX-Video vs LTX-2 vs Wan2.2

Video reconstruction — Kinetics-400 (256x256) & OpenVid-1M (720p)

The same four frozen tokenizers on both benchmarks, under one pipeline: the three 32x spatial tokenizers (MotifVAE, LTX-Video, LTX-2) and the 16x Wan2.2 as a reference.

Kinetics-400 val — 17x256x256

ModelcompressionPSNR ↑SSIM ↑LPIPS ↓
MotifVAE4x32x3235.370.9540.046
LTX-Video8x32x3232.580.9190.101
LTX-28x32x3228.050.8880.128
Wan2.24x16x1637.410.9660.034

OpenVid val-1000 — native 720p, full-frame

ModelcompressionPSNR ↑SSIM ↑LPIPS ↓
MotifVAE4x32x3236.960.9530.040
LTX-Video8x32x3234.400.9250.055
LTX-28x32x3232.940.9230.044
Wan2.24x16x1638.400.9640.018

Among the 32x spatial tokenizers MotifVAE leads both tables: +2.7 dB over LTX-Video and +7.3 dB over LTX-2 on K400, and +2.6 / +4.0 dB on 720p. The 16x Wan2.2 reference is a little ahead; the gap to the other 32x VAEs is largest on high-motion clips (examples below).

Protocol. K400: 256 random val clips. OpenVid: the pinned public Dev-Jahn/OpenVid-1M-wds val split (1000 clips), each resized to height 720 keeping aspect (full-frame). Both use 17 frames/clip and report per-frame-averaged PSNR / SSIM / LPIPS under one pipeline; OpenVid LPIPS uses AlexNet. Absolute values aren't comparable across papers.

Video reconstruction examples

Frozen-tokenizer reconstruction on high-motion Kinetics-400 clips. Each clip is one strip: Input / MotifVAE / LTX-Video / LTX-2 / Wan2.2 (labelled). MotifVAE keeps the fast motion close to the 16x Wan2.2; LTX-Video and LTX-2 blur it.

Diffusability — UCF101 class-conditional generation

Latte-XL/1 (patch-1, rectified flow, 250K steps, no-CFG FVD-2048) over each frozen tokenizer, under the Latte-official stride-3 protocol. The Wan2.2 control (FVD 204) is in line with values reported for this setting in the literature, confirming the harness reproduces the expected scale.

UCF101 FVD convergence over frozen tokenizers

TokenizerFVD @50KFVD @100KFVD @250K
MotifVAE (4x32x32)636385276
LTX-2 (8x32x32)952556450
LTX-Video (8x32x32)1251732593
Wan2.2 (4x16x16)656304204

Among the 32x spatial tokenizers MotifVAE leads at every milestone, finishing 39% below LTX-2 and 53% below LTX-Video. It reaches LTX-2's final 250K FVD by about 75K steps (~3x faster) and stays close to the 16x Wan2.2 reference. Reconstruction quality and diffusability are separate properties: LTX-Video reconstructs better than LTX-2 but is the worst of the three for diffusion.

License

MIT

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · diffusers

Нельзя запустить

Модели «картинка → картинка» пока не запускаются.

Ревизия весов
8da5fb7

0 моделей