Skip to content

ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn

Notifications You must be signed in to change notification settings

surt91/ACthulhuADay

Repository files navigation

🐙 A Cthulhu A Day

Example images of Cthulhu

This bot uses Stable Diffusion to tweet a picture of Cthulhu (or one of his friends) each day until the great old one rises. Follow @ACthulhuADay.

⚙️ Setup

We use the the diffusers and transformers library from huggingface to download the models released by Stable Diffusion, as well as a variant of gpt2 trained on Stable Diffusion prompts. This requires a huggingface account, to generate an access token (https://huggingface.co/settings/tokens), which is needed in turn to login via huggingface-cli login. (The weights can also be downloaded manually and the relative path can be passed as model_id in render.py.)

The dependencies are listed in the requirements.txt.

🎨 Usage

Generate many images in the img/ subfolder:

python main.py --batch

Tweet one of the images in the img/ subfolder (or generate a new one if img/ is empty):

python main.py

About

ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages