ComfyUI > Nodes > MTB Nodes > Restore Face (mtb)

ComfyUI Node: Restore Face (mtb)

Class Name

Restore Face (mtb)

Category
mtb/facetools
Author
melMass (Account age: 3754days)
Extension
MTB Nodes
Latest Updated
2024-07-02
Github Stars
0.35K

How to Install MTB Nodes

Install this extension via the ComfyUI Manager by searching for MTB Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter MTB Nodes 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

Restore Face (mtb) Description

Enhance and restore facial features in images using advanced AI models for realistic and refined results.

Restore Face (mtb):

The Restore Face (mtb) node is designed to enhance and restore facial features in images using advanced AI models like GFPGan. This node is particularly useful for AI artists who want to improve the quality of faces in their artwork, making them appear more realistic and refined. By leveraging sophisticated face restoration techniques, the node can correct imperfections, enhance details, and provide a more polished final image. This tool is essential for anyone looking to elevate the quality of facial features in their digital creations, ensuring that faces are not only clear but also aesthetically pleasing.

Restore Face (mtb) Input Parameters:

image

This parameter accepts an image tensor that contains the faces you want to restore. The image should be in a format that the model can process, typically a tensor representation of the image.

model

This parameter specifies the face enhancement model to be used for restoration. The model should be a pre-trained face enhancement model compatible with the node, such as GFPGan or RestoreFormer.

aligned

This boolean parameter indicates whether the input faces are aligned. Aligned faces mean that the faces are pre-processed to be in a standard orientation, which can improve the restoration quality. The default value is False.

only_center_face

This boolean parameter determines whether only the center face in the image should be restored. This is useful when you want to focus on the most prominent face in a multi-face image. The default value is False.

weight

This float parameter allows you to adjust the weight of the restoration effect. A higher weight means a stronger restoration effect, while a lower weight means a subtler effect. The default value is 0.5.

save_tmp_steps

This boolean parameter specifies whether to save intermediate steps of the restoration process. This can be useful for debugging or understanding the restoration process. The default value is True.

preserve_alpha

This optional boolean parameter indicates whether to preserve the alpha channel of the image. Preserving the alpha channel is important for images with transparency. The default value is True.

Restore Face (mtb) Output Parameters:

IMAGE

The output is an enhanced image tensor where the faces have been restored and improved. This output can be used directly in your artwork or further processed as needed. The restored image will have clearer and more refined facial features, making it more visually appealing.

Restore Face (mtb) Usage Tips:

  • Ensure that the input image is of high quality and properly pre-processed to achieve the best restoration results.
  • Experiment with the weight parameter to find the optimal balance between subtle and strong restoration effects.
  • Use the only_center_face parameter when working with images containing multiple faces to focus on the most important face.
  • Enable save_tmp_steps if you want to analyze the intermediate steps of the restoration process for better understanding and debugging.

Restore Face (mtb) Common Errors and Solutions:

Face restoration models not found.

  • Explanation: This error occurs when the required face restoration models are not available in the specified paths.
  • Solution: Ensure that the face restoration models are correctly installed and located in the appropriate directories. You may need to download and place the models in the specified paths.

No Face Restore checkpoints found at <path>

  • Explanation: This error indicates that the node could not find the necessary checkpoints for face restoration at the given path.
  • Solution: Verify that the checkpoints are correctly placed in the specified directory. If they are missing, download the required checkpoints and place them in the correct location.

ModelNotFound

  • Explanation: This error occurs when the specified face enhancement model is not found.
  • Solution: Check that the model name is correctly specified and that the model is available in the system. If necessary, download and install the model.

Invalid image tensor

  • Explanation: This error indicates that the input image tensor is not in the correct format or is corrupted.
  • Solution: Ensure that the input image is properly pre-processed and converted into a valid tensor format before passing it to the node.

Restore Face (mtb) Related Nodes

Go back to the extension to check out more related nodes.
MTB Nodes
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.