Skip to content

Slash commands

Kilvoctu edited this page May 31, 2023 · 26 revisions

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

/draw

Check out the main wiki article for /draw.

/generate

This command will create a sample prompt based on a word or few words that you provide.

/identify

This command is used for captioning an image. You can provide an image attachment or URL, and AIYA will generate a caption. There are two options for phrasing.

  • Normal - This uses the CLIP model and will create a standard caption.
  • Tags - This uses the deepdanbooru and will give you a description as tags. This could be helpful create prompts on anime-centric models.
  • Metadata - If you select this option, AIYA will try to pull the metadata from the image. This could be useful if you need to know what parameters were used to generate an image.

/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.

/info

This has two functions, one for getting batch images and the other to view the documentation.

Batch images

When generating a batch of images, you will get a Batch ID and Image IDs, sort of like this:
image
To retrieve an image manually via /info, run the command and select both the batch_id and image_id options, then put the respective IDs into them.
image
As seen in the tooltip, it is possible to do more than one image ID.

Documentation

Provides a small glossary of information, accessible through its buttons. To access the documentation, just do /info by itself without passing any options.

  • Models - 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 (and shorthash) associated with it.
  • Styles - This provides a list of all the styles that have been configured, as well as what words they contain.
    • Styles are displayed in format: ('prompt', 'negative prompt')
  • Hypernets - This provides a list of each hypernetwork that has been loaded.
  • LoRAs - This provides a list of each LoRA that has been loaded.
  • TIs - This lists each of the textual inversion embeddings that have been loaded. It's categorized by SD 1.x and SD 2.x embeddings, so you know which is compatible with which. That said, AIYA doesn't know which models themselves are SD 1.x or SD 2.x. Bot maintainers will want to have separate Discord channels for each.
  • Documentation - Provides a mini-guide on usage and a link back to here for more detailed information.
  • Navigation buttons - These buttons will become enabled if any lists are too big to fit on one page.

/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 options are provided as follows:

  • upscaler 1 - Select among the list of upscaler models loaded. The default is SwinIR_4x if it's installed; 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 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).