sd-forge-deforum

Wan 2.1 Video Generation Integration

Overview

This integration provides seamless Wan 2.1 video generation within Deforum, featuring:

VACE (Video Adaptive Conditional Enhancement) represents Wan’s latest unified architecture that handles both Text-to-Video and Image-to-Video generation with a single model:

🔄 Unified Architecture Benefits

🎯 VACE T2V Mode

VACE models can generate pure text-to-video content by using blank frame transformation:

📊 VACE vs T2V Model Comparison

| Feature | VACE Models | T2V Models | I2V Models | |———|————-|————|————| | T2V Generation | ✅ Via blank frame transformation | ✅ Native | ❌ Not supported | | I2V Generation | ✅ Native | ❌ Not supported | ✅ Native | | I2V Chaining | ✅ Perfect continuity | ❌ No continuity | ✅ Good continuity | | Memory Usage | ⚡ Single model load | 🔄 T2V model only | 🔄 I2V model only | | Consistency | 🎯 Perfect (same weights) | ⚠️ Variable (different models) | ⚠️ I2V only (no T2V) | | Status | 🆕 Latest | 🔄 Legacy | 🔄 Legacy |

Quick Start

  1. Configure Prompts (Prompts tab):
    {
      "0": "a serene beach at sunset",
      "90": "a misty forest in the morning", 
      "180": "a bustling city street at night"
    }
    
  2. Set FPS (Output tab): Choose your desired FPS (e.g., 30 or 60)

  3. Choose Model (Wan Video tab): Select VACE model for best results

  4. Generate: Click “Generate Wan Video”

Model Management

Auto-Discovery

Models are automatically discovered from:

Auto-Download

Missing models are downloaded automatically when enabled:

# VACE 1.3B model (recommended) - ~17GB - All-in-one T2V+I2V
huggingface-cli download Wan-AI/Wan2.1-VACE-1.3B --local-dir models/wan

# VACE 14B model (high quality) - ~75GB - All-in-one T2V+I2V
huggingface-cli download Wan-AI/Wan2.1-VACE-14B --local-dir models/wan

# T2V 1.3B model (T2V only) - ~17GB - No I2V chaining
huggingface-cli download Wan-AI/Wan2.1-T2V-1.3B --local-dir models/wan

# T2V 14B model (T2V only) - ~75GB - No I2V chaining  
huggingface-cli download Wan-AI/Wan2.1-T2V-14B --local-dir models/wan

# I2V 1.3B model (I2V only) - ~17GB - Legacy I2V chaining
huggingface-cli download Wan-AI/Wan2.1-I2V-1.3B --local-dir models/wan

# I2V 14B model (I2V only) - ~75GB - Legacy I2V chaining
huggingface-cli download Wan-AI/Wan2.1-I2V-14B --local-dir models/wan

Model Selection Options

VACE Model Impact:

T2V Model Impact:

I2V Model Impact (Legacy):

💡 Recommendation: Use VACE models for I2V chaining workflows, T2V models only for independent clip generation.

Deforum Integration

Legacy T2V + I2V Workflow (Pre-VACE)

Before VACE models, Wan 2.1 used separate models for text-to-video and image-to-video generation. This approach is still supported for compatibility:

When to Use Legacy Models:

Legacy Workflow Process:

  1. T2V Model: Generates the first frame/clip from text prompt
  2. I2V Model: Takes the last frame from T2V output and generates the next clip
  3. Chaining: Repeats I2V process for each subsequent prompt
  4. Result: Video with I2V transitions, but requires two separate model loads

Legacy vs VACE Comparison:

| Aspect | Legacy (T2V + I2V) | VACE | |——–|——————-|——| | Model Count | 2 separate models | 1 unified model | | Memory Usage | Need both T2V + I2V loaded | Single model load | | Setup Complexity | More complex (two models) | Simple (one model) | | Consistency | Different model weights | Same weights throughout | | Compatibility | Older workflows | Latest approach |

💡 Migration Tip: If you’re using legacy T2V + I2V workflows, consider switching to VACE models for better consistency and simpler setup.

Settings Sources

Wan uses these settings from other Deforum tabs:

Prompt Schedule Integration

Strength Schedule Integration

Control I2V chaining continuity:

Seed Schedule Integration

Advanced Features

Frame-Specific Movement Analysis ✨ NEW

Example Results:

I2V Chaining

Frame Management

Flash Attention Compatibility

Settings Reference

Essential Settings

Advanced Settings

Continuity Control

Troubleshooting

Common Issues

No models found:

# Download recommended model
huggingface-cli download Wan-AI/Wan2.1-T2V-1.3B --local-dir models/wan

Flash Attention errors:

Generation fails:

  1. Verify prompts in Prompts tab
  2. Check FPS setting in Output tab
  3. Ensure models are downloaded
  4. Check console for detailed errors

Performance Tips

Technical Details

Model Requirements

Frame Calculation

Integration Architecture