Skip to content

supplepentan/AnimateDiff-for-Win

 
 

Repository files navigation

AnimateDiff for Win

Introduction

This is Windows model of AnimateDiff.

Original: AnimateDiff

Dependencies

  • OS: Windows
  • nvidia:
    • cuda: 11.7
  • python 3.10.5 (using Pyenv)

Install

Clone from GitHub

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

Virtual environment with Python-version 3.10.5 using Pyenv.

pyenv local 3.10.5
python -m venv venv
venv/scripts/activate

Libraries

Install libraries using " reqruirements.txt "

python -m pip install -r requirements.txt

Pytorch

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

Xformers

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

StableDiffusion

git lfs install
git clone https://huggingface.co/runwayml/stable-diffusion-v1-5 models/StableDiffusion/stable-diffusion-v1-5

Models

Motion Module

Download and put the models to folder " models/Motion_Module/ ".

Motion Modules

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

Motion LoRAs

Download and put the models to folder " models/MotionLoRA/ ".

MotionLoRAs

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

DreamBooth LoRA

Download and put the models to folder " models/DreamBooth_LoRA/ ".

toonyou_beta3.safetensors

realisticVisionV20_v20.safetensors

Test

python -m scripts.animate --config configs/prompts/v2/5-RealisticVision-MotionLoRA.yaml

Run the Gradio

python app.py

Access to http://127.0.0.1:7860 .

Acknowledgements

This code is built on AnimateDiff, thank for the authors for sharing their codes.

About

Official implementation of AnimateDiff.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.2%
  • Shell 0.8%