ComfyUI-Detail-Daemon
Run ComfyUI Easily with InstaSD
Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:
- One-click deployment
- Any model, any node
- Powerful GPUs for rapid iteration
Available Nodes
DetailDaemonSamplerNode
Detail Daemon Sampler Node Documentation
Overview
The Detail Daemon Sampler Node is a component of the ComfyUI platform that allows users to enhance image detail by modifying processing parameters during generation. This node is part of a broader effort to adapt the functionalities of muerrilla’s sd-webui-Detail-Daemon tool into the ComfyUI environment. By dynamically adjusting the levels of noise removal through different stages of the image generation process, the Detail Daemon Sampler increases the intricacies and sharpness, making it particularly useful for maintaining rich details in generated images. It is particularly useful when working with Flux models, though it can be effectively used with SDXL, SD1.5, and others.
Functionality
What This Node Does
The Detail Daemon Sampler Node adjusts the image generation process by modifying the noise removal levels at various stages. This is controlled by a detailed schedule that lowers the amount of noise removed, thereby enhancing image details without altering the foundational noise injected into the model. Adjustments can be made for both large features and finer details, allowing users to dictate where more emphasis should be placed.
Inputs
The node accepts a variety of inputs to control its functionality:
- detail_amount: Controls the degree of detail enhancement. Positive values (range from 0 to 1) can increase detail by reducing noise removal, with too high values causing oversharpening. Negative values can be used to decrease detail.
- start: Specifies when adjustments begin during the generation process, expressed as a percentage (0–1.0). The start point influences when larger features are modified.
- end: Determines when adjustments should conclude, as a percentage (0–1.0). This end point affects the finer details capture.
- bias: Shifts the adjustment curve forward or backward in the timeline of the generation process, allowing more control over which steps are most affected.
- exponent: Adjusts the shape of the adjustment curve, with 0 being linear and 1 providing a smooth curve.
- start_offset: Sets a specific starting value for the detail amount at the generation process's commencement (not generally recommended for routine use).
- end_offset: Sets a specific value to end the detail amount at the process's conclusion.
- fade: Reduces the overall adjustment curve, allowing a softening of the effect.
- smooth: (true/false) Determines whether the adjustment curve should be smoothed or not.
- cfg_scale_override: Overrides the CFG scale if set to a non-zero value, allowing users to manually influence the scale used in the workflow.
Outputs
The node does not have any distinct output in the traditional sense since its primary function is to alter the processing routine within the workflow. The outcome is reflected in the increased or modified detail of the resultant image.
Usage in ComfyUI Workflows
The Detail Daemon Sampler Node can be integrated into existing ComfyUI workflows to enhance image details. It is particularly useful in scenarios where default noise removal might smooth out important details during image generation processes. The node can be configured according to the desired effect, such as enhancing major features in the initial stages or focusing on finer details towards the completion of the generation process. For Flux models, it is suggested to work with a detail_amount between 0.1 and 1.0, while for SDXL models these values should be typically less than 0.25 to avoid oversharpening.
Special Features and Considerations
- Compatibility: The node works seamlessly with custom sampler nodes like
SamplerCustomAdvanced. For use with standard nodes likeKSampler, a custom preset might be required. - Examples: Comprehensive examples are available in the repository's workflow directory, demonstrating the node's application in various scenarios, including txt2img, img2img, and inpainting.
- Graphing Support: While the node itself doesn't graph adjustment, companion nodes like Detail Daemon Graph Sigmas help visualize adjustments, ensuring users can preview the effects of parameters.
- Balancing Act: The settings should be carefully adjusted to avoid undesirable effects such as oversharpening or excessive noise, and the documentation provides a thorough guide on recommended parameter ranges.
By understanding these considerations and utilizing the node within workflows, users can achieve enhanced detail in their generated images without compromising the underlying quality or composition.