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.

115 lines
4.1 KiB

2 years ago
# Generative AI - Text to Video, Image and Audio in Blender
2 years ago
AI generate video, image and audio from text prompts or strips.
2 years ago
2 years ago
## Video Examples
### Modelscope & Bark
[![Watch the video](https://img.youtube.com/vi/auHu02KJZQs/0.jpg)](https://youtu.be/auHu02KJZQs) [![Watch the video](https://img.youtube.com/vi/AAdQfQjENJU/0.jpg)](https://youtu.be/AAdQfQjENJU)
2 years ago
## Features
* Text to video
* Text to audio
* Text to image
* Seed, Quality Steps, Frames, Word Power.
* Batch operation of text strips into videos, audios or images.
* Model card selector
* Render finished notification
* Model Cards: Modelscope, Animov, Stable Diffusion 1.5 & 2, AudioLMD and Bark
## How to install
(As for Linux and MacOS, if anything differs in installation, then please share instructions.)
2 years ago
* First you must download and install git for your platform(must be on PATH(or Bark will fail)): https://git-scm.com/downloads
2 years ago
* Download the add-on: https://github.com/tin2tin/text_to_video/archive/refs/heads/main.zip
2 years ago
* On Windows, right click on the Blender icon and "Run Blender as Administrator"(or you'll get write permission errors).
2 years ago
* Install the add-on as usual: Preferences > Add-ons > Install > select file > enable the add-on.
2 years ago
* In the Generative AI add-on preferences, hit the "Install all Dependencies" button.
2 years ago
* Note that you can change what model cards are used in the various modes here(video, image, audio).
* When it writes that it is finished(if any errors, let me know).
* Open the add-on UI in the Sequencedr > Sidebar > Generative AI.
* The first time any model is executed many GB will have to be downloaded, so go grab lots of coffee.
2 years ago
2 years ago
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
![image](https://user-images.githubusercontent.com/1322593/233155019-05c514a3-d7cc-4f4f-ba9c-7d77f957fd98.png)
2 years ago
![image](https://user-images.githubusercontent.com/1322593/233361486-e8fc96c3-1c3f-4077-af56-98bab66638c3.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, set Movie Model Card and set Sound Notification in the add-on preferences:
2 years ago
2 years ago
![image](https://user-images.githubusercontent.com/1322593/233810577-961de9ec-ce3f-433b-a43c-dd4583fb518c.png)
2 years ago
2 years ago
#### Tip
2 years ago
If the image of your renders breaks, then use the resolution from the Model Card in the Preferences.
2 years ago
# Text to Audio
### AudioLDM
Find AudioLDM documentation here: https://github.com/haoheliu/AudioLDM
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.
### Bark
Find Bark documentation here: https://github.com/suno-ai/bark
2 years ago
* [laughter]
* [laughs]
* [sighs]
* [music]
* [gasps]
* [clears throat]
* — or ... for hesitations
* ♪ for song lyrics
* capitalization for emphasis of a word
* MAN/WOMAN: for bias towards speaker
2 years ago
#### Tip
If the audio breaks up, try processing longer sentences.
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://huggingface.co/cvssp/audioldm-s-full-v2
https://github.com/haoheliu/AudioLDM
2 years ago
2 years ago
Bark: https://github.com/suno-ai/bark
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
## Disclaimer for using the Modelscope model:
2 years ago
- The model can only be used for non-commercial purposes. The model is meant for research purposes.
- The model was not trained to realistically represent people or events, so using it to generate such content is beyond the model's capabilities.
- It is prohibited to generate content that is demeaning or harmful to people or their environment, culture, religion, etc.
- Prohibited for pornographic, violent and bloody content generation.
- Prohibited for error and false information generation.
2 years ago
2 years ago