update guide and examples
parent
e1ebb22b70
commit
c7c04b9f27
57
README.md
57
README.md
|
|
@ -1,7 +1,7 @@
|
|||
## Batch Face Swap extension for https://github.com/AUTOMATIC1111/stable-diffusion-webui
|
||||
Automaticaly detects faces and replaces them.
|
||||
|
||||

|
||||

|
||||
|
||||
## Installation
|
||||
### Automatic:
|
||||
|
|
@ -14,20 +14,52 @@
|
|||
2. Open `requirements_versions.txt` in the main SD web UI folder and add `mediapipe`.
|
||||
3. Start or reload SD web UI.
|
||||
|
||||
## Guide
|
||||
1. Open `img2img` tab.
|
||||
2. Select `Batch Face Swap` script.
|
||||
3. Paste a path of the folder containing your images in the `Images directory` textbox.
|
||||
4. (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 into` slider.
|
||||
(don't worry it will stitch the image back together)
|
||||
5. Click `Generate`
|
||||
## txt2img Guide
|
||||
1. Expand the `Batch Face Swap` tab in the lower left corner.
|
||||
<details>
|
||||
<summary>Image</summary>
|
||||
<img src="https://user-images.githubusercontent.com/46696708/236360445-7391d68b-4973-4b43-aa75-f8a8782f6c4e.png">
|
||||
</details>
|
||||
2. Click the checkbox to enable it.
|
||||
<details>
|
||||
<summary>Image</summary>
|
||||
<img src="https://user-images.githubusercontent.com/46696708/236361252-5a1d05c8-e216-4685-a7ef-80733e08a08a.png">
|
||||
</details>
|
||||
3. Click `Generate`
|
||||
|
||||
If you want to adjust `Denoising strength` or `Mask blur` you have to disable the override checkboxes.
|
||||
## img2img Guide
|
||||
1. Expand the `Batch Face Swap` tab in the lower left corner.
|
||||
<details>
|
||||
<summary>Image</summary>
|
||||
<img src="https://user-images.githubusercontent.com/46696708/236361645-84519cfe-d6a1-492f-adab-3baca037b6de.png">
|
||||
</details>
|
||||
2. Click the checkbox to enable it.
|
||||
<details>
|
||||
<summary>Image</summary>
|
||||
<img src="https://user-images.githubusercontent.com/46696708/236361252-5a1d05c8-e216-4685-a7ef-80733e08a08a.png">
|
||||
</details>
|
||||
3. You can process either 1 image at a time by uploading your image at the top of the page.
|
||||
<details>
|
||||
<summary>Image</summary>
|
||||
<img src="https://user-images.githubusercontent.com/46696708/236361988-78cfe787-d17a-46a1-bb41-4865a57dcdda.png">
|
||||
</details>
|
||||
Or you can give it path to a folder containing your images.
|
||||
<details>
|
||||
<summary>Image</summary>
|
||||
<img src="https://user-images.githubusercontent.com/46696708/236362301-53ce2315-9fa1-46e3-9698-d9164e1354be.png">
|
||||
</details>
|
||||
4. Click `Generate`
|
||||
|
||||
For more information, activate the `Show tips` checkbox at the very bottom.
|
||||
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.
|
||||
<details>
|
||||
<summary>Example</summary>
|
||||
|
||||

|
||||
Left 'young woman in red dress' using `chilloutMix`
|
||||
Right 'Emma Watson in red dress' using `realisticVision`
|
||||
<img src="https://user-images.githubusercontent.com/46696708/236363435-07e1cc38-062b-4696-9ce3-11239812f898.png">
|
||||
</details>
|
||||
|
||||

|
||||
|
||||
## Example
|
||||

|
||||
|
|
@ -36,5 +68,4 @@ 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
|
||||
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
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue