ComfyUI nodes for localized prompt control
Top 75.2% on sourcepulse
This repository provides a ComfyUI implementation of "Cutoff," a technique for precisely controlling prompt attribute influence in Stable Diffusion. It allows users to isolate specific word meanings within a prompt, preventing unintended attribute bleeding (e.g., ensuring "blue" modifies "hair" and not "shoes"). This is beneficial for users seeking finer-grained control over image generation and prompt interpretation.
How It Works
Cutoff operates by manipulating CLIP embeddings. It identifies tokens within a prompt and generates alternative embeddings where specific tokens are masked. By calculating the difference between the original and masked embeddings, it creates a directional vector that isolates the intended meaning of a token. This directional vector is then used to guide the diffusion process, enhancing control over attribute assignment within the generated image. The implementation uses three ComfyUI nodes: Cutoff BasePrompt
, Cutoff Set Region
, and Cutoff Regions To Conditioning
(with an ADV variant for advanced weighting).
Quick Start & Requirements
custom_nodes
directory.Highlighted Details
conditioning > cutoff
category in ComfyUI.Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The README notes that while functional with SDXL, effectiveness may vary, particularly with older versions. The absence of an explicit license could pose compatibility concerns for commercial or closed-source projects.
1 year ago
1 day