Skip to content
forked from Kilvoctu/aiyabot

A neat Discord bot for AUTOMATIC1111's Web UI

License

Notifications You must be signed in to change notification settings

Dazzyreil/aiyabot

 
 

Repository files navigation

AIYA

A Discord bot interface for Stable Diffusion

Usage

To generate an image from text, use the /draw command and include your prompt as the query.

Currently supported options

  • negative prompts
  • swap model/checkpoint (see wiki)
  • sampling steps
  • width/height
  • CFG scale
  • sampling method
  • seed
  • Web UI styles
  • face restoration
  • high-res fix
  • CLIP skip
  • hypernetworks
  • LoRA
  • img2img
  • denoising strength
  • batch count

Bonus features

  • /settings command - set per-channel defaults for supported options (see Notes!):
    • also can set maximum steps limit and max batch count limit
    • refresh (update AIYA's options with any changes from Web UI)
  • /identify command - create a caption for your image.
  • /stats command - shows how many /draw commands have been used.
  • /info command - basic usage guide and other info.
  • /upscale command - resize your image.
  • buttons - certain outputs will contain buttons.
    • 🖋 - edit prompt, then generate a new image with same parameters.
    • 🎲 - randomize seed, then generate a new image with same parameters.
    • 📋 - view the generated image's information.
    • ❌ - deletes the generated image.
  • Configuration file - can change some of AIYA's operational aspects.

Setup requirements

  • Set up AUTOMATIC1111's Stable Diffusion AI Web UI.
    • AIYA is currently tested on commit 65995a2ea38a1a0afd06cb508a4f65fd0d3a1743 of the Web UI.
  • Run the Web UI as local host with API (COMMANDLINE_ARGS= --api).
  • Clone this repo.
  • Create a file in your cloned repo called ".env", formatted like so:
# .env
TOKEN = put your bot token here
  • Run AIYA by running launch.bat (or launch.sh for Linux)

Notes

  • See wiki for notes on additional configuration.
  • See wiki for notes on swapping models.
  • Ensure AIYA has bot and application.commands scopes when inviting to your Discord server, and intents are enabled.
  • As /settings can be abused, consider reviewing who can access the command. This can be done through Apps -> Integrations in your Server Settings. Read more about /settings here.
  • AIYA uses Web UI's legacy high-res fix method. To ensure this works correctly, in your Web UI settings, enable this option: For hires fix, use width/height sliders to set final resolution rather than first pass

Credits

AIYA only exists thanks to these awesome people:

About

A neat Discord bot for AUTOMATIC1111's Web UI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Other 0.2%