ComfyUI nodes for prompt editing and LoRA control
Perfil do pacote
README
Control LoRA and prompt scheduling, advanced text encoding, regional prompting, and much more, through your text prompt. Prompt Control generates dynamic graphs that are literally identical to handcrafted noodle soup, condensing complicated workflows with dozens of nodes into simple text prompts.
Prompt Control comes with PCTextEncode, which provides advanced text encoding with many additional features compared to ComfyUI's base CLIPTextEncode.
A template is included with the extension, and can be loaded from ComfyUI's template library.
Recursos relacionados
3 conexõesFontes
3 fontesTrechos de fonte
1 trechoSource context: Repo asagi4/comfyui-prompt-control
Basic Text to Image[!NOTE] v3.0.0 is backwards compatible with existing workflows, but requires at least ComfyUI v0.8.0 The parser was rewritten using parsy. It is intended to have the same behaviour as the old parser, but is significantly faster. Please report any bugs or incompatibilities you find.
PC: Schedule Prompt now strips surrounding whitespace by default, which may change some prompts. Add NOSTRIP() to your prompt to restore previous behaviour.BREAK, as well as CAT, AVG() and AND corresponding to ComfyUI's ConditioningConcat, ConditioningAverage and ConditioningCombine nodes.All features are fully schedulable unless otherwise stated. See the scheduling syntax documentation to get started.
If you find prompt scheduling inconvenient for some reason, PCTextEncode can be used as a drop-in replacement for CLIPTextEncode to get everything else.
This workflow shows LoRA scheduling and prompt editing and compares it with the same prompt implemented with built-in ComfyUI nodes. You can also find it in the template library.
Prompt Control uses graph generation, and tries to delegate functionality to core ComfyUI wherever possible, implementing any hooks and patches in a way that is maximally compatible. This means that it should just work in most cases, even with models and nodes not explicitly supported.
If you encounter issues as a user or if you're a node developer and Prompt Control somehow breaks something, feel free to file a bug report.
The v3 node schema uses features that require at least ComfyUI v0.8.0
If you run into problems, update ComfyUI first.
Note: The documentation refers to the nodes with their internal names for consistency. The display name may change, but ComfyUI's search will always find the nodes with the internal name. PCLazyTextEncode and PCLazyLoraLoader are the main ones you'll want to use, also known as PC: Schedule Prompt and PC: Schedule LoRas.
PCLazyTextEncode uses ComfyUI's lazy graph execution mechanism to generate a graph of PCTextEncode and SetConditioningTimestepRange nodes from a prompt with schedules. This has the advantage that if a part of the schedule doesn't change, ComfyUI's caching mechanism allows you to avoid re-encoding the non-changed part.
for example, if you
Nós neste pacote
Nós 18Verificado 12 de set.
Verificado 12 de set.