replace faces using roop

What is Roop?

Roop is an Ai software to replace faces in your images or videos with another face. Here are the links of the original software in github and installation guide for Stable Diffusion webui.

How to replace faces with Roop in Stable Diffusion Webui?

1. If you don’t have Stable Diffusion Webui installed, go to Install stable diffusion webui on Windows.
2. Go to Visual studio download page. Select community and click Free download. Run the installer. Select three elements to install: Python development, desktop c++, and visual studio extension development.
3. Go to directory “stable-diffusion-webui\venv.” If you don’t see “insightface” folder, open dos command and run $pip install insightface==0.7.3.
4. Open Stable Diffusion Webui, click Extension tab and click Load From. Search for roop and click Install.
5. If you see “401: Unauthorized” error, download inswapper_128.onnx from huggingface or Google drive. Copy inswapper_128.onnx  to /models/roop/.
6. Restart Stable Diffusion Webui. Select a checkpoint, such as “realisticVisionV30_v30VAE” (Note some checkpoints such as “sd_xl_base_1.0” may not work.)
7. In img2img tab, enter your prompt. Load a picture with a face. Decrease denoising strength to 0.1.
8. Expand Roop v0.02 underneath, load an image with another face. Check “Enable”.
9. Click Generate button.