Face-swapping for ComfyUI, now with a SFW bouncer
A face-swap node pack rebuilt after its predecessor got blocked, this time with a built-in nudity detector to keep GitHub happy and workflows SFW.

What it does ReActor adds face-swapping and restoration nodes to ComfyUI. It replaces faces in images using models like Inswapper, ReSwapper, and HyperSwap, then offers tools to restore, mask, or measure similarity of the results. The project also carries a nudity detector to avoid generating 18+ content, a direct response to GitHub policy concerns that sank its earlier incarnation.
The interesting bit The 0.7.0 alpha rewrite completely dropped the InsightFace dependency—no C++ build tools, no NumPy version lock. The author notes that cosine similarity on face embeddings actually ticked up slightly, though they candidly admit the visual output is merely “different,” not objectively better.
Key highlights
- Supports multiple swap backends: Inswapper, ReSwapper, and HyperSwap models
- Built-in NSFW detector designed to keep the repository compliant with GitHub’s synthetic media policies
- Advanced masking via
ReActorMaskHelperusing YOLO and SAM models for precise face isolation - “Face Similarity” node to check embedding likeness after a swap
- VRAM unload node for freeing memory during complex workflows
Caveats
- The 0.7.0 core produces visibly different results from the old InsightFace version; quality is subjective
- Image analysis remains “quite slow” compared to swapping and restoration steps
- Recent fixes for gender detection and face index logic suggest multi-face scenes can be temperamental
Verdict Grab it if you want ComfyUI-native face swaps without wrestling with InsightFace binaries or policy landmines. Avoid if you need uncensored tooling—the SFW guardrails are intentional and non-negotiable.
Frequently asked
- What is Gourieff/ComfyUI-ReActor?
- A face-swap node pack rebuilt after its predecessor got blocked, this time with a built-in nudity detector to keep GitHub happy and workflows SFW.
- Is ComfyUI-ReActor open source?
- Yes — Gourieff/ComfyUI-ReActor is open source, released under the GPL-3.0 license.
- What language is ComfyUI-ReActor written in?
- Gourieff/ComfyUI-ReActor is primarily written in Python.
- How popular is ComfyUI-ReActor?
- Gourieff/ComfyUI-ReActor has 1.3k stars on GitHub.
- Where can I find ComfyUI-ReActor?
- Gourieff/ComfyUI-ReActor is on GitHub at https://github.com/Gourieff/ComfyUI-ReActor.