Skip to content

Slash commands

Kilvoctu edited this page Jan 11, 2023 · 26 revisions

AIYA is a slash command bot. Here's the available list of commands and information about their respective options.

/draw

The primary command for creating AI art. This is what's used for doing text-to-image and image-to-image commands.
This section is a work in progress..

/identify

This command is used for captioning an image. You can provide an image attachment or URL, and AIYA will generate a caption using the Web UI's BLIP model.
I'm aware that there is also a deepdanbooru model for captioning. It will be implemented soon™.

/settings

Settings is used to set server defaults for image generations.
It's useful for example if a server runs primarily Stable Diffusion 2.x models, which work best at 768x768 or higher. The bot maintainer can then set width/height to default on 768/768 (as opposed to normal default 512/512).
Since /settings could lead to undesired changes, it's recommended to limit its visiblity to trusted users via Apps -> Integrations in your Discord Server Settings.

These are the supported options:

  • Negative prompt
  • Data model
  • Steps
  • Maximum steps limit
  • Width
  • Height
  • Sampling method
  • Count
  • Maximum count limit
  • CLIP skip
  • Hypernetwork

In addition, there is a "current_settings" option for reviewing the server defaults.

There is also a "refresh" option. What this option does is pull any changes to content from the Web UI and update each of AIYA's lists with the content changes. So if you're adding embeddings or hypernetworks or something to your Web UI, you can use this option and not need to restart AIYA. Refresh can also be used after making changes to the models.csv.
Note that when adding (or removing) content to the Web UI, you may need to reload or restart the Web UI. This is to update the API for AIYA to read from.

/stats

This is a very simple feature. All stats does is count how many images have been generated through /draw. It was the very first extra feature I added! Other stats could be added, but I don't know what would be interesting to have.

/tips

Tips provides a small glossary of information, accessible through its buttons:

  • Quick tips - This is a beginner's guide to Web UI's prompting. I wrote this a long, long time ago to help newbies get started with prompting, I've never really updated it.
  • Styles list - This provides a list of all the styles loaded into the Web UI, as well as what words they contain. Currently, there is a bug in which it does not display the negative prompts.
  • Models list - This provides a list of each model configured into AIYA bot. It shows the display name that's normally shown and used, as well as the name of the model associated with it.
  • Embeddings list - This lists each of the embeddings loaded into the Web UI. It's categorized into two columns, so people know which can be used for which models (SD 1.x and SD 2.x)
  • About me - A small credit to myself by linking to this repo.

/upscale

This is a simple tool to upscale any existing image. You can feed it an attachment or a URL and resize the image up to 4x. I provide additional Web UI options as follows:

  • upscaler 1 - Select among the list of upscaler models loaded into the Web UI. The default is set to SwinIR_4x, so make sure that one is loaded in (it was made into an optional extension at some point).
  • upscaler 2 - This allows to mix in a secondary upscaler model, if desired.
  • upscaler 2 strength - This affects how much effect the upscaler 2 has (0.0 to 1.0). Setting it to 1.0 will ignore upscaler 1 completely.
  • gfpgan - The effect of the GFPGAN face restoration model. It defaults to 0.0, effectively meaning it's unused. Set to 1.0 for the maximum effect.
  • codeformer - Same as above, but for the CodeFormer face restoration model. You may use both models simultaneously.
  • upscale first - If set to true, AIYA will upscale the image first, then run the face restoration model. The default is false (restore faces, then upscale).
Clone this wiki locally