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.1.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.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wan2video-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 e4ea944e9bd9372cc271cbc5f778a99d2eeed5fa881395f21939a7f46304a482
MD5 4394518452bf6d64b6fc479f3c36d15b
BLAKE2b-256 e50951896cf072bb7451fab1e7c19a09d4b8cbf4b028aa9d51efc6ad12343033

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wan2video-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a7e13c4a3ea0cc16881d7a5af12b162f1006202397813ce0d84fef99ea59613e
MD5 e638a4e42e9990ad3132dc72e26e884b
BLAKE2b-256 cf0a8d5f4d747c90b9a43a6050774bed72394032c8713526768a00612618ea48

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