[Feature]: Freckles or Moles
Feature description
Hello everyone...
Feature: Keep freckles and moons in the same place on the face.
Is there any chance the reactor could preserve the moles or freckles on a person's face? It is impossible?
Is there anyone who has achieved it efficiently?
Right now I have to intensify the freckles a lot in the prompt so that the reactor doesn't completely erase them later. It is very little noticeable.
Thank you, I hope for some answers to solve this problem that happens to me.
the main face replacement step is done by insightface inswapper 128, a very accurate yet low res deepfake alg, this kills the details. Hence the need for face restore which very often smooth things out even more. The best you can do is kinda exaggerate the freckles from the prompt and use GPEN512 to restore the face since it sometimes intuits freckles back. ymmv
I will try as you say, but I have tried 1000 different ways and I have not succeeded
Thanks
nothing, there is no good result, I have tried everything.
Some update is being worked on where there's a synthetic higher resolution swapper that may soon be implemented, that should at least double the amount of details, possibly keeping the freckles. Kind of a hack but it looks promising
https://github.com/Gourieff/comfyui-reactor-node/issues/325
The best way is to mask the mole or nose ring etc... the place the swapped face unto the original with that mask. It can be done in comfyui using the face detection node.
The best way is to mask the mole or nose ring etc... the place the swapped face unto the original with that mask. It can be done in comfyui using the face detection node.
I was able to mask out the nose ring , but not able to wrap my head around how to place the swapped face unto the original with that mask on. @KINGLIFER can you help point me in the correct direction pls.
in reactor set it to YOLOv5I or equivalent. On the face draw a mask. You can use different nodes to join it back after you are done. one example: (I found this the best) https://github.com/nullquant/ComfyUI-BrushNet blend inpaint node.
- The inpaint is the original face with nose ring
- the original is the swapped face.
- the mask is the mask on the original face.
Another example: (From doing testing I find this needs a large mask or you will get an error) https://github.com/chflame163/ComfyUI_LayerStyle?tab=readme-ov-file#ImageCombineAlpha
- Background_image is your original face.
- layer_image is the swapped face.
- layer_mask is the mask you did on the original face.
All these are done AFTER the face swap.
image used:
swapped Madonna for the image.
If I helped in anyway... https://buymeacoffee.com/kinglifer if you can not or rather not... no problem I hope this helped regardless.