Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kex0/batch-face-swap
Automaticaly detects faces and replaces them
https://github.com/kex0/batch-face-swap
automatic1111 stable-diffusion stable-diffusion-webui stable-diffusion-webui-plugin
Last synced: 16 days ago
JSON representation
Automaticaly detects faces and replaces them
- Host: GitHub
- URL: https://github.com/kex0/batch-face-swap
- Owner: kex0
- Created: 2023-01-11T04:09:21.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-14T04:23:07.000Z (about 1 year ago)
- Last Synced: 2024-07-31T08:17:40.610Z (4 months ago)
- Topics: automatic1111, stable-diffusion, stable-diffusion-webui, stable-diffusion-webui-plugin
- Language: Python
- Homepage:
- Size: 6 MB
- Stars: 334
- Watchers: 6
- Forks: 39
- Open Issues: 26
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# !!! This project is no longer being maintained !!!
## 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.
![preview](https://user-images.githubusercontent.com/46696708/236370022-1e243f62-a59c-437a-a841-d9a3d37778aa.png)## Installation
### Automatic:
1. In the WebUI go to `Extensions`.
2. Open `Available` tab and click `Load from:` button.
3. Find `Batch Face Swap` and click `Install`.
4. Apply and restart UI
### Manual:
1. Use `git clone https://github.com/kex0/batch-face-swap.git` from your SD web UI `/extensions` folder.
2. Open `requirements_versions.txt` in the main SD web UI folder and add `mediapipe`.
3. Start or reload SD web UI.## txt2img Guide
1. Expand the `Batch Face Swap` tab in the lower left corner.
Image
2. Click the checkbox to enable it.
Image
3. Click `Generate`## img2img Guide
1. Expand the `Batch Face Swap` tab in the lower left corner.
Image
2. Click the checkbox to enable it.
Image
3. You can process either 1 image at a time by uploading your image at the top of the page.
Image
Or you can give it path to a folder containing your images.
Image
4. 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`![chrome_XSjamNtABV](https://user-images.githubusercontent.com/46696708/236360114-bd902f03-73cb-4836-a647-27f5371e3197.png)
## Example
![example](https://user-images.githubusercontent.com/46696708/211818536-7d3bd06e-f6b1-40e9-854e-9cb44be3b2f8.png)Prompt:
```ShellSession
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
```