# Repository Briefing: vita-epfl/Stable-Video-Infinity
> Source: https://repoforai.com/repo/vita-epfl/Stable-Video-Infinity (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/vita-epfl/Stable-Video-Infinity
- **Official Docs / Website**: https://stable-video-infinity.github.io/homepage/
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: B+ (64/100 · Maintenance 20/35 · Adoption 18/25 · Releases 6/20 · License 20/20)
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: GPU, CLI
- **Momentum**: 2,635 ★ total (+0 24h / +3 7d) · 235 forks
- **Topics**: `audio-driven-talking-face`, `dance-generation`, `end-to-end-filming`, `long-video-generation`, `video-diffusion-transformers`
- **When to Use**: Best for: GPU-equipped video research or production teams testing long-form shot continuation, per-clip direction, or dedicated audio- and pose-conditioned workflows. Skip if: You need frame-by-frame interaction, a turnkey service, or only independent short clips without continuity requirements.

## Overview
```text
### Architecture & Core Mechanics
Stable Video Infinity (SVI) extends a Wan image-to-video diffusion transformer at clip boundaries. Attention is bidirectional within each clip, while continuation is causal across clips: selected frames from the preceding output condition the next generation. Error Recycling targets the training–inference mismatch that arises when continuation depends on imperfect generated context. Training updates LoRA adapters rather than the full backbone.

The generic training and evaluation entrypoints are `train_svi.py` and `test_svi.py`, with separate `_talk` and `_dance` variants. The tree contains `diffsynth/` and `dwpose/`; the Python stack includes PyTorch, safetensors and PEFT, with DeepSpeed and CUDA-oriented dependencies in the manifest. Talk adds Chinese wav2vec2 and MeiGen-MultiTalk assets; Dance adds UniAnimate-DiT and ONNX pose assets.

### Key Capabilities & Differentiators
On `main`, the documented download layout pairs the sharded Wan2.1-I2V-14B-480P base with separate SVI 1.0 and 2.0 adapters. SVI 2.0 accepts a starting image and a stream of text prompts, primarily for continuous scenes with some transitions. Its Wan 2.1 adapter uses the Shot inference path and supports one or five motion frames. The `svi_wan22` branch covers Wan 2.2 with SVI 2.0 and 2.0 Pro.

The 1.0 family separates Shot, Film, Film Transitions, Tom, Talk and Dance checkpoints rather than offering a single interchangeable model. Legacy Shot uses the last frame plus VACE-style reference-image padding; Film uses the last five motion frames, while Tom shares the Film workflow with one. Talk and Dance cover audio-driven and pose-driven generation respectively. Multi-minute demos show that the continuation loop can run well beyond a single clip, not that fidelity is guaranteed at every duration.

### Trade-offs & Limitations
SVI and frame-causal Self-Forcing make different latency and editing trade-offs. SVI can model motion jointly within a clip and vary prompts at clip boundaries, which suits shot-based production. It does not provide the same frame-by-frame interaction model. Compared with an unchanged Wan image-to-video workflow, SVI adds explicit continuation controls but requires variant-specific padding and motion-frame selection; the stock Wan graph is not a drop-in host for the LoRA.

Tuning only the adapters reduces the scope of training, but inference still loads the selected Wan backbone and samples each additional clip. Longer runs therefore take more total compute, and continuity remains something to validate on the target content. Use distinct seeds across clips and assess quantization or step distillation on several consecutive clips, especially for Film, where those choices materially affect the workflow.

### Hardware & Deployment Guide
The project targets a GPU-backed Python CLI. The setup uses Python 3.10, an editable install, `flash_attn==2.8.0.post2` and FFmpeg. The manifest pins `torch==2.5.0` and `torchvision==0.20.0` and includes `cupy-cuda12x`; a tested setup used an A100 80 GB, CUDA 12.0 and PyTorch 2.8.0. Check PyTorch, CUDA and FlashAttention compatibility together rather than treating the tested machine or package pins as a minimum specification.

Download the matching base shards and adapter into the `weights/` hierarchy before running the CLI locally. Talk and Dance need extra assets; Talk's documented layout also links `multitalk.safetensors` into the base model directory. The tree includes a Gradio demo and a legacy ComfyUI workflow directory. For 2.0 Pro, use a matching workflow from the community collection in pinned issue #51 rather than reusing the bundled 1.0 graph.
```

## Key Capabilities
```text
- Training: Error Recycling targets drift from generated context; adaptation tunes LoRA rather than the full backbone.
- Temporal model: Bidirectional attention within each clip, causal continuation between clips.
- Backbone compatibility: main targets Wan 2.1; svi_wan22 targets Wan 2.2 and carries SVI 2.0 and 2.0 Pro.
- Continuation controls: The Wan 2.1 SVI 2.0 adapter uses the Shot path with support for one or five motion frames.
- Multimodal paths: Talk adds wav2vec2 and MeiGen-MultiTalk; Dance adds UniAnimate-DiT and pose preprocessing via DWPose.
- Workflow compatibility: SVI requires modified padding, and the bundled SVI 1.0 ComfyUI workflow is not the 2.0 Pro workflow.
```

## Quick Start / Clone
```bash
conda create -n svi python=3.10 
conda activate svi

# For svi family
pip install -e .
pip install flash_attn==2.8.0.post2
# If you encounter issues with flash-attn installation, please refer to the details at https://github.com/vita-epfl/Stable-Video-Infinity/issues/3.

conda install -c conda-forge ffmpeg
conda install -c conda-forge librosa
conda install -c conda-forge libiconv
```
