ComfyUI-PixelResolutionCalculator

ComfyUI-PixelResolutionCalculator
★ 8

像素分辨率长宽比转换latent友好ComfyUI工作流
根据目标像素总量与长宽比,计算并输出最接近的 latent 友好像素宽高,便于在 ComfyUI 工作流中稳定使用。
💡 将目标百万像素和长宽比转换为适合 latent 处理的像素宽高。
🍴 2 Forks💻 Python🔄 2025-06-02
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/a1f1f564f19c
node1
node1
📄 README

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.