ComfyUI Node

Tag Frequency Weighter

A ComfyUI node in prompt with 9 inputs and 1 output.

By L33chKing·Created 12 months ago·Updated 12 months ago· 0
Tag Frequency Weighter
    • output_prompt
    input_prompt2girls, megumin, from above
    min_value1.0
    max_value1.5
    calculate_averagefalse
    preserve_underscores_in_outputfalse
    pivotlog10(avg)
    ignore_below_tag_count0
    ignore_above_tag_count2000
    debugfalse
    Categoryprompt

    Inputs (9)

    NameTypeDefaultDescription
    input_promptSTRING2girls, megumin, from abovePrompt to reweight; commas/spacing preserved.
    min_valueFLOAT1.00–5Lower bound for output weights; popular tags trend toward this.
    max_valueFLOAT1.50–5Upper bound for output weights; rare tags trend toward this.
    calculate_averageBOOLEANfalseRecompute averages from CSV now and update cache.
    preserve_underscores_in_outputBOOLEANfalseKeep underscores in wrapped tags (do not replace with spaces).
    pivotCOMBOlog10(avg)Neutral pivot (1.0): log10(avg) or mean of log10 counts (x_avg).
    ignore_below_tag_countINT00–7000000Leave tags with counts below this unchanged.
    ignore_above_tag_countINT20000–7000000Leave tags with counts above this unchanged.
    debugBOOLEANfalsePrint per-tag counts while processing (verbose).

    Outputs (1)

    NameTypeDescription
    output_promptSTRING