Nodes/Parametric Studio/Prompt Attribute Cutoff
ComfyUI Node

Prompt Attribute Cutoff

Limit the effect of specific prompt attributes by scaling down embedding magnitudes after a cutoff token position.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
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)

    NameTypeDefaultDescription
    tokensSTRINGa red car with blue wheelsTokens. Default a red car with blue wheels.
    magnitudesSTRING1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0Magnitudes. Default 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0.
    cutoff_tokenSTRINGredCutoff token. Default red.
    cutoff_positionINT10–1024Cutoff position. From 0 to 1024. Default 1.
    strengthFLOAT0.500–1How strong the effect is. From 0 to 1. Default 0.5.

    Outputs (3)

    NameTypeDescription
    new_magnitudesSTRING—
    cutoff_indexINT—
    reasonSTRING—