Nodes/ComfyUI Steudio/Divide and Conquer Algorithm (No Upscale)
ComfyUI Node

Divide and Conquer Algorithm (No Upscale)

The Divide and Conquer calculator — tells you the target size, then stays out of your way

By Steudio·Created 2 years ago·Updated 9 months ago· 147
Divide and Conquer Algorithm (No Upscale)
  • image
  • image_width
  • image_height
  • dac_data
tile_width1024
tile_height1024
min_overlap1/32 Tile
min_scale_factor3.00
tile_orderspiral

The regular Divide and Conquer Algorithm node upscales the image and works out the tiling geometry. This one only does the math. It looks at your image, your tile size, overlap, and minimum scale factor, then tells you the dimensions an upscale would need - and hands you the dac_data plan - without resizing a single pixel itself.

That's a genuinely useful split if you don't want the node's built-in upscale (plain lanczos, or whatever model you plug in). Say you're using a heavyweight generative upscaler like SeedVR2 or a specific ESRGAN you like better, and you only want the Divide and Conquer geometry so your tiles tile cleanly. You run this node to get the target size, then do the actual upscaling yourself with the tools you already trust. It's the "tile without upscaling" capability the pack's 1.2.1 changelog added, exposed as its own node.

Inputs and outputs

The inputs are the geometry, minus the scaling controls:

  • image - the image you're planning around. Its dimensions drive the calculation.
  • tile_width / tile_height - default 1024. The tile size you'll process later.
  • min_overlap - default 1/32 Tile. How much tiles share; raise it if you get seams after combining.
  • min_scale_factor - default 3, range 1–8. The minimum scale the plan guarantees.
  • tile_order - spiral (default) or linear.

Three outputs, all different flavors of "the answer":

  • image_width and image_height - the target dimensions, as plain INTs. Wire these into an EmptyLatentImage, an ImageScale node, or anything else that wants a width and height.
  • dac_data - the full tiling plan, same payload as the regular algorithm node produces. Pass it to Divide Image and Select Tile and Combine Tiles and they'll split and stitch according to this plan.

Install

Same pack as everything else:

cd ComfyUI/custom_nodes
git clone https://github.com/Steudio/ComfyUI_Steudio

Restart ComfyUI, or install via ComfyUI Manager by searching ComfyUI Steudio. No dependencies, no model downloads. Note this sits in the Advanced subcategory of the suite's menus - most people never need it because the standard algorithm node covers both jobs at once. You'll know you want this one when the built-in upscale path feels like it's in the way.

CategorySteudio/Divide and Conquer/Advanced

Inputs (6)

NameTypeDefaultDescription
imageIMAGE
tile_widthINT1024
tile_heightINT1024
min_overlapCOMBO1/32 Tile7 options: None, 1/64 Tile, 1/32 Tile, 1/16 Tile, 1/8 Tile, 1/4 Tile, +1
min_scale_factorFLOAT3.001–8
tile_orderCOMBOspiral2 options: linear, spiral

Outputs (3)

NameTypeDescription
image_widthINT
image_heightINT
dac_dataDAC_DATA