ComfyUI > Nodes > ComfyUI Easy Use > preMaskDetailerFix

ComfyUI Node: preMaskDetailerFix

Class Name

easy preMaskDetailerFix

Category
EasyUse/Fix
Author
yolain (Account age: 1341days)
Extension
ComfyUI Easy Use
Latest Updated
2024-06-25
Github Stars
0.51K

How to Install ComfyUI Easy Use

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

preMaskDetailerFix Description

Enhance pre-existing mask details for AI art projects with customizable parameters for precise results.

preMaskDetailerFix:

The preMaskDetailerFix node is designed to enhance the details of pre-existing masks in your AI art projects. This node is particularly useful for refining masks to ensure that the masked areas are accurately represented and detailed, which is crucial for high-quality image processing tasks. By leveraging this node, you can achieve more precise and visually appealing results in your artwork. The node offers a range of customizable parameters that allow you to control various aspects of the mask detailing process, such as the size of the guide, the mode of the mask, and the level of denoising. This flexibility makes it a powerful tool for artists looking to fine-tune their masks for better integration and realism in their compositions.

preMaskDetailerFix Input Parameters:

pipe

This parameter represents the pipeline that the node will use for processing. It is a required input and should be of type PIPE_LINE.

mask

This parameter is the mask that you want to detail. It is a required input and should be of type MASK.

guide_size

This parameter controls the size of the guide used for detailing the mask. It is a floating-point value with a default of 384, a minimum of 64, and a maximum defined by MAX_RESOLUTION. The step size is 8. Adjusting this value can help in achieving the desired level of detail in the mask.

guide_size_for

This boolean parameter determines whether the guide size is applied to the bounding box (bbox) or the crop region. The default value is True, which applies the guide size to the bounding box. If set to False, it applies to the crop region.

max_size

This parameter sets the maximum size for the detailing process. It is a floating-point value with a default of 1024, a minimum of 64, and a maximum defined by MAX_RESOLUTION. The step size is 8. This parameter helps in managing the scale of the detailing process.

mask_mode

This boolean parameter specifies whether the detailing should be applied to the masked areas only (masked only) or the whole image (whole). The default value is True, which means the detailing is applied to the masked areas only.

seed

This integer parameter sets the seed for random number generation, which can affect the detailing process. It has a default value of 0 and ranges from 0 to 0xffffffffffffffff. Setting a specific seed can help in achieving reproducible results.

steps

This integer parameter controls the number of steps for the detailing process. It has a default value of 20, with a minimum of 1 and a maximum of 10000. Increasing the number of steps can lead to more detailed results but may also increase processing time.

cfg

This floating-point parameter sets the configuration value for the detailing process. It has a default value of 8.0, with a minimum of 0.0 and a maximum of 100.0. Adjusting this value can help in fine-tuning the detailing process.

sampler_name

This parameter specifies the sampler to be used for the detailing process. It should be one of the samplers available in comfy.samplers.KSampler.SAMPLERS.

scheduler

This parameter sets the scheduler for the detailing process. It should be one of the schedulers available in comfy.samplers.KSampler.SCHEDULERS.

denoise

This floating-point parameter controls the level of denoising applied during the detailing process. It has a default value of 0.5, with a minimum of 0.0001 and a maximum of 1.0. Adjusting this value can help in reducing noise and achieving cleaner results.

preMaskDetailerFix Output Parameters:

new_pipe

This output parameter represents the new pipeline after the detailing process. It is of type PIPE_LINE and contains the enhanced mask details, ready for further processing or final output.

preMaskDetailerFix Usage Tips:

  • Adjust the guide_size parameter to control the level of detail in the mask. A larger guide size can capture more details but may also increase processing time.
  • Use the mask_mode parameter to specify whether you want to detail only the masked areas or the entire image. This can be useful for different artistic effects.
  • Experiment with the denoise parameter to find the right balance between detail and noise reduction. A lower value can preserve more details, while a higher value can produce cleaner results.

preMaskDetailerFix Common Errors and Solutions:

[ERROR] bbox_segm_pipe or pipe['bbox_segm_pipe'] is missing

  • Explanation: This error occurs when the bounding box segmentation pipeline is not provided or is missing from the input pipeline.
  • Solution: Ensure that the pipe parameter includes a valid bounding box segmentation pipeline.

[ERROR] sam_pipe or pipe['sam_pipe'] is missing

  • Explanation: This error occurs when the SAM pipeline is not provided or is missing from the input pipeline.
  • Solution: Ensure that the pipe parameter includes a valid SAM pipeline.

[ERROR] To use FaceDetailer, you need to install 'Impact Pack'

  • Explanation: This error occurs when the FaceDetailer class is not available because the required 'Impact Pack' is not installed.
  • Solution: Install the 'Impact Pack' to access the FaceDetailer functionality.

preMaskDetailerFix Related Nodes

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