ComfyUI > Nodes > ReActor Node for ComfyUI > ReActor 🌌 Fast Face Swap [OPTIONS]

ComfyUI Node: ReActor 🌌 Fast Face Swap [OPTIONS]

Class Name

ReActorFaceSwapOpt

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 [OPTIONS] Description

Efficient face swapping node with customization options for high-quality results using advanced techniques.

ReActor 🌌 Fast Face Swap [OPTIONS]:

ReActorFaceSwapOpt is a versatile and efficient node designed for fast face swapping with additional customization options. This node allows you to swap faces between images while providing various parameters to fine-tune the process, ensuring high-quality and realistic results. It leverages advanced face analysis and swapping techniques to detect and replace faces in target images with those from source images. The node is particularly beneficial for AI artists looking to create seamless and natural-looking face swaps, offering enhanced control over the swapping process through its optional settings.

ReActor 🌌 Fast Face Swap [OPTIONS] Input Parameters:

source

The source image containing the face you want to swap into the target image. This parameter is crucial as it provides the face that will be analyzed and transferred. Ensure the source image is clear and well-lit for optimal results.

target

The target image where the face from the source image will be swapped. This image should also be clear and well-lit to facilitate accurate face detection and swapping.

source_faces_index

An index specifying which face in the source image to use for the swap. This is useful when the source image contains multiple faces. The default value is 0, indicating the first detected face.

faces_index

An index specifying which face in the target image to replace. This is useful when the target image contains multiple faces. The default value is 0, indicating the first detected face.

model

The path to the face swap model to be used. 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 to specify the gender of the source face. This helps in ensuring gender consistency during the face swap. Options typically include "male" and "female".

gender_target

A parameter to specify the gender of the target face. This helps in ensuring gender consistency during the face swap. Options typically include "male" and "female".

face_model

The face model to be used for the swap. This model is used to analyze and understand the facial features of both the source and target images.

faces_order

An order parameter to specify the sequence in which faces should be processed. This is useful when dealing with multiple faces in the images.

face_boost_enabled

A boolean parameter to enable or disable 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 refining the swapped face to make it look more natural and integrated with the target image.

face_restore_visibility

A parameter to control the visibility of the restored face. This helps in blending the restored face with the target image seamlessly.

codeformer_weight

A weight parameter for the CodeFormer model, which is used for face restoration. This controls the intensity of the restoration process.

interpolation

A parameter to specify the interpolation method used during the face swap. This affects the smoothness and quality of the final swapped face.

ReActor 🌌 Fast Face Swap [OPTIONS] Output Parameters:

result

The final image with the face swapped. This output is the result of the face swap process, incorporating all the specified parameters and settings to produce a high-quality and realistic face swap.

ReActor 🌌 Fast Face Swap [OPTIONS] Usage Tips:

  • Ensure both source and target images are clear and well-lit to facilitate accurate face detection and swapping.
  • Use the face_boost_enabled parameter to enhance the quality of the swapped face, especially when dealing with high-resolution images.
  • Adjust the codeformer_weight parameter to control the intensity of face restoration, balancing between natural look and detail preservation.
  • Experiment with different face models and interpolation methods to achieve the desired style and quality for your face swaps.

ReActor 🌌 Fast Face Swap [OPTIONS] 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 corresponds to a valid face in the target image. Adjust the index if necessary.

ReActor 🌌 Fast Face Swap [OPTIONS] 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.