Replies: 2 comments 4 replies
-
Hi @nistvan86, Thanks for reaching out! After looking into the mask functionality, I think what you're describing is perhaps the "Inpaint sketch" tab of the img2img mode. I have not tried this feature before today. For context: I tried colorizing the mask via regular inpaint and found that anything other than solid white resulted in a less pronounced change, i.e. the resulting image looked closer to the original image with a blue mask vs a white mask for example. As far as I can tell, what the sketch mode actually does is apply your colorized mask onto the original image before running the img2img operation. It "flattens" the colored mask onto your image as it were. It wasn't easy, but I added support for this in Unprompted v7.0.0. Give it a try. :) You'll need to use the new parameters
Right now, it only supports one color per mask but this may change in the future. Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
-
This seems to be working great. Previously I was unable to recolor such cases to red, no matter what, the clothing ended up being either the original or a blend in between.
|
Beta Was this translation helpful? Give feedback.
-
First, thank you for the txt2mask function, it's an amazing tool!
I have a request/question related to this. img2img seems to create much more consistent results if I'm using "Original" as the masked content instead of fill or latent noise. However this has a side affect of "infecting" the result with the dominant colors of the image under the mask. (eg. if I'm repainting a person, the original clothes' colors will determine the new colors mostly)
It seems it's possible to use mask in-paint in such way that the mask contains the image being inserted into the masked area before running the inference: masked content, mask mode
I think a simple color rotate, or by adding a custom amount of color gaussian noise on top of the mask could introduce some variety in the color of the output. An even more amazing thing would be to specify prompt=color combinations which would match sub-parts of the mask and do color change/rotate on that.
eg.
[txt2mask negative_mask="head" color_change="t-shirt=red"]person[/txt2mask]mars armored forces trooper
So the end-result would be much likely a red armored trooper instead of a blue one if the original person worn a blue shirt.
How difficult this would be?
Beta Was this translation helpful? Give feedback.
All reactions