Nodes/ComfyUI-RandomTagWeights/Random Tag Weights
ComfyUI Node

Random Tag Weights

A ComfyUI node in text with 14 inputs and 1 output.

By Analaser·Created 10 months ago·Updated 8 months ago· 1
Random Tag Weights
    • modified_text
    text
    min_weight0.0
    max_weight1.3
    threshold0.0
    max_tags30
    seed0
    shuffle_tagstrue
    detect_by_commastrue
    group_parenthesestrue
    preserve_existing_weightsfalse
    output_with_commastrue
    add_random_commasfalse
    num_random_commas1
    input_text
    Categorytext

    Inputs (14)

    NameTypeDefaultDescription
    textSTRINGDefault input text if no external input_text is provided.
    min_weightFLOAT0.00–10The lowest possible random weight assigned.
    max_weightFLOAT1.30–10The highest possible random weight assigned.
    thresholdFLOAT0.00–10Tags with generated weight below this value are discarded.
    max_tagsINT301–10000Maximum number of tags allowed in the output.
    seedINT00–18446744073709550000Random seed for consistent repeatable output.
    shuffle_tagsBOOLEANtrueRandomize the order of output tags.
    detect_by_commasBOOLEANtrueIf ON: tags are split by commas. If OFF: tags are split by spaces.
    group_parenthesesBOOLEANtrueIf ON: anything inside (...) is treated as one tag.
    preserve_existing_weightsBOOLEANfalseIf ON: tags already containing weights (tag:1.0) will not be modified.
    output_with_commasBOOLEANtrueChoose output format: commas or spaces between final tags.
    add_random_commasBOOLEANfalseIf ON: randomly insert commas between tags at the end.
    num_random_commasINT11–100Number of commas to randomly insert between tags.
    input_textoptSTRINGExternal text input from another node.

    Outputs (1)

    NameTypeDescription
    modified_textSTRING