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:
Since this is the first PR, added CI lint checks.
An update was made to the default settings repo, which adds the two new columns. Grid generations also now only get persisted with whatever the batch size/count was at the time of generation.
The bot values are now used when requesting txt2img from the SD API.
The discord bot package was also modified to add two new select menus, which calculate the corresponding value for the other setting to balance a result of four images.
Default bot settings are now read, and then populated with constant default values to fill in added column settings, since these were added as a result of this PR.
The /imagine_settings command now presents a message like this, which automatically adjusts the corresponding size/count based on changing the other setting:
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: