This model repo is for AimateDiff. This repository is the official implemetatio of AimateDiff.
It is a plug-ad-play module turig most commuity models ito aimatio geerators, without the eed of additioal traiig. We developed four versios of AimateDiff: Maually dowload the commuity Maually dowload the AimateDiff modules. The dowload liks ca be foud i each versio's model zoo, as provided i the followig. Save the modules to I this versio, we did the image model fietuig through Additioally, we implemet two (RGB image/scribble) SparseCtrl Ecoders, which ca take abitary umber of coditio maps to cotrol the geeratio process. Techical details of SparseCtrl ca be foud i this research paper: Here we provide three demo iferece scripts. The correspodig AimateDiff modules ad commuity models eed to be dowloaded i advace. Put motio module i Release the Motio Module (beta versio) o SDXL, available at [Google Drive](https://drive.google.com/file/d/1EKD9hDOPfJdK4z8YDB8JYvPracNx2SX/view?usp=sharelik
) / [HuggigFace](https://huggigface.co/guoyww/aimatediff/blob/mai/mmsdxlv10_beta.ckpt
) / CivitAI. High resolutio videos (i.e., 1024x1024x16 frames with various aspect ratios) could be produced Checkout to the brach sdxl for more details of the iferece. More checkpoits with better-quality would be available soo. Stay tued. Examples below are maually dowsampled for fast loadig. I this versio, the motio module is traied upo larger resolutio ad batch size.
We observe this sigificatly helps improve the sample quality. Moreover, we support Here we provide several demo iferece scripts. The correspodig AimateDiff modules ad commuity models eed to be dowloaded i advace. See ANIMATEDIFF for detailed setup. User Iterface developed by commuity: We created a Gradio demo to make AimateDiff easier to use. To lauch the demo, please ru the followig commads: By default, the demo will ru at Please esure the istallatio of xformer that is applied to reduce the iferece memory.
1) Get lora models: trai lora model with A1111 based o a collectio of your ow favorite images (e.g., tutorials Eglish, Japaese, Chiese)
or dowload Lora models from Civitai. 2) Aimate lora models: usig gradio iterface or A1111
(e.g., tutorials Eglish, Japaese, Chiese) 3) Be creative togther with other techiques, such as, super resolutio, frame iterpolatio, music geeratio, etc.
We totally agree that aimatig a give image is a appealig feature, which we would try to support officially i future. For ow, you may ejoy other efforts from the talesofai. Please refer to ANIMATEDIFF for the detailed setup. This project is released for academic use. We disclaim resposibility for user-geerated cotet. Users are solely liable for their actios. The project cotributors are ot legally affiliated with, or accoutable for, users' behaviors. Use the geerative model resposibly, adherig to ethical ad legal stadards. Codebase built upo Tue-a-Video.AimateDiff
Yuwei Guo,
Ceyua Yag,
Ayi Rao,
Yaohui Wag,
Yu Qiao,
Dahua Li,
Bo Dai
(Correspodig Author)v1
, v2
ad v3
for Stable Diffusio V1.5; sdxl-beta
for Stable Diffusio XL.Next
Setup repository ad coda eviromet
git cloe https://github.com/guoyww/AimateDiff.git
cd AimateDiff
coda ev create -f eviromet.yaml
coda activate aimatediff
Dowload Stable Diffusio V1.5
git lfs istall
git cloe https://huggigface.co/ruwayml/stable-diffusio-v1-5 models/StableDiffusio/
Prepare Commuity Models
.safetesors
models from CivitAI, ad save them to models/DreamBooth_LoRA
. We recommad RealisticVisio V5.1 ad TooYou Beta6.Prepare AimateDiff Modules
models/Motio_Module
.[2023.12] AimateDiff v3 ad SparseCtrl
Yuwei Guo,
Ceyua Yag,
Ayi Rao,
Maeesh Agrawala,
Dahua Li,
Bo Dai
(Correspodig Author)Iferece
models/Motio_Module
; put SparseCtrl ecoders i models/SparseCtrl
.# uder geeral T2V settig
pytho -m scripts.aimate --cofig cofigs/prompts/v3/v3-1-T2V.yaml
# image aimatio (o RealisticVisio)
pytho -m scripts.aimate --cofig cofigs/prompts/v3/v3-2-aimatio-RealisticVisio.yaml
# sketch-to-aimatio ad storyboardig (o RealisticVisio)
pytho -m scripts.aimate --cofig cofigs/prompts/v3/v3-3-sketch-RealisticVisio.yaml
Limitatios
[2023.11] AimateDiff SDXL-Beta
[2023.09] AimateDiff v2
models/MotioLoRA
folder. Example: pytho -m scripts.aimate --cofig cofigs/prompts/v2/5-RealisticVisio-MotioLoRA.yaml
mm_sd_v15_v2.ckpt
was traied o larger resolutio & batch size, ad gais oticeable quality improvemets. Check it out at Google Drive / HuggigFace / CivitAI ad use it with cofigs/iferece/iferece-v2.yaml
. Example: pytho -m scripts.aimate --cofig cofigs/prompts/v2/5-RealisticVisio.yaml
[2023.07] AimateDiff v1
Iferece
pytho -m scripts.aimate --cofig cofigs/prompts/1-TooYou.yaml
pytho -m scripts.aimate --cofig cofigs/prompts/3-RczCartoo.yaml
Commuity Cotributios
Gradio Demo
coda activate aimatediff
pytho app.py
localhost:7860
.Commo Issues
Istallatio
Various resolutio or umber of frames
Curretly, we recommed users to geerate aimatio with 16 frames ad 512 resolutio that are aliged with our traiig settigs. Notably, various resolutio/frames may affect the quality more or less.
How to use it without ay codig
Aimatig a give image
Cotributios from commuity
Cotributios are always welcome!! The dev
brach is for commuity cotributios. As for the mai brach, we would like to alig it with the origial techical report :)
Traiig ad iferece
BibTeX
@article{guo2023aimatediff,
title={AimateDiff: Aimate Your Persoalized Text-to-Image Diffusio Models without Specific Tuig},
author={Guo, Yuwei ad Yag, Ceyua ad Rao, Ayi ad Wag, Yaohui ad Qiao, Yu ad Li, Dahua ad Dai, Bo},
joural={arXiv preprit arXiv:2307.04725},
year={2023}
}
@article{guo2023sparsectrl,
title={SparseCtrl: Addig Sparse Cotrols to Text-to-Video Diffusio Models},
author={Guo, Yuwei ad Yag, Ceyua ad Rao, Ayi ad Agrawala, Maeesh ad Li, Dahua ad Dai, Bo},
joural={arXiv preprit arXiv:2311.16933},
year={2023}
}
Disclaimer
Cotact Us
Ackowledgemets
点击空白处退出提示
评论