-
Notifications
You must be signed in to change notification settings - Fork 65
Insight Face faceswapping
Woolverine94 edited this page Oct 6, 2023
·
5 revisions
- Module : Faceswap
- Function : Swap faces between images (source -> target) using Insight Face et Onnx runtime
- Input(s) : Source image, target image
- Output(s) : Image(s)
- HF model page :
-
Usage :
- Upload a Source image. The face(s) in this image will replaces face(s) in the target image.
- Upload or import a target image. The face(s) in this image will be replaced with the source one(s)
- Set the source index list to choose which face(s) to extract from source image and in which order. From left to right and starting from 0, id comma separated list of faces number. For example, if there is 3 faces in a picture '0,2' will select the face on the left, then on the right, but not on the one in the middle. If set to 0, take only the first face from the left.
- Set the target index list to choose which face(s) to replace in target image and in which order. From left to right and starting from 0, id comma separated list of faces number. For example, if there is 3 faces in a picture '2,1' will select the faces on the right, then in the middle, but not the one on the left. The source index list is used to create a mapping between the faces to extract and to replace. If set to 0, replace only the first face from the left.
- (optional) Modify the settings to desactivate GFPGAN faces restoration
- Click the Generate button
- After generation, generated images are displayed in the gallery. Save them individually or create a downloadable zip of the whole gallery.
- Source image :
- Target image :
- Output(s) :