|
|
||
|---|---|---|
| images | ||
| scripts | ||
| .gitignore | ||
| README.md | ||
| install.py | ||
README.md
Batch Face Swap extension for https://github.com/AUTOMATIC1111/stable-diffusion-webui
Automaticaly detects faces and replaces them.
Installation
Automatic:
- In the WebUI go to
Extensions. - Open
Availabletab and clickLoad from:button. - Find
Batch Face Swapand clickInstall. - Apply and restart UI
Manual:
- 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.
Guide
- Open
img2imgtab. - Select
Batch Face Swapscript. - Paste a path of the folder containing your images in the
Images directorytextbox. - (Optional) It may sometimes fail to find a face if the face is very small in comparison to the size of the image.
So, you can tell it to split the image and look at the smaller portions of the image by using the
How many images to divide intoslider. (don't worry it will stitch the image back together) - Click
Generate
If you want to adjust Denoising strength or Mask blur you have to disable the override checkboxes.
For more information, activate the Show tips checkbox at the very bottom.
Example
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
Steps: 50, Sampler: Euler a, CFG scale: 7, Seed: 4052732944, Size: 512x512, Model hash: a9263745, Batch size: 8, Batch pos: 1, Denoising strength: 0.5, Mask blur: 4


