glucauze / sd-webui-faceswaplab

Extended faceswap extension for StableDiffusion web-ui with multiple faceswaps, inpainting, checkpoints, ....
https://glucauze.github.io/sd-webui-faceswaplab/
GNU Affero General Public License v3.0
707 stars 92 forks source link
automatic1111 face faceswap insightface sdnext swapping

FaceSwapLab for a1111/Vlad

V1.2.3 : Breaking change for settings, please read changelog.

Please read the documentation here : https://glucauze.github.io/sd-webui-faceswaplab/

You can also read the doc discussion section

See CHANGELOG.md for changes in last versions.

FaceSwapLab is an extension for Stable Diffusion that simplifies face-swapping. It has evolved from sd-webui-faceswap and some part of sd-webui-roop. However, a substantial amount of the code has been rewritten to improve performance and to better manage masks.

Some key features include the ability to reuse faces via checkpoints, multiple face units, batch process images, sort faces based on size or gender, and support for vladmantic. It also provides a face inpainting feature.

While FaceSwapLab is still under development, it has reached a good level of stability. This makes it a reliable tool for those who are interested in face-swapping within the Stable Diffusion environment. As with all projects of this type, it’s expected to improve and evolve over time.

Disclaimer and license

In short:

More on this here : https://glucauze.github.io/sd-webui-faceswaplab/

Known problems (wontfix):

Quick Start

Here are some gifs to explain (non cherry picked, just random pictures) :

Simple Usage (roop like)

This use codeformer on all faces (including non swapped)

simple.webm

Advanced options

This is use to improve results. This use upscaling and codeformer only on swapped faces

advanced.webm

Inpainting

This add inpainting on faces :

inpainting.webm

Build and use checkpoints :

build.webm

Simple

  1. Put a face in the reference.
  2. Select a face number.
  3. Select "Enable."
  4. Select "CodeFormer" in Global Post-Processing tab.

Once you're happy with some results but want to improve, the next steps are to:

Better

  1. Put a face in the reference.

  2. Select a face number.

  3. Select "Enable."

  4. In Post-Processing accordeon:

    • Select "CodeFormer"
    • Select "LDSR" or a faster model "003_realSR_BSRGAN_DFOWMFC_s64w8_SwinIR-L_x4_GAN" in upscaler. See here for a list of upscalers.
    • Use sharpen, color_correction and improved mask
  5. Disable "CodeFormer" in Global Post-Processing tab (otherwise it will be applied twice)

Don't hesitate to share config in the discussion section.

Features

Installation

See the documentation here : https://glucauze.github.io/sd-webui-faceswaplab/