siliconflow/ComfyUI-ReActor
forked from Gourieff/ComfyUI-ReActor
Captured source
source ↗siliconflow/ComfyUI-ReActor
Description: Fast and Simple Face Swap Extension Node for ComfyUI (SFW)
License: GPL-3.0
Stars: 0
Forks: 0
Open issues: 0
Created: 2025-07-15T09:33:20Z
Pushed: 2025-07-09T13:51:05Z
Default branch: main
Fork: yes
Parent repository: Gourieff/ComfyUI-ReActor
Archived: no
README:
The Fast and Simple Face Swap Extension Nodes for ComfyUI, based on blocked ReActor - now it has a nudity detector to avoid using this software with 18+ content
> By using this Node you accept and assume [responsibility](#disclaimer)
What's new in the latest update
0.6.1 BETA3
- Gender detection better logic for many faces and many indexes
0.6.1 BETA1, BETA2
- MaskHelper node 2x speed up - not perfect yet but 1.5x-2x faster then before
- ComfyUI native ProgressBar for different steps
- ORIGINAL_IMAGE output for main nodes
- Different fixes and improvements (https://github.com/Gourieff/ComfyUI-ReActor/issues/25 fix; no tmp file for NSFW detector; NSFW detector little speed up)
0.6.0
- New Node
ReActorSetWeight- you can now set the strength of face swap forsource_imageorface_modelfrom 0% to 100% (in 12.5% step)
Previous versions
0.5.2
- ReSwapper models support. Although Inswapper still has the best similarity, but ReSwapper is evolving - thanks @somanchiu https://github.com/somanchiu/ReSwapper for the ReSwapper models and the ReSwapper project! This is a good step for the Community in the Inswapper's alternative creation!
You can download ReSwapper models here: https://huggingface.co/datasets/Gourieff/ReActor/tree/main/models Just put them into the "models/reswapper" directory.
- NSFW-detector to not violate GitHub rules
- New node "Unload ReActor Models" - is useful for complex WFs when you need to free some VRAM utilized by ReActor
- Support of ORT CoreML and ROCM EPs, just install onnxruntime version you need
- Install script improvements to install latest versions of ORT-GPU
- Fixes and improvements
0.5.1
- Support of GPEN 1024/2048 restoration models (available in the HF dataset https://huggingface.co/datasets/Gourieff/ReActor/tree/main/models/facerestore_models)
- ReActorFaceBoost Node - an attempt to improve the quality of swapped faces. The idea is to restore and scale the swapped face (according to the
face_sizeparameter of the restoration model) BEFORE pasting it to the target image (via inswapper algorithms), more information is here (PR#321)
- Sorting facemodels alphabetically
- A lot of fixes and improvements
0.5.0 BETA4
- Spandrel lib support for GFPGAN
0.5.0 BETA3
- Fixes: "RAM issue", "No detection" for MaskingHelper
0.5.0 BETA2
- You can now build a blended face model from a batch of face models you already have, just add the "Make Face Model Batch" node to your workflow and connect several models via "Load Face Model"
- Huge performance boost of the image analyzer's module! 10x speed up! Working with videos is now a pleasure!
0.5.0 BETA1
- SWAPPED_FACE output for the Masking Helper Node
- FIX: Empty A-channel for Masking Helper IMAGE output (causing errors with some nodes) was removed
0.5.0 ALPHA1
- ReActorBuildFaceModel Node got "face_model" output to provide a blended face model directly to the main Node:
Basic workflow 💾
- Face Masking feature is available now, just add the "ReActorMaskHelper" Node to the workflow and connect it as shown below:
If you don't have the "face_yolov8m.pt" Ultralytics model - you can download it from the Assets and put it into the "ComfyUI\models\ultralytics\bbox" directory
As well as "sam_vit_b_01ec64.pth" model - download (if you don't have it) and put it into the "ComfyUI\models\sams" directory;
Use this Node to gain the best results of the face swapping process:
- ReActorImageDublicator Node - rather useful for those who create videos, it helps to duplicate one image to several frames to use them with VAE Encoder (e.g. live avatars):
- ReActorFaceSwapOpt (a simplified version of the Main Node) + ReActorOptions Nodes to set some additional options such as (new) "input/source faces separate order". Yes! You can now set the order of faces in the index in the way you want ("large to small" goes by default)!
- Little speed boost when analyzing target images (unfortunately it is still quite slow in compare to swapping and restoring...)
0.4.2
- GPEN-BFR-512 and RestoreFormer_Plus_Plus face restoration models support
You can download models here: https://huggingface.co/datasets/Gourieff/ReActor/tree/main/models/facerestore_models
Put them into the ComfyUI\models\facerestore_models folder
- Due to popular demand - you can now blend several images with persons into one face model file and use it with "Load Face Model" Node or in SD WebUI as well;
Experiment and create new faces or blend faces of one person to gain better accuracy and likeness!
Just add the ImpactPack's "Make Image Batch" Node as the input to the ReActor's one and load images you want to blend into one model:
Result example (the new face was created from 4 faces of different actresses):
Basic workflow 💾
0.4.1
- CUDA 12 Support - don't forget to run (Windows)
install.bator (Linux/MacOS)install.pyfor ComfyUI's Python enclosure or try to install ORT-GPU for CU12 manually (https://onnxruntime.ai/docs/install/#install-onnx-runtime-gpu-cuda-12x) - Issue https://github.com/Gourieff/comfyui-reactor-node/issues/173 fix…
Excerpt shown — open the source for the full document.
Notability
notability 1.0/10Routine fork, no traction or significance.