Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently save and reuse face models for AI artists, enabling face swapping and restoration in ReActor suite.
The ReActorSaveFaceModel node is designed to save a face model from an image or an existing face model. This node is particularly useful for AI artists who need to store and reuse face models for various creative projects. By analyzing the provided image, it identifies and extracts facial features, which are then saved as a face model. This process allows for efficient face swapping, restoration, and other face-related operations in future tasks. The node ensures that the face model is saved in a format that can be easily loaded and utilized by other nodes in the ReActor suite, enhancing workflow efficiency and consistency.
This parameter determines whether the node should save the face model. When set to True
, the node will proceed with saving the face model. If set to False
, the node will not save the model. This is a boolean parameter with possible values of True
or False
.
This parameter specifies the name under which the face model will be saved. It is a string that allows you to easily identify and retrieve the face model later. The name should be unique to avoid overwriting existing models.
This parameter indicates the index of the face to be selected from the analyzed faces in the image. It is an integer value, and its default value is typically 0
, which selects the first detected face. Adjusting this index allows you to choose a different face if multiple faces are detected.
This parameter accepts the image from which the face model will be extracted. The image should be provided in a format that the node can process, such as a tensor or a PIL image. If an image is not provided, the node will require an existing face model to proceed.
This parameter allows you to provide an existing face model directly. If you already have a face model and do not need to extract it from an image, you can use this parameter. It can be set to None
if you are providing an image instead.
This parameter defines the detection size for face analysis. It is a tuple, typically set to (640, 640)
by default. Adjusting this size can impact the accuracy and speed of face detection, with larger sizes potentially providing more detailed analysis but requiring more computational resources.
This output parameter returns the name of the saved face model. It confirms the successful saving of the face model and provides the name under which it has been stored. This allows you to easily reference and load the face model in future operations.
face_model_name
is unique to avoid overwriting existing face models.select_face_index
parameter to choose the correct face if multiple faces are detected in the image.det_size
parameter based on the resolution and quality of the input image to optimize face detection accuracy.det_size
to improve detection accuracy.face_model
or image
face_model_name
does not contain any invalid characters.© Copyright 2024 RunComfy. All Rights Reserved.