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

YARS: Yet Another Resolution Selector

14

Last updated
2024-11-10

A flexible Resolution Selector node designed for ComfyUI allows users to adjust the resolution and aspect ratio while maintaining the pixel count of the Stable Diffusion model. It can also be integrated with upscaling nodes to effortlessly create high-resolution images.

  • Offers an advanced mode for users to customize base resolutions and aspect ratios.
  • Provides the ability to maintain pixel count consistent with the model's specifications.
  • Supports both basic and advanced functionalities, catering to different user preferences.

Context

This tool, known as the Yet Another Resolution Selector (YARS), serves as an alternative approach to resolution selection within ComfyUI. Its primary purpose is to allow users to freely manipulate image resolution and aspect ratio while ensuring compatibility with the underlying Stable Diffusion model.

Key Features & Benefits

YARS includes several practical features that enhance user experience. The advanced mode allows users to set a base resolution corresponding to their model, such as 512 for Stable Diffusion 1.5 or 1024 for SDXL. Users can also choose to overextend the output dimensions, which is particularly useful for generating images at higher resolutions than the model's base capability.

Advanced Functionalities

The advanced settings of YARS enable users to maintain a constant resolution that matches the pixel count of a 1:1 image generated at the base resolution. This feature is particularly advantageous when connected to image rescale nodes, ensuring that images produced are optimized for the user's GPU capabilities. The basic version caters to users who prefer predefined aspect ratio settings, with the option to customize these presets by editing a simple text file.

Practical Benefits

By incorporating YARS into their workflow, users can significantly enhance their control over image generation in ComfyUI. This tool streamlines the process of achieving desired resolutions and aspect ratios, ultimately improving the quality and efficiency of the image creation process.

Credits/Acknowledgments

The YARS tool is developed by Tropfchen and is available under an open-source license, allowing contributions and enhancements from the community.