Nodes/comfyui-fvmtools/Batch Router
ComfyUI Node

Batch Router

Combines reality, identity and count checks into the one folder a picture should go to.

By ping1979ping·Created 6 months ago·Updated 2 days ago· 1
Batch Router
    • target_dir
    • passed
    • failed
    • report
    ◄pass_dir►
    ◄fail_dir►
    ◄combineall►
    ◄label_areality►
    ◄label_bidentity►
    ◄label_cextra►
    ◄count_min1►
    ◄count_max1►
    ◄invertfalse►
    ◄gate_a—►
    ◄gate_b—►
    ◄gate_c—►
    ◄count—►
    ◄report_in►
    CategoryFVM Tools/Batch

    Inputs (14)

    NameTypeDefaultDescription
    pass_dirSTRINGFolder for pictures that clear every gate.
    fail_dirSTRINGFolder for pictures that fail any gate.
    combineCOMBOallall: every connected gate must pass. any: one is enough.
    label_aSTRINGreality—
    label_bSTRINGidentity—
    label_cSTRINGextra—
    count_minINT10–100Lowest acceptable value on the count input — e.g. 1 face. Ignored when count is unconnected.
    count_maxINT10–100Highest acceptable value on the count input. 1/1 means 'exactly one person'.
    invertBOOLEANfalseSwap the two folders — useful to collect rejects.
    gate_aoptBOOLEAN—
    gate_boptBOOLEAN—
    gate_coptBOOLEAN—
    countoptINTA count to bound, e.g. PersonSelector's face_count.
    report_inoptSTRINGUpstream report, prepended to this node's own.

    Outputs (4)

    NameTypeDescription
    target_dirSTRING—
    passedBOOLEAN—
    failedBOOLEAN—
    reportSTRING—