SuperAPI AI Directory

Align your Latents

Align your Latents is a research project from NVIDIA's Toronto AI Lab that proposes a high-resolution video synthesis method based on latent diffusion models (LDMs). The method first pretrains an LDM on images, then introduces a temporal dimension into the latent-space diffusion model and fine-tunes it on encoded image sequences (videos), turning the image generator into a video generator; at the same time, it temporally aligns the diffusion model upsampler, making it a temporally consistent video super-resolution model. The project focuses on two applications: in-the-wild driving data simulation and text-to-video creation. It achieved state-of-the-art performance at the time on 512x1024 real driving videos; it converted Stable Diffusion into a text-to-video model at resolutions up to 1280x2048 and demonstrated preliminary results for personalized text-to-video generation. This research is for research purposes only and is not intended for commercial applications.

Open website

About this tool

Align your Latents is an NVIDIA research project, with a paper published at CVPR 2023, that studies high-resolution video synthesis. The core idea is to extend the latent diffusion model (LDM) paradigm to video generation: first pretrain an LDM on images, then introduce a temporal dimension into the latent-space diffusion model and fine-tune it on encoded image sequences (videos), thereby turning the image generator into a video generator; similarly, the diffusion model upsampler is temporally aligned to make it a temporally consistent video super-resolution model.

Main capabilities: Video LDM maps videos into a compressed latent space and models the sequence of latent variables corresponding to video frames; initialized from an image LDM, it inserts temporal layers based on temporal attention and 3D convolutions into the denoising network and fine-tunes the decoder to generate videos. The generation pipeline first generates sparse keyframes, then increases the frame rate through two temporal upsampling passes by an interpolation latent diffusion model, and finally decodes to pixel space, with an optional video upsampling diffusion model. By training a video prediction model conditioned on the starting frame, long videos can be generated autoregressively.

Applications and results: In in-the-wild driving video synthesis, it generates temporally coherent videos up to several minutes long at 512x1024 resolution, achieving state-of-the-art performance at the time; it supports specific driving scenario simulation (using a bounding-box-conditioned image LDM to generate the starting frame and then generating video) and multimodal driving scenario prediction (generating multiple plausible rollouts from the same initial frame). In text-to-video, using Stable Diffusion as the backbone, it generates short clips at resolutions up to 1280x2048, 113 frames, 24fps, about 4.7 seconds; the model has 4.1B total parameters (excluding the CLIP text encoder), of which only 2.7B are trained on video. The temporal layers can be transferred to other image LDM backbones (such as DreamBooth fine-tuned models) to achieve personalized text-to-video generation; it also explores applying temporal layers by temporal convolution to generate slightly longer videos "for free" (175 frames, 24fps, about 7.3 seconds), but with a slight quality degradation.

Usage and limitations: This project is a research project; the page provides the paper and generated video examples, but no public code, model downloads, or installation commands are provided; the data sources are for research purposes only and not for commercial applications.