Install this extension via the ComfyUI Manager by searching
for ReActor Node for ComfyUI
1. Click the Manager button in the main menu
2. Select Custom Nodes Manager button
3. Enter ReActor Node for ComfyUI in the search bar
After installation, click the Restart button to
restart ComfyUI. Then, manually
refresh your browser to clear the cache and access
the updated list of nodes.
Visit
ComfyUI Online
for ready-to-use ComfyUI environment
ReActor Node for ComfyUI is a fast and simple face swap extension for ComfyUI, inspired by the ReActor (formerly Roop-GE) SD-WebUI Face Swap Extension.
comfyui-reactor-node Introduction
The comfyui-reactor-node is an extension designed to facilitate quick and easy face swapping on any image within the ComfyUI environment. This extension is based on the ReActor SD-WebUI Face Swap Extension and allows AI artists to replace faces in images seamlessly. It is particularly useful for tasks such as character animation, creating models for clothing, and other creative projects. The extension operates without censorship filters, making it versatile for various applications, but users are responsible for its ethical use.
How comfyui-reactor-node Works
The comfyui-reactor-node works by identifying faces in a source image and replacing them with faces from a target image. It uses advanced face detection and swapping algorithms to ensure high-quality results. The process involves several steps:
Face Detection: The extension detects faces in both the source and target images.
Face Swapping: The detected faces are swapped using a face model that ensures the new face fits naturally into the target image.
Face Restoration: Optional face restoration models can be applied to enhance the quality of the swapped face.
This process is managed through a node-based workflow in ComfyUI, allowing users to customize and control each step.
comfyui-reactor-node Features
Main Nodes
ReActorFaceSwap: The primary node for face swapping.
ReActorFaceSwapOpt: An optimized version of the primary node with additional options.
ReActorOptions: Provides additional settings for the optimized face swap node.
ReActorFaceBoost: Enhances the quality of swapped faces by restoring and enlarging them before insertion.
ReActorMaskHelper: Helps in creating accurate face masks for better results.
Operations with Face Models
ReActorSaveFaceModel: Saves face models for future use.
ReActorLoadFaceModel: Loads previously saved face models.
ReActorBuildFaceModel: Builds blended face models from multiple sources.
ReActorMakeFaceModelBatch: Creates batches of face models.
Additional Nodes
ReActorRestoreFace: Restores faces to improve quality.
ReActorImageDublicator: Duplicates images for use in workflows.
ImageRGBA2RGB: Converts RGBA images to RGB format.
Customization and Examples
Face Indexes: Specify which faces to swap by their index in the image.
Gender Detection: Swap faces based on gender detection.
Face Models: Save and load face models to reuse in different projects.
comfyui-reactor-node Models
The extension supports various face restoration models, including:
GPEN 1024/2048: High-resolution face restoration models.
CodeFormer: A face restoration tool for enhancing face quality.
GFPGAN: Another face restoration tool for improving face details.
These models can be downloaded from the provided links and placed in the appropriate directories within ComfyUI.
What's New with comfyui-reactor-node
Version 0.5.1 ALPHA7
Face Restoration Models: Added support for GPEN 1024/2048 models.
ReActorFaceBoost Node: Introduced to enhance the quality of swapped faces.
Bug Fixes and Improvements: Various fixes and performance enhancements.
Previous Versions
0.5.0 BETA4: Support for Spandrel library with GFPGAN.
0.5.0 BETA3: Fixed RAM issues and improved face detection.
0.5.0 BETA2: Added mixed face model creation and significant performance boosts.
0.5.0 BETA1: New outputs for Masking Helper node and other fixes.
Troubleshooting comfyui-reactor-node
Common Issues and Solutions
Installation Problems: Ensure all dependencies are installed correctly. Follow the installation steps provided in the documentation.
Face Detection Errors: Verify that the face detection models are correctly placed in the specified directories.
AttributeError: This error may occur if the model files are corrupted. Re-download the models from the provided links.
Performance Issues: Ensure your system meets the minimum requirements and that you are using the correct versions of dependencies.
Frequently Asked Questions
Why is the face not swapped?: Check if the face indexes are set correctly and that the source and target images have detectable faces.
How to improve face quality?: Use the face restoration models and adjust the fidelity weight for better results.
Learn More about comfyui-reactor-node
For additional resources, tutorials, and community support, visit the following links:
GitHub Repository
These resources provide detailed guides, example workflows, and a platform to ask questions and share your experiences with other AI artists.