Nodes Browser

ComfyDeploy: How ComfyUI-PixelResolutionCalculator works in ComfyUI?

What is ComfyUI-PixelResolutionCalculator?

Simple resuluition calculator to convert pixel resolution and aspect ratio to laten friendlt pixel width and height size.

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 ComfyUI-PixelResolutionCalculator and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ComfyUI-PixelResolutionCalculator

This node is used in the All-in-one Flux Dev workflow I made.

There is two nodes:

  • PixelResolutionCalculator

node1

  • LatentSizeToPixelSize

node1

PixelResolutionCalculator

The pixel resolution calculator is just a simple node that generate the closest "latent friendly" pixel resolution from your mega pixel and aspect ratio of choice. Took inspiration from the ImageScaleToTotalPixels node I saw from the original Flux demo workflow, since with flux everyone seems to talk about it with pixel resolution instead of width and height pixel count like SDXL.

LatentSizeToPixelSize

LatentSizeToPixelSize convert a laten samlpe input to width and height pixel count.