How can users install and use Wan2.1?
Question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.Morbi adipiscing gravdio, sit amet suscipit risus ultrices eu.Fusce viverra neque at purus laoreet consequa.Vivamus vulputate posuere nisl quis consequat.
Answers ( 1 )
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.