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.
Resolution Advisor
- resolution
- GENERATE
- NEED_HIRES
- NEED_UPSCALE
◄modelFLUX.2-dev►
CategoryIG1 Tools
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| resolution | IG1_RESOLUTION | The desired resolution of the image to be generated. Will be adjusted as reference to match patch length if necessary. | |
| model | COMBO | FLUX.2-dev | The model you want to compute advises for. This will be used to get the patch length, min lengths and max size. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| GENERATE | IG1_RESOLUTION | The first pass generation resolution respecting model's patch len, min lenghts and max size. |
| NEED_HIRES | BOOLEAN | Indicate if a second pass, 2x HiRes upscale is needed. True if the generate resolution is lower than the reference resolution. |
| NEED_UPSCALE | BOOLEAN | Indicate if a third pass, regular upscale is needed. True if the HiRes second phase resolution is lower than the reference resolution. |