Brings a range of true text2video models, such as ModelScope and Videocrafter, into the WebUI.
 
 
Go to file
kabachuha 28e5b56b4f Update face_restore.py 2023-03-26 23:39:36 +03:00
.github/ISSUE_TEMPLATE Update feature_request.yml 2023-03-20 18:00:12 +03:00
scripts Update face_restore.py 2023-03-26 23:39:36 +03:00
.gitattributes Initial commit 2023-03-19 23:32:38 +03:00
.gitignore Initial commit 2023-03-19 23:32:38 +03:00
LICENSE Initial commit 2023-03-19 23:32:38 +03:00
README.md Update README.md 2023-03-26 18:10:21 +03:00
error.mp4 add error placeholder vid 2023-03-20 15:11:41 +03:00
install.py autoinstall requirements 2023-03-20 12:24:02 +03:00
requirements.txt setup extras 2023-03-26 20:18:47 +03:00
style.css css fixup 2023-03-26 21:57:35 +03:00

README.md

ModelScope text2video Extension for AUTOMATIC1111's StableDiffusion WebUI

Auto1111 extension consisting of implementation of ModelScope text2video using only Auto1111 webui dependencies and downloadable models (so no logins required anywhere)

8gbs vram should be enough to run on GPU with low vram vae on at 256x256 (and we are already getting reports of people launching 192x192 videos with 4gbs of vram). 24 frames length 256x256 video definitely fits into 12gbs of NVIDIA GeForce RTX 2080 Ti. We will appreciate any help with this extension, especially pull-requests.

Update 2023-03-26: prompt weights implemented!

Test examples:

Prompt: flowers turning into lava

https://user-images.githubusercontent.com/14872007/226214023-2d3892d8-64d4-4312-baab-575aafedae09.mp4

Prompt: cinematic explosion by greg rutkowski

https://user-images.githubusercontent.com/14872007/226345611-a1f0601f-db32-41bd-b983-80d363eca4d5.mp4

Prompt: really attractive anime girl skating, by makoto shinkai, cinematic lighting

https://user-images.githubusercontent.com/14872007/226468406-ce43fa0c-35f2-4625-a892-9fb3411d96bb.mp4

Where to get the weights

Download the following files from the original HuggingFace repository. Alternatively, download half-precision fp16 pruned weights (they are smaller and use less vram on loading):

  • VQGAN_autoencoder.pth
  • configuration.json
  • open_clip_pytorch_model.bin
  • text2video_pytorch_model.pth

And put them in stable-diffusion-webui/models/ModelScope/t2v. Create those 2 folders if they are missing.

Screenshots

Screenshot 2023-03-20 at 15-52-21 Stable Diffusion

Screenshot 2023-03-20 at 15-52-15 Stable Diffusion

Dev resources

HuggingFace space:

https://huggingface.co/spaces/damo-vilab/modelscope-text-to-video-synthesis

The model PyTorch implementation from ModelScope:

https://github.com/modelscope/modelscope/tree/master/modelscope/models/multi_modal/video_synthesis

Google Colab from the devs:

https://colab.research.google.com/drive/1uW1ZqswkQ9Z9bp5Nbo5z59cAn7I0hE6R?usp=sharing