dchatel / comfyui_facetools

These custom nodes provide a rotation aware face extraction, paste back, and various face related masking options.
MIT License
45 stars 7 forks source link

Overridable CropFaces source image #17

Open nistvan86 opened 5 days ago

nistvan86 commented 5 days ago

It allows detecting the faces only once, and use the same bounding boxes on another image where there are faces in the same position.

This could be useful with eg. InstantID face transfering from a source image to a target where the number of faces and their batch position on both images must match.

An improvement to this could be made however, as it will not enforce the new image to be the same size as the original, so the bounding boxes might get interpreted wrongly. You must manually scale them to same dimension (eg. I'm upscaling the source image to the target image's size with a simple latent upscale before doing face detection).