Face swapping has become a widely popular and creative trend within the Stable Diffusion community, allowing enthusiasts to generate remarkably realistic images through innovative techniques. Previously, the Roop extension held a prominent position in facilitating seamless face swaps.
As the code for Roop is no longer actively maintained, users are now seeking alternative solutions for their face-swapping endeavors, although the Roop Extension does still work perfectly.
In response to this demand, we present the ReActor Face Swapping Extension—a powerful tool designed to fill the void left by Roop. In this comprehensive guide, we will explore the steps to download and utilize the ReActor extension in Stable Diffusion for achieving lifelike face swaps. Further information can be found on the official ReActor GitHub page.
In summary, the ReActor Extension stands out for high-resolution face swaps with advanced upscaling, optimized for CPU-only setups, offering versatility across SDXL and 1.5 models. It simplifies face-swapping with automatic gender and age detection, supports uncensored swaps, and excels in continuous development for evolving features and advancements in face-swapping technology.
Prior to installing the ReActor Extension, it's essential to adhere to these steps if you currently have the Roop Extension installed. If Roop is not installed, you can bypass the following steps and head to the "Installing ReActor Extension" section.
Once the installation process is finished, head to the "Installed" section. Click on "Apply and restart UI" to initiate a restart of the User Interface, ensuring the successful integration of the extension.
Upon successful installation, you can find the downloaded extension in the "\stable-diffusion-webui\extensions" folder. There will be a folder named "sd-webui-reactor" in this directory.
If you encounter any errors during the installation of the ReActor Extension, we recommend checking out the official ReActor GitHub Page. It features a comprehensive "Troubleshooting" section that explains common errors along with their solutions.
Upon successful installation, observe the appearance of the ReActor expansion panel in both the "txt2img" and "img2img" tabs within the Stable Diffusion UI.
ReActor's face-swapping process follows a two-step approach just like the Roop Extension. Initially, the AI image undergoes complete rendering, and then the face from the ReActor image is applied. This distinction becomes evident during rendering, where the image seems finalized but requires additional time for face integration. Now let's try an example!
Note: The first face swap with the reActor extension may take longer as it unpacks the required models from a zip file, but subsequent swaps will be faster.
The final result is the generation of a striking face that resembles Ana de Armas, crafted based on your provided input prompt.
Using the ReActor Extension, you can enhance your face-swapped image by utilizing the upscale feature. To do this, navigate to the "Upscale" subtab within the ReActor Extension.
You can choose to face swap first and then upscale by enabling the checkbox (recommended for optimal results). Now, you can select your preferred upscaling method, I personally recommend the 4x-UltraSharp upscaler. For more details on upscaling within Stable Diffusion:
Here is an example of the settings, showcasing the appearance when scaling the face-swapped image with the 4x-UltraSharp upscaler and scaling it by a factor of 2.
By following this tutorial you might have come across a section within the extension where you have the "Source Image" and "Target Image" sections.
We will try to explain the sections by giving an example of the logic.
The source image is the picture you put on the ReActor Canvas. Usually, you'll drop a photo with just one face, and the default face number is 0 for that face. But what if you put an image on the canvas with multiple faces?
Here's an example: I dropped a picture of two actresses' faces. Now, I want to assign numbers to each face, separated by commas. This way you can specify the face you want the "Target Image" to have when generating. For this example, I'll use: 0, 1 when assigning face numbers.
Assigned faces:
Here, you can enter the face numbers (assigned in the "Source Image" section) that you want for the output. For instance, if I'm generating an image with two women and I want the one on the right to have Angelina Jolie's face (Face Number 0) and the one on the left to have Jenna Ortega's face (Face Number 1), I need to assign these numbers correctly, like: 1,0, within the "Target Image."
When attempting this approach, it's important to note that if your Source Image has "X" number of faces, your output must have at least the same number of faces as the source image for it to function correctly. Ensure that you modify your prompt to guarantee that your output will have the necessary minimum faces.
In conclusion, the ReActor Extension excels in face swapping within Stable Diffusion, offering high-resolution capabilities and versatile compatibility. The installation process, especially for Roop Extension users, is pivotal. ReActor's features promise a rich creative experience, and exploring its capabilities, from simple swaps to enhanced upscaling, unveils its potential. Understanding source and target image logic is crucial, emphasizing the need for matching face numbers for successful outcomes. This guide serves as a comprehensive resource for a seamless journey with the ReActor Extension in Stable Diffusion.
The ReActor Extension introduces several improvements over the Roop Extension in Stable Diffusion face swapping. Notable advantages include high-resolution face swaps with upscaling, efficient CPU utilization, compatibility with both SDXL and 1.5 models, automatic gender and age detection, uncensored options, and continuous development. Users transitioning from Roop to ReActor should follow the installation guide, ensuring a smooth switch between extensions.
Upscaling in the ReActor Extension enhances the quality of face-swapped images. To implement this feature, navigate to the "Upscale" subtab within the extension. Enable the checkbox for face swapping before upscaling for optimal results. Choose your preferred upscaling method, such as the 4x-UltraSharp upscaler, to achieve visually stunning and high-resolution outputs.
Yes, the ReActor Extension provides the flexibility to generate face-swapped images without imposing an NSFW filter. Users are encouraged to explore their creative boundaries. However, it's essential to exercise responsible and mature judgment, as highlighted in the official GitHub page. Users should understand the distinction between appropriate and inappropriate content, taking full responsibility for their actions.
The ReActor Extension is optimized to work efficiently on both CPU-only and GPU setups. This flexibility allows users to utilize the extension based on their available hardware resources. Whether you have a dedicated GPU or are relying on CPU processing, the ReActor Extension ensures a smooth face-swapping experience without compromising performance.