Deepfakeの勉強で簡単に生成できそうなレポジトリを探していたら、ReActor-UI と FaceFusion を見つけました。
When I was looking for repositories that could be easily generated for Deepfake studies, I found ReActor-UI and FaceFusion.
Contents
The sd-webui-reactor repository has been closed
This seems to be part of the NSFW measures.
https://github.com/Gourieff/sd-webui-reactor

As I recall, this happened in January 2025.
It seems like it’s part of an effort to combat NSFW content using deepfake technology.
We’ve seen face swap images and videos all over the place.
https://github.com/Gourieff/sd-webui-reactor-sfw
The Fast and Simple FaceSwap Extension with a lot of improvements and with SFW filter (it has a nudity detector to avoid using this software with 18+ content)
Where can I check the nsfw classification?
scripts/reactor_sfw.py
def nsfw_image(img_path: str, model_path: str):
device = 'cuda' if torch.cuda.is_available() else 'cpu'
with Image.open(img_path) as img:
predict = pipeline("image-classification", model=model_path)
predict.model.to(device)
result = predict(img)
score = result[0]["score"]
print(f"NSFW Score = {score}")
return True if score > SCORE else False
成果のmp4ファイル mp4 file of results
とても簡単に、Deepfakeの顔画像入れ替えをGUIで実現できました、まずは成果の動画をご覧ください。
We were able to achieve the face image replacement of Deepfake very easily with GUI.
The left is the original image (video source material site) and the right is Deepfake.
ReActor-UI GUI
Github https://github.com/Gourieff/ReActor-UI

起動するとこのようにGUIが表示されます。顔入れ替え用の静止画像、ターゲットとなる動画ファイルを選択して、StartをクリックするだけでDeepfakeできます。NSFWスイッチもついています。
When launched, the GUI appears as shown here. You can Deepfake by selecting a still image for face replacement and a target video file, and clicking “Start”.
きれいに顔を入れ替えるために
To replace a clean face.
Select a face で選ぶ顔の画像解像度が動画の解像度とバランスがとれていることです。例えば1920x1080で顔がアップで大きめに写っているとして、入れ替え用の顔画像が400px正方形とかではノイズが多くなります。
The resolution of the face selected in “Select a face” must be balanced with the resolution of the video. For example, if a 1920×1080 video has a large close-up of a face and the face image for replacement is 400px square, there will be a lot of noise.
FaceFusion
こちらも、GUIでswap faceできるツールです。
私は、pinokio 上で動かすようにして利用しています。facefusion-pinokio
Live Portrait などの強力な機能がついています。
This is also a tool that allows you to swap faces using a GUI. I use it to run on pinokio. It’s called facefusion-pinokio.

どちらも、inswapper_128.onnx を使っている。inswapper_128.onnx の性能が高いのだ。
Includes powerful features like Live Portrait.
Both are using inswapper_128.onnx. The performance of inswapper_128.onnx is high.