ComfyUI  >  Nodes  >  ComfyUI_Stable_Makeup >  StableMakeup_Sampler

ComfyUI Node: StableMakeup_Sampler

Class Name

StableMakeup_Sampler

Category
Stable_Makeup
Author
smthemex (Account age: 383 days)
Extension
ComfyUI_Stable_Makeup
Latest Updated
7/18/2024
Github Stars
0.0K

How to Install ComfyUI_Stable_Makeup

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

StableMakeup_Sampler Description

Facilitates stable makeup effects application using advanced AI blending for natural and aesthetic results in images.

StableMakeup_Sampler:

The StableMakeup_Sampler node is designed to facilitate the application of makeup effects to images using a stable diffusion model. This node leverages advanced AI techniques to seamlessly blend makeup onto faces in images, ensuring a natural and aesthetically pleasing result. The primary goal of this node is to provide AI artists with a powerful tool to enhance portraits and other images with makeup effects, without requiring extensive manual editing. By utilizing this node, you can achieve high-quality makeup application that respects the original facial features and expressions, making it an invaluable asset for digital art and photo editing projects.

StableMakeup_Sampler Input Parameters:

id_image

The id_image parameter represents the input image to which the makeup will be applied. This image should be a clear and high-resolution portrait to ensure the best results. The quality and resolution of this image directly impact the final output, as higher quality images allow for more detailed and precise makeup application.

makeup_image

The makeup_image parameter is the reference image that contains the desired makeup style. This image guides the makeup application process, ensuring that the colors, styles, and effects from the reference are accurately transferred to the id_image. The makeup image should be chosen carefully to match the desired outcome.

pipe

The pipe parameter refers to the pre-trained stable diffusion pipeline used for the makeup application process. This pipeline includes various components such as the UNet, VAE, and text encoder, which work together to generate the final image. The pipeline must be correctly configured and loaded to ensure smooth operation.

makeup_encoder

The makeup_encoder parameter is the model responsible for encoding and applying the makeup effects. It processes both the id_image and makeup_image to generate the final output. The encoder's performance and accuracy are crucial for achieving realistic and high-quality results.

facedetector

The facedetector parameter specifies the type of face detection model to be used. Options include "mobilenet" and "resnet50", each with its own strengths. The face detector helps in accurately identifying facial features, which is essential for precise makeup application.

dataname

The dataname parameter indicates the dataset or specific configuration used for the face detection and makeup application process. This parameter helps in fine-tuning the model's behavior to match specific requirements or datasets.

cfg

The cfg parameter, or guidance scale, controls the strength of the guidance provided by the makeup image. Higher values result in stronger adherence to the makeup image, while lower values allow for more flexibility and blending with the original image. This parameter typically ranges from 0 to 10, with a default value around 7.

steps

The steps parameter defines the number of inference steps to be taken during the makeup application process. More steps generally lead to higher quality results but require more computational resources. This parameter typically ranges from 10 to 100, with a default value around 50.

width

The width parameter specifies the width of the output image. It should match the dimensions of the input images to ensure consistency and avoid distortion. The width, along with the height, determines the resolution of the final output.

height

The height parameter specifies the height of the output image. Similar to the width, it should match the dimensions of the input images to ensure consistency and avoid distortion. The height, along with the width, determines the resolution of the final output.

StableMakeup_Sampler Output Parameters:

image

The image parameter is the final output image with the applied makeup effects. This image is generated by the makeup encoder and represents the combination of the id_image and makeup_image, enhanced with the specified makeup style. The output image maintains the original facial features while seamlessly integrating the makeup effects.

StableMakeup_Sampler Usage Tips:

  • Ensure that the id_image is a high-resolution and clear portrait to achieve the best results.
  • Choose a makeup_image that closely matches the desired makeup style for accurate and aesthetically pleasing results.
  • Adjust the cfg parameter to control the strength of the makeup application, balancing between adherence to the makeup image and blending with the original image.
  • Increase the steps parameter for higher quality results, especially for complex makeup styles, but be mindful of the increased computational resources required.

StableMakeup_Sampler Common Errors and Solutions:

"Face detector model not found"

  • Explanation: The specified face detector model file is missing or not accessible.
  • Solution: Ensure that the correct path to the face detector model file is provided and that the file exists at the specified location.

"Invalid input image dimensions"

  • Explanation: The dimensions of the id_image or makeup_image do not match the expected size.
  • Solution: Verify that both input images have the same dimensions and match the specified width and height parameters.

"Pipeline configuration error"

  • Explanation: The stable diffusion pipeline is not correctly configured or loaded.
  • Solution: Check the pipeline configuration and ensure that all necessary components are correctly initialized and loaded.

"Insufficient inference steps"

  • Explanation: The number of inference steps is too low to produce a high-quality output.
  • Solution: Increase the steps parameter to allow for more detailed processing and higher quality results.

StableMakeup_Sampler Related Nodes

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