Cutting Off Prompt Effecthttps://github.com/hnmr293/sd-webui-cutoff
This stable-diffusion-webui extension aims to limit the influence of certain tokens in language models by rewriting them as padding tokens. This is important because the position vector of certain tokens can affect other tokens in unexpected ways, and the goal is to remove this influence while still preserving the overall meaning of the sentence. The extension achieves this by generating a new prompt with the specified token replaced by a padding token, and overwriting the position vectors corresponding to the original token with those generated from the new prompt. The Cutoff option allows the user to control the level of influence limitation, with "off" being the default setting.