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

ResolutionSelector for ComfyUI

12

Last updated
2024-07-07

A custom node for ComfyUI that simplifies the selection of image resolutions for various Stable Diffusion models, including SDXL, SD15, and SD21. This tool allows users to dynamically adjust image dimensions according to their chosen model, enhancing the flexibility of image generation workflows.

  • Facilitates the selection of base resolutions for different Stable Diffusion models, returning width and height as integer values for easy integration.
  • Includes a resolution list derived from the Fooocus SDXL Web UI, ensuring compatibility with current standards in image processing.
  • Offers a base adjustment feature for older models, allowing users to maintain aspect ratios while adapting dimensions to fit specific model requirements.

Context

This tool is a specialized node designed for use within ComfyUI, a user-friendly interface for working with Stable Diffusion. Its primary purpose is to streamline the process of selecting image resolutions tailored to specific models, which is crucial for optimizing output quality and performance.

Key Features & Benefits

The Resolution Selector provides practical features that enhance usability. By returning width and height as integer values, users can easily connect these outputs to other components, such as the CLIPTextEncodeSDXL node. The integration of a resolution list based on the Fooocus SDXL Web UI ensures that users have access to commonly used resolutions, making the selection process intuitive and efficient.

Advanced Functionalities

This tool includes an advanced base adjustment dropdown specifically for older models like SD 1.5 and SD 2.1. This feature allows users to automatically reduce the selected dimensions while preserving the original aspect ratio, ensuring that images generated with these models maintain their intended look without manual recalibration.

Practical Benefits

The Resolution Selector significantly enhances workflow efficiency by simplifying the resolution selection process. Users gain greater control over the dimensions of their generated images, leading to improved quality outcomes tailored to the specific requirements of different models. This adaptability contributes to a smoother and more effective user experience within ComfyUI.

Credits/Acknowledgments

This tool was developed by bradsec and is available under an open-source license, encouraging collaboration and further development within the community.