How can users install and use Wan2.1?

Question

Answers ( 1 )

    0
    2025-04-01T06:21:34+00:00

    To install and use Wan2.1:
    1. **Clone the repository**: `git clone https://github.com/Wan-Video/Wan2.1.git`.
    2. **Install dependencies**: Run `pip install -r requirements.txt` (requires torch >= 2.4.0).
    3. **Download models**: Obtain models from Hugging Face (e.g., [T2V-14B](https://huggingface.co/Wan-AI/Wan2.1-T2V-14B)) or ModelScope.
    4. **Run examples**:
    - Text-to-video: `python generate.py --task t2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-T2V-14B --prompt "Your prompt here"`.
    - Image-to-video: `python generate.py --task i2v-14B --size 1280*720 --ckpt_dir ./Wan2.1-I2V-14B-720P --image input_image.JPG --prompt "Your prompt here"`.
    5. **Community support**: Join [Discord](https://discord.gg/AKNgpMK4Yj) or the WeChat group for assistance.

Leave an answer