Multimodal AI Story Teller, built with Stable Diffusion, GPT, and neural text-to-speech.
Project description
Fabler
A multi-model AI story teller, built with Stable Diffusion, GPT, and neural text-to-speech (TTS).
Given a prompt as an opening line of a story, GPT writes the rest of the plot; Stable Diffusion draws an image for each sentence; a TTS model narrates each line, resulting in a fully animated video of a short story, replete with audio and visuals.
Quickstart
Check it out now
or follow the instructions below to install locally.
Install from PyPi
$ pip install fabler
Install from Source
- Clone the repository
$ git clone https://github.com/christopherwoodall/fabler.git
- Install package requirements.
$ pip install --upgrade pip wheel
$ pip install -e ".[developer]"
- Run the demo. The final video will be saved as
/out/out.mp4, alongside other intermediate images, audio files, and subtitles.
$ fabler --scene=scene.yaml
4 Alternatively with make:
make install && make run
Usage
- Load the model with defaults.
from fabler import Fabler
story_teller = Fabler.from_defaults()
story_teller.generate(...)
- Alternatively, configure the model with custom settings.
from fabler import Fabler, FablerConfig
config = FablerConfig(
writer="gpt2-large",
painter="CompVis/stable-diffusion-v1-4",
max_new_tokens=100,
diffusion_prompt_prefix="Van Gogh style",
)
story_teller = Fabler(config)
story_teller.generate(...)
License
Released under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fabler-0.0.6-py3-none-any.whl.
File metadata
- Download URL: fabler-0.0.6-py3-none-any.whl
- Upload date:
- Size: 91.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d605795fcdfb81c5673b3a519294e9f9fac5e983617158ae3a836f136e1d60fd
|
|
| MD5 |
dd92dfa0a2e8df51adf00ec623085023
|
|
| BLAKE2b-256 |
dd317f185979877777234de0282c46d35f36d5fcaa8ecd034af86fbe3c70960c
|