Skip to content

A port of muerrilla's sd-webui-Detail-Daemon as a node for ComfyUI, to adjust sigmas that control detail.

License

Notifications You must be signed in to change notification settings

tatookan/ComfyUI-Detail-Daemon

 
 

Repository files navigation

DetailDaemon-example

ComfyUI-Detail-Daemon

A port of muerrilla's sd-webui-Detail-Daemon as a node for ComfyUI, to adjust sigmas that generally enhance details, and possibly remove unwanted bokeh or background blurring, particularly with Flux models (but also works with SDXL, SD1.5, and likely other models). If the values are taken too far it results in an oversharpened and/or HDR effect. There are four nodes here. Multiply Sigmas and Lying Sigma Sampler are also included as alternative methods of generally enhancing details.

  • Detail Daemon Sampler
  • Detail Daemon Graph Sigmas (to graph the sigmas adjustment visually)
  • Multiply Sigmas (stateless)
  • Lying Sigma Sampler

Demonstration

T2M

FLUX: GGUF-Q6K
Sampler: euler
Scheduler: beta
Steps: 20
Denoise: 1

ON OFF
Sampler Example Sampler Example

M2M

FLUX: GGUF-Q6K
Sampler: euler
Scheduler: beta
Steps: 20
Denoise: 0.5

Import Image Output Image
Sampler Example Sampler Example

Nodes

Detail Daemon Sampler

Screenshot 2024-10-29 124741

Allows sampling with the Detail Daemon schedule adjustment, which keeps the noise levels injected the same while lowering the amount of noise removed at each step, which effectively adds detail. Detail_amounts between 0 and 1.0 work best. See muerrilla's Detail Daemon repo for full explanation of inputs and methodology.

Detail Daemon Graph Sigmas

Screenshot 2024-10-29 131939

Allows graphing adjusted sigmas to visually see the effects of different parameters on a graphed curve. This had to be a separate node from the Detail Daemon Sampler node in order to function properly. Just set the values the same as that node, or set inputs on separate primitive nodes that input into both the Detail Daemon Sampler and this Graph Sigmas node. You'll need to run the queue in order to see the graph on the node. Please note: this node doesn't actually change the sigmas used when generating, it only graphs them.

Multiply Sigmas

Screenshot 2024-10-29 124833

Simple node to multiply all sigmas by the supplied factor (multiplies both the noise levels added and denoised by the factor, which somehow adds detail with a factor less than 1). Factor values of 0.95-0.99 work best (default without this node is 1.0). It is stateless, meaning it calculates the sigmas fresh on every queue (other multiply sigmas nodes seem to calculate on prior run sigmas). Because this multiplies sigmas of all steps (without start or end values), it tends to change the overall composition of the image too.

Advanced Lying Sigma Sampler

Screenshot 2024-10-29 124803)

A simpler version of Detail Daemon Sampler, with only amount adjustment (-0.1 dishonesty_factor is equivalent of 0.1 in detail_amount of Detail Daemon), start and end values. Dishonesty values between -0.1 and -0.01 work best.

Example and testing workflow

Screenshot 2024-10-29 134541

The Comparing Detailers.json workflow will allow you to compare these various detailer nodes on the same prompt and seed.

Precautions

Before using this node, ensure that floating point rounding is disabled and comfui is restarted. The value of the adjustment factor dishonesty_factor has a significant impact on the results. It is recommended to start with the default value and gradually adjust it. Screenshot 2024-10-29 124833

Credits

About

A port of muerrilla's sd-webui-Detail-Daemon as a node for ComfyUI, to adjust sigmas that control detail.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%