floyo logobeta logo
Powered by
ThinkDiffusion
floyo logobeta logo
Powered by
ThinkDiffusion

ComfyUI-FDG

2

Last updated
2025-06-28

ComfyUI-FDG is an implementation of frequency-decoupled guidance (FDG) designed to enhance image quality in ComfyUI, particularly at low guidance scales. This tool effectively mitigates the limitations associated with high CFG scales, allowing for improved fidelity in generated images.

  • Facilitates high-quality image generation with lower CFG scales, reducing common artifacts.
  • Integrates seamlessly into existing workflows by placing the FDGNode before the KSampler node.
  • Allows for precise control over image details through adjustable guidance scales for both high and low-frequency components.

Context

ComfyUI-FDG serves as a specialized tool within the ComfyUI ecosystem, focusing on enhancing the image generation process by implementing frequency-decoupled guidance. Its primary aim is to improve image fidelity while maintaining efficiency, particularly when working with low guidance scales.

Key Features & Benefits

This tool introduces several practical features that are essential for users looking to enhance their image generation capabilities. Notably, it allows users to adjust guidance scales for both high-frequency details and low-frequency structures, enabling fine-tuned control over the output quality. Additionally, it operates using a pyramid level approach for frequency decomposition, which enhances the model's ability to manage complex details without compromising performance.

Advanced Functionalities

ComfyUI-FDG includes advanced functionalities such as the ability to specify the number of pyramid levels for frequency decomposition, which can significantly refine the output quality. Users can also define a threshold for the number of steps during which FDG is applied, after which the CFG values from the KSampler node take over. This flexibility allows for a tailored approach to image generation, depending on the specific requirements of a project.

Practical Benefits

By incorporating ComfyUI-FDG into their workflows, users can expect to see substantial improvements in image quality and detail control. The tool enhances workflow efficiency by reducing the need for high CFG scales, which often lead to artifacts, thus streamlining the creative process. Overall, FDG empowers users to achieve superior results with greater ease and precision.

Credits/Acknowledgments

The implementation of this tool is based on the research conducted by Seyedmorteza Sadat, Tobias Vontobel, Farnood Salehi, and Romann M. Weber, as outlined in their paper on frequency domain guidance. Users are encouraged to cite their work when utilizing this implementation in research contexts.