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.

71 lines
2.5 KiB

2 years ago
# Generative AI - Text to Video
2 years ago
AI generate video and audio from text prompts.
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.
2 years ago
2 years ago
Now, in the add-on preferences, hit the "Install all Dependencies" button, and many GB will have to be downloaded, so go grab a coffee.
### Weights
Pruned 6 GB VRAM(included in the add-on download):
2 years ago
2 years ago
https://huggingface.co/kabachuha/modelscope-damo-text2video-pruned-weights/tree/main
2 years ago
20 GB of VRAM:
https://modelscope.cn/models/damo/text-to-video-synthesis/files
Anime - 6 GB VRAM:
https://huggingface.co/kabachuha/animov-0.1-modelscope-original-format
2 years ago
## Location
2 years ago
Video Sequence Editor > Sidebar > Generative AI
2 years ago
2 years ago
![image](https://user-images.githubusercontent.com/1322593/233038942-ae01ed61-9977-4478-b90a-af8282d6556c.png)
2 years ago
2 years ago
Converting Text strips into GeneratorAI strips:
![image](https://user-images.githubusercontent.com/1322593/232625894-6726d407-c802-4619-864a-0b8b7faeceff.png)
2 years ago
2 years ago
Install Dependencies and Sound Notification in the add-on preferences:
2 years ago
2 years ago
![image](https://user-images.githubusercontent.com/1322593/233042178-8a7d300e-6093-4a95-ab79-13024e0af60e.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
2 years ago
Find documentation here: https://github.com/haoheliu/AudioLDM
2 years ago
Try prompts like: Bag pipes playing a funeral dirge, punk rock band playing hardcore song, techno dj playing deep bass house music, and acid house loop with jazz.
Or: Voice of God judging mankind, woman talking about celestial beings, hammer on wood.
2 years ago
2 years ago
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