/discord-stable-diffusion

A neat Discord bot to run Stable Diffusion locally

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Shanghai - AI Powered Art in a Discord Bot!

Any questions or need help? Come hop on by to our Discord server!

Discord Server

Setup

Clone the repo, then install the dependencies in requirements.txt, then in run.bat include your HuggingFace token and the Discord token for your bot, then simply execute the script.

Or, if you want to skip the batch script, you can simply run this in a terminal.

$ python . --token=DISCORD_TOKEN --hf_token=HF_TOKEN

Quickstart

Text to Image

To generate an image from text, use the /dream command and include your prompt as the query. There's tons of parameters to play with so go wild!

image

image

Image to Image

To generate an image from another image, use the /translate command and include a prompt and an image URL.

image

image

(Experimental) Inpainting

To fill in a mask in an image, supply a prompt, an image url, and a url to a mask of black pixels in a transparent image

image