Skip to main content

Generate videos using Wan2.2 TI2V model with GGUF quantization and GPU acceleration

Project description

wan2video

Generate videos using Wan2.2 TI2V (Text+Image to Video) 5B model with GGUF quantization and GPU acceleration.

Quick Start

# Install and run (requires sd-cli in PATH)
uvx wan2video "a cat walking on the grass, sunny day"

# Or install first
pip install wan2video
wan2video "a beautiful sunset over the ocean"

Prerequisites

  • NVIDIA GPU with CUDA support (12GB+ VRAM recommended)
  • stable-diffusion.cpp compiled with CUDA (sd-cli in PATH)
  • ffmpeg (for mp4 output)

Setup sd-cli

wan2video setup

Or compile manually:

git clone --recurse-submodules https://github.com/leejet/stable-diffusion.cpp
cd stable-diffusion.cpp && mkdir build && cd build
cmake .. -DSD_CUBLAS=ON -DGGML_CUDA=ON
make -j
# Add build/bin/sd-cli to your PATH

Usage

# Text to video (480x320, 2 seconds)
wan2video "your prompt here"

# 720p video
wan2video "prompt" -W 1280 -H 720

# 1080p video
wan2video "prompt" -W 1920 -H 1080

# Image to video
wan2video "prompt describing motion" -i input.jpg

# More frames (5 seconds)
wan2video "prompt" -f 81

# Custom output
wan2video "prompt" -o my_video.mp4 --steps 30 --seed -1

Options

Option Default Description
-W/--width 480 Video width
-H/--height 320 Video height
-f/--frames 33 Frames (33≈2s, 81≈5s)
-s/--steps 20 Sampling steps
--cfg-scale 7.0 CFG guidance scale
--seed 42 Random seed (-1 for random)
-i/--image None Input image for I2V
-o/--output output.mp4 Output file path

Performance (RTX 4070 Ti 12GB)

Resolution Frames Time
480x320 33 ~16s
1280x720 33 ~2.5min
1920x1080 33 ~9min

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wan2video-0.1.0.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wan2video-0.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file wan2video-0.1.0.tar.gz.

File metadata

  • Download URL: wan2video-0.1.0.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wan2video-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4696c90ccce4e46b318cfaf845d0400d8407821cd1346904846a00f438db1977
MD5 996a2abf7af2a13cd3c88778947f9c16
BLAKE2b-256 96faffef3d17589e8bee31a115da52bcbd89eadd9042e3381af2753d9e30f340

See more details on using hashes here.

File details

Details for the file wan2video-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wan2video-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wan2video-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3827d75cdb1f8c8ba766afd5851fd18283428ce19222c65cdad97e264bf52592
MD5 1f4975b6924be26c9ae2ab29c6aee01a
BLAKE2b-256 daa9d2d8d1da39376340d83a72f383258095e500d87a92384f7056791b584b14

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page