Generative AI for the Blender VSE: Text, video or image to video, image and audio in Blender Video Sequence Editor.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.1 KiB

2 years ago
# Text to Video
2 years ago
Adding text to video to the Blender Video Sequence Editor using ModelScope. The full version needs 20 GB VRAM to work. An alternative version with a pruned data set(smaller) will download as default, for now - see code to change to 20 GB VRAM version.
2 years ago
2 years ago
## How to install
2 years ago
Download the add-on: https://github.com/tin2tin/text_to_video/archive/refs/heads/main.zip
2 years ago
Run Blender as Administrator and install the add-on as usual: Preferences > Add-ons > Install > select file > Enable the add-on. When running the first generation of video or audio many GB will have to be downloaded, so go grab a coffee.
2 years ago
2 years ago
Alternative download for the weighted set which needs 20 GB of VRAM to run:
2 years ago
https://modelscope.cn/models/damo/text-to-video-synthesis/files
2 years ago
2 years ago
Or a pruned weighted set which should be able to run on 6 GB VRAM:
2 years ago
https://huggingface.co/kabachuha/modelscope-damo-text2video-pruned-weights/tree/main
2 years ago
## Location
2 years ago
Video Sequence Editor > Sidebar > Generator
2 years ago
2 years ago
![image](https://user-images.githubusercontent.com/1322593/232002471-c487eea2-fd56-4dca-a7cc-f5b43b46516f.png)
2 years ago
2 years ago
## How to
In order to make Blender run the generated video properly, the resolution and the fps should be set to match the footage.
The resolution can be set by selecting a strip > Strip Menu > Movie Strip > Set Render Size.
The project/scene fps can be set in the Properties > Output Tab > Format > Frame Rate - set it to Custom and 8.
Alternatively can this .blend be loaded as a quick start, but the add-on still needs to be installed:
https://github.com/tin2tin/text_to_video/raw/main/text2video_ui.blend
2 years ago
# Text to Audio
Currently, not working. Produces a file without any content.
2 years ago
https://github.com/huggingface/diffusers/issues/3091
2 years ago
## Modules
2 years ago
Diffusers: https://github.com/huggingface/diffusers
2 years ago
ModelScope: https://modelscope.cn/models/damo/text-to-video-synthesis/summary
2 years ago
2 years ago
AudioLDM: https://github.com/haoheliu/AudioLDM
2 years ago
If some additional python modules are missing, write about it here(so I can add them), and use the Blender PIP add-on to manually install the missing modules:
https://github.com/amb/blender_pip
2 years ago
2 years ago
2 years ago