-
-
Notifications
You must be signed in to change notification settings - Fork 4
Generating avatars for NPCs (Stable Diffusion)
LlamaTale currently supports automatically generating avatars that NPCs use when talking or performing actions.
To enable it, you need to define the "image_gen" key in a story_config with the type of generator to use. When writing this, automatic1111s stable-diffusion-webui and comfyui is supported.
So a config would look like:
"image_gen":"Automatic1111"
or
"image_gen":"ComfyUi"
(case is important)
Developing other generators:
If you would like to add functionality for other generators, such as stable-horde, look at the files base_gen.py
and automatic1111.py
in the image_gen
folder. The class should be named the same as the file containing it (but upper case is OK) and it should extend ImageGeneratorBase
. Then, it should hopefully be as simple as using it in the story config.
To generate images you will need a few more requirements. I didn't put them in requirements.txt since only a minority will do this.
pip install pillow