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
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI-PixelResolutionCalculator
and select it - 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
- LatentSizeToPixelSize
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.