deepinsight / insightface

State-of-the-art 2D and 3D Face Analysis Project
https://insightface.ai
23.23k stars 5.4k forks source link

How to choose which face to swap in image with multiple faces? #2410

Open ukush opened 1 year ago

ukush commented 1 year ago

I understand that multi-face swapping is only available through the advanced features which requires a patreon subscription. My question is if i have an image with multiple faces in, but I only want to swap a single face, how do I know which face it will swap? Is it always the face on the left? It always seems to swap the wrong one for me. Thanks

nttstar commented 1 year ago

It selects the largest one.

nihs269 commented 1 year ago

I understand that multi-face swapping is only available through the advanced features which requires a patreon subscription. My question is if i have an image with multiple faces in, but I only want to swap a single face, how do I know which face it will swap? Is it always the face on the left? It always seems to swap the wrong one for me. Thanks

Save id for the single face, then you swap after with your id you want. I mean you can save another id once for a picture with multiple faces