ZeldaFan0225 / AI_Horde_Discord

A discord bot to interact with https://aihorde.net
GNU Affero General Public License v3.0
50 stars 14 forks source link

Feature request: hires-fix support #43

Closed Efreak closed 1 year ago

Efreak commented 1 year ago

Hires-fix upscales the image after generation completes (or during generation, in more advanced workflows that Horde doesn't support afaik), then runs img2img on it. The parameter for this in Horde is hires_fix.

It would be nice to have this configurable[^1] via the bot, but I would particularly like to use it with style.

With hires-fix enabled, Horde generates at correct aspect ratio at closest size to official base, then upscales to the size requested in the payload, so all interfaces using styles directly need to either ignore the style size or apply the hires-fix parameter. I'm not willing to make styles that do this unless I can ensure the most popular such interfaces do this (afaik this means the discord bot and possibly also mastodon and Reddit bots).

[^1]: I'm also hoping that setting hires-fix denoising will be available soon, as it's been bright up a few times and Tazlin mentioned that it seems to be intended, as this would allow much larger hires-fix sizes (even better would be ability to set initial image size as well, but I don't have much hope for that).

ZeldaFan0225 commented 1 year ago

i added something in the latest commit please see if it checks your feature request