When it comes to Face swapping with Reactor, its one of the best ways when using Stable diffusion. Well, we want to share our experience of why to chose Reactor over Roop. As usual one day, we noticed in the GitHub community that they had discontinued the development because their developer had posted a problematic video into their documentation.
So, we were searching for some alternatives to it which
could be in the development stages so that whenever there are some issues
regarding it, we can easily ask the community to sort out the related problems.
After diving into the
internet and checking out multiple Github repos we found one extension called “Reactor” which is built over the
Roop with extra modification plus multiple features added into it which can generate
similar results but with better experience.
Advantages of Reactor over Roop:
-It can
generate uncensored NSFW images which is restricted on Roop.
-it gives very fast and accurate results.
-Safetensors
Face models can be saved and loaded easily.
-Easily
compatible with Automatic1111, SD.Next, Cagliostro Colab UI, ComfyUI.
-This extension is API-supported and can be used via GET/POST request.
- It can be controlled
at the log-level system.
-This is packed with extra
features like Gender detection and better scaling features.
-Its
community is working to make it better than the older ones.
-We can do multiple
face-swapping features for the source and target images with just a single
selection.
Installation process:
Note: If you have these extensions already on your machine then you don’t need to follow this step.
pip install
insightface==0.7.3
6. Open Automatic1111. Here, we need to install the Reactor extension on our PC. For that first, go extension tab. Then click on available and select on “Install from Url” button.
Now, paste the GitHub repo link for the Reactor extension that you copied earlier. Just click on Install the button presented over to the left side of the dashboard.
7. After getting installed, just Restart once again Automatic1111 to get the effect. At the first stage of starting it will take some time to start because it is used to download some prerequisites in the background.
8. Next, go to the txt2img tab, and you will see a new extension has been added called Reactor as you see in the above-illustrated image.
Now, if you want to learn more about face swapping using Roop and never experienced then you should also experience that as well. With this, you get a clearer understanding of face swapping.
Using Reactor extension on txt2img:
Note: For better results, use the similar face shape and structure with the source and the target image.
Using Reactor extension on img2img:
2. Now, just drag and drop the image you want to do with face swapping. For illustration, we are using a Japanese girl image.
Click on Reactor Extension presented at the lower left corner of the Automatic1111 dashboard.
4. Now, drag and drop the image which you want to do a face swap with.
5. Press on the Enable button of the Reactor extension if not yet, and select either of the options that are Codeformer or GFPGAN. ( Here what we experienced is that Codeformer gives much better results)
6. Adjust the image height and Width. Set the Denoising strength to 0 (this is important if you are working on the face).
And the other image, we have chosen Megan Fox's face image to swap with.
At last click on Generate button.
Look at the result after swapping. The face of the Japanese girl has been replaced with Megan Fox’s face.
So, the most important thing to note is that if you want the best results then it's recommended to choose the same face structure while swapping the face swap.
Conclusion:
So, we have concluded that Reactor is a good alternative to Roop which
provides many extra functionalities which increase productivity in the
field of image generation.
Not only this it’s an uncensored model that gives overall control to
create an art that gives more flexibility to think beyond the limit.