ComfyUI Node
LC ✂️ Duplicate Tags 🏷️
Removes repeated tags so none gets double weight. Matches ignoring case, underscores and weights (long_hair = (long hair:1.2)). Sentences, blank-line breaks and BREAK pass through. Optional second prompt to merge two prompts and clean them together.
LC ✂️ Duplicate Tags 🏷️
- text
- removed
◄keepfirst►
◄text—►
◄text_2—►
CategoryLC123/utils
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| keep | COMBO | first | Which copy of a repeated tag stays. first: the first one, as written. strongest: the most heavily weighted one, placed where the first was. |
| textopt | STRING | The prompt to clean. Optional so either input can be bypassed upstream. | |
| text_2opt | STRING | Optional second prompt, added after text and cleaned together (e.g. your own prompt plus LC Vision Danbooru Caption's). |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| text | STRING | The prompt with every tag once. |
| removed | STRING | The tags that were taken out, for checking. |