Subject: Actually, there are in-built ways to refine the result.
Author:
Posted on: 2022-12-09 17:32:42 UTC

While the main function is, of course, text-to-img, it also has an img-to-img function which allows to refine a generated image, or use an existing one as the "base" on which prompts should be applied. On top of that, there's the inpaint function which allows to select the portion of the image to be "rerolled".

I'm gonna make an example here. Let's take one of the Nikkis from the previous batches.

00672-1176043502-masterpiece-best-quality-green-eyes-brown-hair-long-hair-hair-intakes-older

Nikki looks fairly perplexed in this one, and I dare say I may know why: this kind of bikini is actually a bit too skimpy for her liking. Let's try to fix that. With Paint I very roughly added bits to her bikini to make it a bit more covering.

nikkimodified

It is, of course, no good at all. but here's where the inpaint function comes in. I loaded the image, used the tool to select the area of the bikini as the only area to be worked on, and told that I wanted that edited mess to be a green bikini.

index

It actually took several batches to find a nice one, as inpaint is even more of a hit or miss compared to the full-image generation, but poof! the ugly patchwork job I did is now an actual bikini that covers more than the original iteration. However, the swimsuit doesn't feel like it is in the same style of the rest of the image, and Nikki still looks perplexed. We stil have a trick to be used here, though.

index

I sent the image that resulted to the imgtoimg function, putting in again the same tags as the first generation of the image, but also specifying smiling in the tags. By setting the denoising strength very low, I made sure the AI sticked very close to the original image, with the end result that it mostly "armonized" everything together. Now that she has a swimsuit more of her liking, Nikki is happy she can finally enjoy her swim under the sea!

By playing with the generator's sliders, it is actually not that hard to fine-tune things. At that point, though, the amount of work to get exactly what an hypotetical commissioner wants would obviously become not insignificant, between actually studying how to make the AI do exactly what we need, and picking out things to be rerolled and waiting the time for each reroll hoping for that one good result.

Reply Return to messages