Skip to content

yamato3010/Stable-Diffusion-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stable Diffusion discord bot

Stable Diffusionというオープンソースの画像生成AIをDiscordで使用できるようにするためのBOTです。
実際に友人のDiscordサーバ上で運用しました。

This is a BOT to enable the open source image generation AI called Stable Diffusion to be used on Discord.
I actually ran it on a friend's Discord server.

Demo

discordのスクリーンショット

Install

  • PyTorch、Transformers、Diffusersをインストールします。
    初回にモデルのダウンロードが行われます。
    Install PyTorch, Transformers and Diffusers.
    The model will be downloaded for the first time.

  • .envファイルを作成し、以下を記述してください。
    Create an .env file and write the following

API_TOKEN=<Hugging Face access token>
DISCORD_TOKEN=<Discord access token>

Usage

ボットに対して

!create {作成したい画像の説明(英文)}

と送ると生成されるはずです。

for bots

!create {description of the image you want to create }

should generate the image.

Releases

No releases published

Packages

No packages published

Languages