Skip to content

Video understanding, tracking, generation, and world models · Video generation · VID060 · Model

Wan

Provides an open video-generation family built around video compression and diffusion-transformer modeling, with different task variants for text- or image-conditioned generation.

Explained here Component demo, not a trained model CodeSplash's run and the reference's record

In CodeSplash

Documented in the Academy only. There's no Set up button.

Availability
Explained here
Code example
Component demo, not a trained model
Who ran it
CodeSplash's run and the reference's record
CodeSplash's run
The reference's example ran in Python and R here, and they agree.
The reference's record
Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.

Purpose

Provides an open video-generation family built around video compression and diffusion-transformer modeling, with different task variants for text- or image-conditioned generation. The family entry describes the shared system rather than inflating the inventory with every checkpoint.

Question / objective

Learn a conditional distribution over videos, with useful visual quality, temporal coherence and controllability. This is a learning or inference objective, not a test of a statistical null hypothesis.

Method type and supervision

model · Video generation. Generative distribution learning, commonly with text/image conditioning; adversarial and token objectives differ.

Architecture / computational structure

Task-specific conditioning around a video VAE and generative transformer family.

Assumptions

Inputs must satisfy the temporal, modality and annotation protocol described below. Capabilities differ by release and conditioning mode. Large memory requirements, prompt sensitivity, identity drift and imperfect motion remain practical limitations.

Formula / computational definition

pθ(V∣c)p_\theta(V\mid c) is learned through a conditional generative objective over compressed video latents z=E(V)z=E(V). A denoising or flow target drives transformer training; use the specific release's objective rather than interchange parameterizations silently.

Parameters and notation

Learned/estimated quantities: Tokenizer, denoiser/generator, temporal and conditioning weights are learned as applicable; sampled latents are random variables rather than fitted model weights. Symbols specific to the objective are defined with the equation. Hyperparameters and design choices: Task variant, video VAE, text conditioner, resolution, frame count, guidance, sampler and precision matter.

Fitting, fine-tuning, and adaptation

Choose a compatible task branch and supported adaptation recipe. Freeze the VAE initially, tune relevant attention/conditioning modules, and preserve base-task evaluation when specializing. Use a separate adaptation validation split, monitor the target metric and retention of previously useful behavior, and save the exact preprocessing and training configuration.

How to use and calibrate

Fix the input protocol and target before fitting; choose design settings on held-out source videos, then freeze the evaluation procedure. Evaluate the declared task with fixed prompts/seeds, temporal consistency, visual fidelity and generation cost; keep image-conditioned and text-only results separate.

Example application

Compare text-to-video and image-to-video generation under separate protocols.

Interpretation / pitfalls

Watch out

An optimized training objective or a favorable example does not establish generalization. Evaluate the declared task with fixed prompts/seeds, temporal consistency, visual fidelity and generation cost; keep image-conditioned and text-only results separate. The example below isolates one mechanism and cannot substantiate a full-model benchmark claim.

Python and R code examples

Component: Illustrate conditional guidance with explicit prediction convention. Dependencies: NumPy in Python; base R in R; run the shared setup above. Python component: executed successfully. R component: unexecuted. No complete model training or pretrained inference was executed.

Full implementation route — Python: Use the authors' documented release and checkpoint; validate input/output dimensions before running batches. R: Bridge the supported Python pipeline and analyze outputs in R; a compact latent example does not reproduce the full Wan system.

Python and R

The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.

Python

Component demo, not a trained model — Illustrate conditional guidance with explicit prediction convention.

Shared setup for this chapter
import numpy as np

def softmax(x):
    z = np.asarray(x, dtype=float)
    e = np.exp(z - z.max())
    return e / e.sum()
unconditional = np.array([.2,.3]); conditional = np.array([.5,.1])
guidance_scale = 3.
guided = unconditional+guidance_scale*(conditional-unconditional)
print("guided prediction",guided)
# Both predictions must represent the same target (e.g. noise or velocity).
R

Component demo, not a trained model — Illustrate conditional guidance with explicit prediction convention.

Shared setup for this chapter
softmax <- function(x) {
  e <- exp(x - max(x))
  e / sum(e)
}
unconditional <- c(.2,.3); conditional <- c(.5,.1)
guidance_scale <- 3
guided <- unconditional+guidance_scale*(conditional-unconditional)
print(guided)
# Never mix noise, velocity and clean-latent prediction conventions.

Sources

From the CodeSplash reference, entry VID060.