[AI Technique] Banter, shared ideas, and frustrations

Post Reply
xs70
Posts: 139
Contact:

[AI Technique] Banter, shared ideas, and frustrations

Post by xs70 »

LLL wrote: Wed Aug 13, 2025 9:04 am I wanted to ask the various experts for some advice, using a modified pic by JD as an example.

I pasted a cutout of a young Nastassja Kinski over the upper body of Aloy using Photopea (free) and then smoothed the edges using Fooocus (free).

Of course, this was done quickly and the result has multiple issues - if I had taken more time I could have improved it slightly. But one issue stands out supreme: the different skin color.

Now once I would have tried to fix that using Photoshop's match color function. However I no longer have Photoshop available. Photopea too has a match color function but it works awfully.

So, is there a way to use Fooocus to make Aloy's body asume the color of Nastassja's? Or at least a comon middle ground? A search online seems to get a positive response, but as for how to proceed it's quite obscure and poor on details...

download/file.php?id=81362&mode=view
My 2 cents, mainly from AI/ComfyUI.

Technically, color editing isn't an AI/Stable Diffusion thing. ComfyUI has nodes that do color matching and stuff, but those nodes are essentially just Photoshop algorithms put into ComfyUI nodes, doing Photoshop stuff, like changing RGB values. AI image generation in the Latent Diffusion style implies we use a sampler with a trained AI model, to generate images either from scratch (Txt2Img) or from an already existing image (Img2Img).

If we want to color correct JD's image with Stable Diffusion, this is Img2Img: we (1) add noise = random pixels to JD's image and (2) pass the (re)noised image to a Sampler. The sampler will then denoise the image, resulting in a new image based on JD's image. The more noise is added (with a maximum of 100%), the less the new image will resemble the original.

If we want a new image that still resembles JD's original, we have to be conservative with the amount of noise we add. Something like 30%, maybe 50% at most. Here's the thing. Let's say we inject 30% of noise. This means 70% of the pixels of JD's image remain unchanged, meaning the color difference between Nastassja Kinski's torso and Alyx's body is still there. Stable Diffusion won't actively try to equalize the colors; all SD does is continue from the image you give it, and resolve the noise. Working with SD, I've found that colors are pretty persistent, for the reasons just explained. For example, if I start from an image with a girl with red hair, and I Img2Img with a prompt that says "blonde", I end up with a girl with reddish blonde hair. It continues from an image of a girl with red hair, and denoises towards "blonde", ending up somewhere between red and blonde.

What I would do is color correct Natasha Kinski's image before copy/pasting it into JD's image. This can be done in Photoshop, GIMP, any photo editing software. Then copy/paste the torso into JD's image.

Or do what JD suggested: greyscale the image and recolor it in ComfyUI, using the DDColor_Colorize node. You may still see the color difference in greyscale though, so the recoloring model may pick different colors in the new coloring as well. But this is probably something you can fix by editing the greyscale image to make the greyscale levels match for the whole body, before running it through the recoloring node.

tl;dr: Stable Diffusion/ComfyUI isn't the best solution if all you need is color correction.
User avatar
yyy02
Posts: 3953
Contact:

Re: [AI Technique] Banter, shared ideas, and frustrations

Post by yyy02 »

xs70 wrote: Fri Aug 15, 2025 5:00 pm...
tl;dr: Stable Diffusion/ComfyUI isn't the best solution if all you need is color correction.
BTW, thank you for the detailed description of what it took.
I'm just an interested observer, but the time and effort expended to keep us informed is really appreciated.
User avatar
yyy02
Posts: 3953
Contact:

Re: [AI Technique] Banter, shared ideas, and frustrations

Post by yyy02 »

There is also some AI discussion happening here: viewtopic.php?f=5&t=1187

Could we decide on a central thread as repository for everything AI, so as not to risk missing anything?
xs70
Posts: 139
Contact:

Re: [AI Technique] Banter, shared ideas, and frustrations

Post by xs70 »

yyy02 wrote: Sun Aug 17, 2025 10:57 pm Could we decide on a central thread as repository for everything AI, so as not to risk missing anything?
Sure, that makes sense. But we have two separate forums (Open Discussions and Art Contributions). So I guess the question is: which is the best place? I'd suggest Art Contributions is a good place for AI/Art Discussions. We could use this thread.
User avatar
doe.1971
Posts: 1842
Contact:

Re: [AI Technique] Banter, shared ideas, and frustrations

Post by doe.1971 »

I'm here less for AI and more for frustration aspect. Second time in the week check engine comes on. Effing annoying.

On-topic: I almost never enter Open Discussion.
mtf
Posts: 23
Contact:

Re: [AI Technique] Banter, shared ideas, and frustrations

Post by mtf »

Maybe this is more of a mini rant than a frustration.

It’s frustrating that on the one hand, gen AI is at the point where it’s mainstream enough and commoditized enough that the simple stuff is quite easy to use and widely available (maybe too much so for scammers and cuh but that’s another rant).

On the other hand, when you get to non-mainstream usage (eg: GIMPy stuff) or wanting to delve into the backend, it’s still all so much bleeding-edge, jargon-laden, badly documented and gatekept. I mean I’ve been in tech or tech-adjacent for decades, and the bleeding-edge stuff is always like this, but the rise of Discord (ironically partly due to AI companies scraping public websites) and Youtube has made it just so much worse than usual.

No, I don’t want to decipher a pixelated screenshot of some guy’s workflow while he mumbles into his microphone and refers to a previous video of his that itself refers to links that need yet another login registration. And then you go through the trouble and find the post is about a 3 month old version of the software that’s obsolete and now the GUI is completely different with totally different options from the current version.

Don’t even get me started on the horribly inconsistent way people name and label their models and LORAs.

Growl.


Anyway. Don’t want to be entirely negative, so I’ll mention that I’m glad that there’s this little corner of the web for our niche interests - and that Ralphus and Margot/RedFeline have kept it going for a quarter-century (!) now. Thanks to all who’ve participated in the AI art stuff, it’s been fun!
Post Reply

Return to “Art Contributions”

Who is online

Users browsing this forum: No registered users and 13 guests