Nodes/mmuuai选择器/mmuuai选择器
ComfyUI Node

mmuuai选择器

A resolution calculator that tells you the exact pixels before you hit generate

By mmuuai·Created about a month ago·Updated about a month ago· 1
mmuuai选择器
    • width(宽)
    • height(高)
    • fps(帧率)
    • value(选择结果)
    • bool(布尔值)
    类型图片
    清晰度1K
    画面比例16:9
    自定义宽度1024
    自定义高度1024
    帧率24
    选择输入1
    布尔开关false
    输入1
    输入2
    输入3
    输入4
    输入5
    输入6
    输入7
    输入8
    输入9
    输入10
    输入11
    输入12
    输入13
    输入14
    输入15
    输入16
    输入17
    输入18
    输入19
    输入20

    The name is honest this time. MmuuaiResolutionSelector (shown as "mmuuai选择器" in the node menu) is a selector, not a processor - it never touches a pixel, never resizes anything, never loads a model. You pick a preset and it hands you numbers: width, height, fps, a pick-one-of-twenty value, and a boolean, ready to wire into whatever node downstream wants dimensions. If you've been doing the mental math every time you build an Empty Latent Image for a 9:16 clip, this is the node that does it for you.

    Why that's worth a node at all: every model has a native resolution and a divisibility rule it's happy with - SDXL's trained aspect ratios, Flux wanting multiples of 64, video models that care about the short edge. Generate off-ratio and you get stretched bodies and doubled heads, the community's classic complaint. This node keeps your width and height locked to the ratio you asked for and rounds them to a multiple models actually tolerate.

    How the math works

    It's one small function with three modes, picked by 类型 (type):

    • 图片 (image): the 清晰度 preset is treated as the long edge - 1K → 1024, 2K → 2048, 4K → 4096, 8K → 8192 - and the result is rounded to a multiple of 16.
    • 视频 (video): the preset is the short edge - 480p → 480 up to 4320p → 4320 - rounded to an even number. On standard 16:9 that gives you the textbook sizes: 854×480, 1280×720, 1920×1080, 2560×1440, 3840×2160, 7680×4320. Flip to 9:16 and you get 720×1280 instead.
    • 自定义 (custom): ignores presets and uses 自定义宽度/自定义高度 (custom width/height, 2–16384), rounded to even.

    画面比例 (aspect ratio) offers 13 presets from 1:1 through 21:9 and 1:2; 帧率 (fps) is a pick from 16/24/30/50/60. A small JS widget draws the computed resolution right inside the node, so you see the final size before you generate instead of squinting at a downstream latent node.

    The inputs that actually matter

    • 类型 and 清晰度 - the two you'll touch 95% of the time.
    • 画面比例 - set once per workflow and leave it.
    • 选择输入 (select input) plus the 输入1–输入20 (Input 1–20) sockets - a mini switch: connect a few integer wires, dial the selector to the one you want, and the value output emits it. Handy for flipping between two sizes or seed values without rewiring.
    • 布尔开关 (boolean switch) - a plain on/off that goes to the bool output.

    What you get out

    Five outputs: width (宽), height (高), fps (帧率), value (选择结果), and bool (布尔值). The classic wiring is width/height into an Empty Latent Image or a video node's size inputs; value feeds a seed or a count; bool gates something further down the graph.

    Install

    Same as the rest of the pack - ComfyUI Manager (search "mmuuai-resolution-selector") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/mmuuai/mmuuai-resolution-selector
    

    Then restart ComfyUI. No dependencies (the pack's pyproject lists none), no model files, no API keys. It's pure local arithmetic.

    Two things that trip people up

    It computes but never applies - if you want your actual images scaled to that resolution, that's the pack's other node (mmuuai全能节点), not this one. And the UI is entirely Chinese, field names included; if you don't read it, you'll be matching labels by position. The pack is also from a small Chinese author with basically zero community footprint - this node is clean (nothing here phones home), but it's a reminder that any unknown custom node is code you're choosing to run on your machine.

    Categorymmuuai/工具

    Inputs (28)

    NameTypeDefaultDescription
    类型COMBO图片3 options: 图片, 视频, 自定义
    清晰度COMBO1K10 options: 1K, 2K, 4K, 8K, 480p, 720p, +4
    画面比例COMBO16:913 options: 1:1, 4:3, 3:4, 3:2, 2:3, 16:9, +7
    自定义宽度INT10242–16384
    自定义高度INT10242–16384
    帧率COMBO245 options: 16, 24, 30, 50, 60
    选择输入INT11–20
    布尔开关BOOLEANfalse
    输入1optINT
    输入2optINT
    输入3optINT
    输入4optINT
    输入5optINT
    输入6optINT
    输入7optINT
    输入8optINT
    输入9optINT
    输入10optINT
    输入11optINT
    输入12optINT
    输入13optINT
    输入14optINT
    输入15optINT
    输入16optINT
    输入17optINT
    输入18optINT
    输入19optINT
    输入20optINT

    Outputs (5)

    NameTypeDescription
    width(宽)INT
    height(高)INT
    fps(帧率)INT
    value(选择结果)INT
    bool(布尔值)BOOLEAN