ComfyUI  >  Nodes  >  ComfyUI Easy Use >  DetailerFix

ComfyUI Node: DetailerFix

Class Name

easy detailerFix

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

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

DetailerFix Description

Enhance AI-generated image detailing with precision and efficiency.

DetailerFix:

The easy detailerFix node is designed to enhance the detailing process in your AI-generated images. This node is particularly useful for refining and improving the quality of specific areas within an image, ensuring that the final output is more polished and visually appealing. By leveraging advanced detection and segmentation techniques, the easy detailerFix node can identify and focus on areas that require additional attention, making it an essential tool for artists looking to achieve high levels of detail and precision in their work. The node integrates seamlessly into your workflow, providing a straightforward and efficient way to enhance image details without requiring extensive technical knowledge.

DetailerFix Input Parameters:

model_name

This parameter specifies the name of the model to be used for the detailing process. It is crucial as it determines the underlying algorithm and capabilities that will be applied to enhance the image details. The available options are dynamically generated from the list of models in the sams folder.

device_mode

This parameter allows you to select the preferred device for running the detailing process. The options are AUTO, Prefer GPU, and CPU, with AUTO being the default. Choosing the appropriate device can impact the performance and speed of the detailing process, with GPU generally offering faster processing times.

sam_detection_hint

This parameter provides hints to the SAM (Segment Anything Model) about the type of detection to perform. Options include center-1, horizontal-2, vertical-2, rect-4, diamond-4, mask-area, mask-points, mask-point-bbox, and none. These hints guide the model in focusing on specific areas or patterns within the image, enhancing the accuracy and effectiveness of the detailing process.

sam_dilation

This integer parameter controls the dilation applied to the detected areas. It ranges from -512 to 512, with a default value of 0. Dilation can help in expanding or contracting the detected regions, allowing for finer control over the areas that are detailed.

sam_threshold

This float parameter sets the threshold for the SAM detection process, ranging from 0.0 to 1.0, with a default value of 0.93. The threshold determines the sensitivity of the detection, with higher values leading to more precise but potentially fewer detected areas.

sam_bbox_expansion

This integer parameter specifies the expansion factor for the bounding boxes around detected areas. It ranges from 0 to 1000, with a default value of 0. Expanding the bounding boxes can help in capturing more context around the detected regions, improving the detailing process.

sam_mask_hint_threshold

This float parameter sets the threshold for using mask hints in the SAM detection process, ranging from 0.0 to 1.0, with a default value of 0.7. This threshold helps in refining the mask hints, ensuring that only the most relevant areas are considered for detailing.

sam_mask_hint_use_negative

This parameter allows you to specify whether to use negative hints in the SAM detection process. The options are False, Small, and Outter. Negative hints can help in excluding certain areas from the detailing process, providing more control over the final output.

DetailerFix Output Parameters:

sam_pipe

The output parameter sam_pipe represents the pipeline used for the detailing process. This pipeline includes all the necessary components and configurations applied during the detailing, providing a comprehensive and integrated approach to enhancing image details. The sam_pipe output can be used in subsequent nodes or processes to further refine or analyze the detailed image.

DetailerFix Usage Tips:

  • To achieve the best results, experiment with different sam_detection_hint options to find the one that best suits the specific areas you want to enhance in your image.
  • Adjust the sam_threshold and sam_mask_hint_threshold parameters to fine-tune the sensitivity and accuracy of the detection process, ensuring that the most relevant areas are detailed.
  • Utilize the device_mode parameter to leverage GPU processing if available, as it can significantly speed up the detailing process.

DetailerFix Common Errors and Solutions:

Model not found

  • Explanation: The specified model_name does not exist in the sams folder.
  • Solution: Ensure that the model name is correctly specified and that the model file is present in the sams folder.

Invalid device mode

  • Explanation: The selected device_mode is not recognized.
  • Solution: Choose a valid option from AUTO, Prefer GPU, or CPU.

Threshold out of range

  • Explanation: The sam_threshold or sam_mask_hint_threshold value is outside the allowed range.
  • Solution: Ensure that the threshold values are within the specified ranges (0.0 to 1.0).

Dilation value out of range

  • Explanation: The sam_dilation value is outside the allowed range.
  • Solution: Ensure that the dilation value is within the specified range (-512 to 512).

DetailerFix 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.