ComfyUI Node
Random Tag Weights
A ComfyUI node in text with 14 inputs and 1 output.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | Default input text if no external input_text is provided. | |
| min_weight | FLOAT | 0.00–10 | The lowest possible random weight assigned. |
| max_weight | FLOAT | 1.30–10 | The highest possible random weight assigned. |
| threshold | FLOAT | 0.00–10 | Tags with generated weight below this value are discarded. |
| max_tags | INT | 301–10000 | Maximum number of tags allowed in the output. |
| seed | INT | 00–18446744073709550000 | Random seed for consistent repeatable output. |
| shuffle_tags | BOOLEAN | true | Randomize the order of output tags. |
| detect_by_commas | BOOLEAN | true | If ON: tags are split by commas. If OFF: tags are split by spaces. |
| group_parentheses | BOOLEAN | true | If ON: anything inside (...) is treated as one tag. |
| preserve_existing_weights | BOOLEAN | false | If ON: tags already containing weights (tag:1.0) will not be modified. |
| output_with_commas | BOOLEAN | true | Choose output format: commas or spaces between final tags. |
| add_random_commas | BOOLEAN | false | If ON: randomly insert commas between tags at the end. |
| num_random_commas | INT | 11–100 | Number of commas to randomly insert between tags. |
| input_textopt | STRING | External text input from another node. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| modified_text | STRING | — |