Visit ComfyUI Online for ready-to-use ComfyUI environment
ComfyUI Cutoff enhances text prompt control by offering custom nodes that refine and manage the effects of input prompts, ensuring more precise and tailored outcomes in the user interface.
ComfyUI_Cutoff is an extension designed to enhance the capabilities of the ComfyUI interface for Stable Diffusion. This extension allows you to precisely control how specific attributes in your text prompts influence the generated images. For example, if your prompt includes "a cute girl, white shirt with green tie, red shoes, blue hair, yellow eyes, pink skirt," ComfyUI_Cutoff lets you specify that "blue" should only affect "hair" and not "shoes," and "green" should only affect "tie" and not "skirt." This level of control can help you achieve more accurate and visually appealing results in your AI-generated art.
When you input a text prompt into Stable Diffusion, the text is tokenized, and CLIP (Contrastive Language-Image Pretraining) creates a vector (embedding) for each token. For instance, in the prompt "blue hair, yellow eyes," some vectors will correspond to "blue hair" and others to "yellow eyes." However, CLIP sometimes struggles to correctly associate adjectives with the right nouns, leading to unintended color associations.
ComfyUI_Cutoff addresses this by masking out specific tokens and creating new embeddings without those tokens. By comparing the original and new embeddings, the extension identifies the direction to adjust the vectors so that each attribute affects only its intended target. This process isolates the influence of each attribute, ensuring that "blue" affects only "hair" and not "eyes," and so on.
This node takes the full original prompt and serves as the starting point for the cutoff process.
This node allows you to define specific regions of influence for target words. It includes the following inputs:
This node converts the base prompt and defined regions into a conditioning input for the rest of ComfyUI. It includes:
<endoftext>
if left blank.This advanced node offers additional options for interpreting prompt weighting. More details can be found here.
Currently, ComfyUI_Cutoff does not introduce new models but enhances the functionality of existing Stable Diffusion models by providing more control over prompt attributes.
For additional resources, tutorials, and community support, you can explore the following:
© Copyright 2024 RunComfy. All Rights Reserved.