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. You'll use this for doing text-to-image and image-to-image commands.

  • Prompt - This is where you'll start. Input the things you want to see in the output image.
  • Negative prompt - Input things here to try to remove them from the output image.
  • Data model - Allows selection from any configured models.
  • Steps - The amount of iterations AIYA will go through before completing an image.
  • Width - How wide the image will be.
  • Height - How tall the image will be.
  • Guidance scale - This is how closely AIYA will pay attention to your prompt. Higher = pays more attention
  • Sampler - You can select from one of the sampling methods.
  • Seed - This value serves as a basis the generated image. Using the seed can help reproduce the same image or similar images.
  • Style - This will list the preset styles from the Web UI. Styles are packages of prompts that are shortcuts to save on typing.
  • Facefix - Tries to fix faces in images using one of the selected available facefix AI models.
  • High-res fix - When creating high-resolution images, sometimes undesired results appear (like duplicated anatomy). This tries to fix that.
  • CLIP skip - Some models perform better with different values of CLIP skip.
  • Hypernetwork - This can apply a hypernetwork model that can influence the generated image.
  • Strength - Used for init_img/init_url. Higher value = AIYA is allowed more freedom to alter the source image.
  • Init_img - This will take an image attachment as a starter point to generate an image.
  • Init_url - Same as above, but for a URL containing an image.
  • Count - This will allow generating multiple images at once using the same parameters.

/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. Additional Web UI options are provided as follows:

  • upscaler 1 - Select among the list of upscaler models loaded into the Web UI. The default is SwinIR_4x if it's installed into Web UI, otherwise it's ESRGAN_4x.
  • 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