Nodes Browser

ComfyDeploy: How YARS: Yet Another Resolution Selector works in ComfyUI?

What is YARS: Yet Another Resolution Selector?

A slightly different Resolution Selector node, allowing to freely change base resolution and aspect ratio, with options to maintain the pixel count or use the base resolution as the highest or lowest dimension.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for YARS: Yet Another Resolution Selector and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

Yet Another Resolution Selector (YARS)

A slightly different take on Resolution Selector nodes - freely adjust resolution and aspect ratio, maintain pixel count of StableDiffusion model, or hook it up to upscaling nodes to get that 5k 16:10 wallpaper in just few clicks.

Example


Installation

Exactly the same as with other simple custom nodes.

  • Click the green Code button, select Download Zip, and unpack it in your ComfyUI custom_nodes directory

or

  • Clone this repository by running git clone https://github.com/Tropfchen/ComfyUI-yaResolutionSelector.git in your ComfyUI custom_nodes directory

To uninstall:

  • Delete ComfyUI-yaResolutionSelector in your ComfyUI custom_nodes directory

Use

Simply right click on Empty Latent Image and choose one of Prepend yaResolution Selector, you can also find new nodes in utils menu.

yaResolution Selector (Advanced)

Recommend node with flexible ratio choice

  • base_resolution: in theory, this should match the base resolution of the model you're using (512 for SD1.5, 1024 for SDXL).
  • Overextend: By default, with a 2:1 ratio and a base resolution of 512, the node will output 256x512. However, when 'overextend' is set to true, the output will be 512x1024. This is beneficial when using models that can still generate good images at resolutions larger than the base resolution.
  • constant_resolution: The node will attempt to output dimensions with the same pixel count as a 1:1 image generated with the base resolution. This outputs resolutions similar to those recommended for use with SDXL. It's also useful with node connected to an image rescale node, especially when you know the maximum resolution that your GPU VRAM can safely handle.

yaResolution Selector

Basic version for users that prefer aspect ratio presets. New presets can be added by modifying ratios.txt file (if you don't have it, use the node at least once), remember to always include values in format width:height