Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

ReActorRestoreFace

Documentation for the ReActorRestoreFace Node

Overview

The ReActorRestoreFace node is a part of the ComfyUI-ReActor node set, which provides tools for face swapping and enhancement in images. The primary function of this node is to restore facial features in images by improving face details. This is particularly useful when working on face swapping projects, as it ensures that the faces in the final images are clear and realistic.

Functionality

The ReActorRestoreFace node performs face restoration on input images, enhancing the quality of faces by applying specialized face restoration models. This process can enhance details and improve the overall appearance of faces in images.

Inputs

The ReActorRestoreFace node accepts the following inputs:

  • image: The primary image input where face restoration will be applied.
  • facedetection: Options for the face detection model to be used, such as "retinaface_resnet50", "retinaface_mobile0.25", "YOLOv5l", and "YOLOv5n".
  • model: The face restoration model to be applied. Users can choose from a list of models available in their environment.
  • visibility: A float parameter controlling the visibility strength of the restored face, ranging from 0.0 to 1.0.
  • codeformer_weight: If using CodeFormer as the restoration model, this weight controls the fidelity of restoration, with a range from 0.0 to 1.0.

Outputs

The ReActorRestoreFace node produces the following output:

  • IMAGE: The resulting image after applying the face restoration. The output image will have enhanced face details, improving the visual quality.

Usage in ComfyUI Workflows

The ReActorRestoreFace node can be utilized in workflows where detailed face processing is needed. It is typically used after a face swap or when the image quality calls for enhancement. Here are some scenarios of its application:

  1. Post Face Swap Enhancement: After using face swapping nodes from the ReActor node set, the ReActorRestoreFace node can refine the swapped faces, making them more realistic.

  2. Image Quality Improvement: Use this node to enhance the clarity and detail of faces in any image, which can be particularly useful in artistic renderings, illustrations, or any AI-generated image content showcasing people.

  3. Photo Restoration: For old or low-quality photographs, this node can help restore facial features, thus serving as a tool for digital photo restoration.

Special Features and Considerations

  • Face Detection Options: The node includes various face detection models that can be applied depending on the detail and complexity of the image.

  • Versatile Restoration Models: It supports different face restoration models, each potentially suitable for different styles or levels of detail.

  • Restoration Control: Through the visibility and codeformer_weight parameters, users can finely control the level and style of restoration, tailoring the process to their needs.

  • Considerations: Users should select appropriate models and parameters according to their hardware capabilities and required output quality. It's important to have the necessary models downloaded to the environment where ComfyUI is running for optimal functionality.

This node is part of the ComfyUI-ReActor suite, allowing users to leverage advanced face processing techniques easily. For more information on the full capabilities of ComfyUI-ReActor, visit the ComfyUI-ReActor GitHub repository.