Skip to content

Recomposite color correct improvements (broken out of Small Improvements) #597

Closed
@willhsmit

Description

@willhsmit

Feature Idea

Opening a separate feature thread for the 'Recomposite color correct' for flux fill feature mentioned in #550. Original description:

"recomposite color correct" to make flux fill work well -- line up pixels, select those with mask=0, ensure there's more than a minimum pixel count, and then measure what color correction is needed, take the average, and apply it to the full image -- see https://discord.com/channels/1243166023859961988/1243185862234210389/1327390619068530729 for my attempt at this. Unfortunately flux vae is dumdum inconsistent so even that's not good enough. probably need a full multiaxis gradient for the color shift. Might be a smarter way to do it? idk

The discord link has code that compares the old and new pixels outside the mask, computes the average difference between them in HSV, and applies that uniformly to the pixels inside the mask. The discord also suggests some areas of improvement:

problem is, the color shift from the flux vae is inconsistent. I tried to do a global color correct, but if you fix the left, it'll just be wrong a different direction on the right. Maybe a, like, multi-dimension gradient from all edges would do nicely? ie do the shift estimate 4 or 8 times, for each different direction, and then smoothblend between them. I think the real solution is just throw up your hands and use a blurred mask, or don't recomposite at all :(

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions