ComfyUI > Nodes > ReActor Node for ComfyUI > ReActor 🌌 Fast Face Swap

ComfyUI Node: ReActor 🌌 Fast Face Swap

Class Name

ReActorFaceSwap

Category
🌌 ReActor
Author
Gourieff (Account age: 1277days)
Extension
ReActor Node for ComfyUI
Latest Updated
2024-11-21
Github Stars
1.63K

How to Install ReActor Node for ComfyUI

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

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ReActor 🌌 Fast Face Swap Description

Efficient face swapping node with advanced algorithms for high-quality results, ideal for AI artists seeking creative compositions.

ReActor 🌌 Fast Face Swap:

ReActorFaceSwap is a powerful and efficient node designed for seamless face swapping in images. This node leverages advanced face detection and swapping algorithms to replace faces in a target image with those from a source image, ensuring high-quality and realistic results. It is particularly useful for AI artists looking to create unique and creative compositions by merging facial features from different images. The node supports various customization options, including gender-specific adjustments and face restoration enhancements, making it versatile for a wide range of artistic applications. By automating the face swapping process, ReActorFaceSwap saves time and effort, allowing you to focus on the creative aspects of your work.

ReActor 🌌 Fast Face Swap Input Parameters:

source

The source image containing the face(s) to be swapped into the target image. This parameter is crucial as it provides the facial features that will be transferred. Ensure the source image is clear and well-lit for optimal results.

target_img

The target image where the face(s) from the source image will be swapped. This image should have a clear view of the face(s) to ensure accurate detection and swapping.

source_faces_index

An index or list of indices specifying which faces from the source image should be used for swapping. This allows you to select specific faces if the source image contains multiple faces. The default value is 0, indicating the first detected face.

faces_index

An index or list of indices specifying which faces in the target image should be replaced. This helps in targeting specific faces in the target image for swapping. The default value is 0, indicating the first detected face.

model

The path to the face swap model used for the swapping process. This model determines the quality and style of the face swap. Ensure the model path is correctly specified to avoid errors.

gender_source

A parameter indicating the gender of the source face. This helps in ensuring gender-specific adjustments during the face swap. The value can be 0 (unspecified), 1 (male), or 2 (female).

gender_target

A parameter indicating the gender of the target face. This helps in ensuring gender-specific adjustments during the face swap. The value can be 0 (unspecified), 1 (male), or 2 (female).

face_model

The face model used for detecting and processing faces in the images. This model is essential for accurate face detection and swapping.

faces_order

An order parameter that specifies the sequence in which faces should be processed. This can be useful when dealing with multiple faces in the images.

face_boost_enabled

A boolean parameter that enables or disables face boosting. When enabled, it enhances the swapped face for better quality. The default value is False.

face_restore_model

The model used for restoring the face after swapping. This helps in improving the visual quality of the swapped face.

face_restore_visibility

A parameter that controls the visibility of the restored face. This can be adjusted to blend the restored face seamlessly with the target image.

codeformer_weight

A weight parameter for the CodeFormer model used in face restoration. This controls the influence of the CodeFormer model on the final result.

interpolation

A parameter that controls the interpolation method used during face swapping. This affects the smoothness and quality of the transition between the swapped face and the target image.

ReActor 🌌 Fast Face Swap Output Parameters:

result

The final image with the face(s) swapped. This output image will have the faces from the source image seamlessly integrated into the target image, reflecting all the specified adjustments and enhancements.

ReActor 🌌 Fast Face Swap Usage Tips:

  • Ensure both source and target images are clear and well-lit to improve face detection accuracy.
  • Use the gender_source and gender_target parameters to ensure gender-specific adjustments for more realistic results.
  • Enable face_boost_enabled for higher quality face swaps, especially when dealing with low-resolution images.
  • Adjust the face_restore_visibility parameter to blend the swapped face seamlessly with the target image.

ReActor 🌌 Fast Face Swap Common Errors and Solutions:

Cannot detect any Target, skipping swapping...

  • Explanation: This error occurs when no faces are detected in the target image.
  • Solution: Ensure the target image is clear and well-lit. Try using a different image or adjusting the face detection parameters.

Wrong target gender detected

  • Explanation: This error occurs when the detected gender of the target face does not match the specified gender_target parameter.
  • Solution: Verify the gender_target parameter and ensure it matches the actual gender of the target face. Adjust the parameter if necessary.

No target face found for <face_num>

  • Explanation: This error occurs when the specified face index in the target image is not found.
  • Solution: Check the faces_index parameter and ensure it correctly specifies the face(s) in the target image. Adjust the index if needed.

ReActor 🌌 Fast Face Swap Related Nodes

Go back to the extension to check out more related nodes.
ReActor Node for ComfyUI
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.