I recommend trying these extensions instead https://github.com/Bing-su/adetailer and/or https://github.com/Gourieff/sd-webui-reactor
Batch Face Swap extension for https://github.com/AUTOMATIC1111/stable-diffusion-webui
Automaticaly detects faces and replaces them.
- In the WebUI go to
Extensions. - Open
Availabletab and clickLoad from:button. - Find
Batch Face Swapand clickInstall. - Apply and restart UI
- Use
git clone https://github.com/kex0/batch-face-swap.gitfrom your SD web UI/extensionsfolder. - Open
requirements_versions.txtin the main SD web UI folder and addmediapipe. - Start or reload SD web UI.
- Expand the
Batch Face Swaptab in the lower left corner. - Click the checkbox to enable it.
- Click
Generate
- Expand the
Batch Face Swaptab in the lower left corner. - Click the checkbox to enable it.
- You can process either 1 image at a time by uploading your image at the top of the page. Or you can give it path to a folder containing your images.
- Click
Generate
Override options only affect face generation so for example in txt2img you can generate the initial image with one prompt and face swap with another. Or generate the initial image with one model and faceswap with another.
Example
Left 'young woman in red dress' using chilloutMix
Right 'Emma Watson in red dress' using realisticVision

Prompt:
detailed closeup photo of Emma Watson, 35mm, dslr
Negative prompt: (painting:1.3), (concept art:1.2), artstation, sketch, illustration, drawing, blender, octane, 3d, render, blur, smooth, low-res, grain, cartoon, watermark, text, out of focus






