This is Windows model of AnimateDiff.
Original: AnimateDiff
- OS: Windows
- nvidia:
- cuda: 11.7
- python 3.10.5 (using Pyenv)
Clone from GitHub, and move to the folder " AnimateDiff-for-Win ".
git clone https://github.com/supplepentan/AnimateDiff-for-Win
cd AnimateDiff-for-Win
Virtual environment with Python-version 3.10.5 using Pyenv.
pyenv local 3.10.5
python -m venv venv
venv/scripts/activate
Install libraries using " reqruirements.txt "
python -m pip install -r requirements.txt
Uninstall unnecessary installed Pytorch, and newly install Pytorch (CUDA11.7 compatible model).
python -m pip uninstall -y torch torchvision
python -m pip install torch==1.13.1 torchvision==0.14.1 --index-url https://download.pytorch.org/whl/cu117
Download " xformers-0.0.14.dev0-cp310-cp310-win_amd64.whl " at root, and install.
python -m pip install xformers-0.0.14.dev0-cp310-cp310-win_amd64.whl
git lfs install
git clone https://huggingface.co/runwayml/stable-diffusion-v1-5 models/StableDiffusion/stable-diffusion-v1-5
Download and put the models to folder " models/Motion_Module/ ".
Name | Parameter | Storage Space |
---|---|---|
mm_sd_v14.ckpt | 417 M | 1.6 GB |
mm_sd_v15.ckpt | 417 M | 1.6 GB |
mm_sd_v15_v2.ckpt | 453 M | 1.7 GB |
Download and put the models to folder " models/MotionLoRA/ ".
Name | Parameter | Storage Space |
---|---|---|
v2_lora_ZoomIn.ckpt | 19 M | 74 MB |
v2_lora_ZoomOut.ckpt | 19 M | 74 MB |
v2_lora_PanLeft.ckpt | 19 M | 74 MB |
v2_lora_PanRight.ckpt | 19 M | 74 MB |
v2_lora_TiltUp.ckpt | 19 M | 74 MB |
v2_lora_TiltDown.ckpt | 19 M | 74 MB |
v2_lora_RollingClockwise.ckpt | 19 M | 74 MB |
v2_lora_RollingAnticlockwise.ckpt | 19 M | 74 MB |
Download and put the models to folder " models/DreamBooth_LoRA/ ".
realisticVisionV20_v20.safetensors
python -m scripts.animate --config configs/prompts/v2/5-RealisticVision-MotionLoRA.yaml
python app.py
Access to http://127.0.0.1:7860 .
This code is built on AnimateDiff, thank for the authors for sharing their codes.