Nodes/comfyui-ig1-tools/Resolution Advisor
ComfyUI Node

Resolution Advisor

From a user input desired resolution, this node will compute and output: 1. A first generation pass resolution, accounting for model's min len, max size and patch len, with a ratio the closest possible to input resolution. 2. A boolean indicating if a second pass 2x upscale (HiRes fix recommended) is necessary, aka if the generate resolution is lower than the reference resolution. 3. A boolean indicating if a third pass (pure upscale) is necessary, aka if the the size post 2nd pass (doubling the resolution) is still under the reference resolution.

By iguanesolutions·Created 11 months ago·Updated 9 months ago· 4
Resolution Advisor
  • resolution
  • GENERATE
  • NEED_HIRES
  • NEED_UPSCALE
modelFLUX.2-dev
CategoryIG1 Tools

Inputs (2)

NameTypeDefaultDescription
resolutionIG1_RESOLUTIONThe desired resolution of the image to be generated. Will be adjusted as reference to match patch length if necessary.
modelCOMBOFLUX.2-devThe model you want to compute advises for. This will be used to get the patch length, min lengths and max size.

Outputs (3)

NameTypeDescription
GENERATEIG1_RESOLUTIONThe first pass generation resolution respecting model's patch len, min lenghts and max size.
NEED_HIRESBOOLEANIndicate if a second pass, 2x HiRes upscale is needed. True if the generate resolution is lower than the reference resolution.
NEED_UPSCALEBOOLEANIndicate if a third pass, regular upscale is needed. True if the HiRes second phase resolution is lower than the reference resolution.