ComfyUI Node
Prompt Attribute Cutoff
Limit the effect of specific prompt attributes by scaling down embedding magnitudes after a cutoff token position.
Prompt Attribute Cutoff
- new_magnitudes
- cutoff_index
- reason
◄tokensa red car with blue wheels►
◄magnitudes1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0►
◄cutoff_tokenred►
◄cutoff_position1►
◄strength0.50►
CategoryParametric/Prompts
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| tokens | STRING | a red car with blue wheels | Tokens. Default a red car with blue wheels. |
| magnitudes | STRING | 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 | Magnitudes. Default 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0. |
| cutoff_token | STRING | red | Cutoff token. Default red. |
| cutoff_position | INT | 10–1024 | Cutoff position. From 0 to 1024. Default 1. |
| strength | FLOAT | 0.500–1 | How strong the effect is. From 0 to 1. Default 0.5. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| new_magnitudes | STRING | — |
| cutoff_index | INT | — |
| reason | STRING | — |