AndBobsYourUncle / stable-diffusion-discord-bot

A Discord bot, written in Go, that interfaces with the Automatic 1111's API interface.
MIT License
128 stars 35 forks source link

Add way to configure the batch count/size balance for the bot #8

Closed AndBobsYourUncle closed 1 year ago

AndBobsYourUncle commented 1 year ago

This adds a way to configure the balance between batch size and count such that it results in 4 images. Changing the size to 4 sets the count to 1. Setting the size to 2, sets the count to 2, and setting the size to 1 sets the count to 4.

That way, when the request goes through, the API is returning the expected 4 image grid.

Changes:

The /imagine_settings command now presents a message like this, which automatically adjusts the corresponding size/count based on changing the other setting:

Screenshot 2023-01-09 at 9 31 15 PM