/comfyui-prompt-composer

A suite of tools for prompt management

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

ComfyUI Prompt Composer

A suite of tools for prompt management.

If this project is useful to you and you like it, please consider a small donation to the author.

➡️ https://ko-fi.com/stefanoflore75

Buy my workflows:

➡️ https://stefanoflore.it/download/

Overview

ComfyUI Prompt Composer Node

Basic workflow for testing the nodes: prompt-composer-base-workflow.json

Install from ComfyUI Manager

  • Type florestefano1975 on the search bar of ComfyUI Manager.
  • Click the install button.

Manual installation and update instructions

Install

To install comfyui-prompt-composer:

  1. open the terminal on the ComfyUI installation folder
  2. digit: cd custom_nodes
  3. digit: git clone https://github.com/florestefano1975/comfyui-prompt-composer
  4. start/restart ComfyUI

Update

To update comfyui-prompt-composer:

  1. open the terminal on the comfyui-prompt-composer folder
  2. digit: cd custom_nodes
  3. digit: cd comfyui-prompt-composer
  4. digit: git pull
  5. start/restart ComfyUI

Warning: before the update create a backup of the TXT files contained in the custom-list folders.

Node List

  • Custom Lists Node: this node reads the lists contained in the custom-lists folder and creates a selector/weight pair for each.
  • Single Text Node: contains a typing box and a slider to adjust its weight.
  • Multiple Text Node: contains six typing boxes with sliders to adjust their weights.
  • Grouping Node: encapsulates the input concatenated strings in brackets () and assigns a weight to the group.
  • Merge Node: this node joins two text strings.

Single Text Node, Multiple Text Node, Styler Node, Effect Node and Grouping Node have an entry point (text_in_opt) to concatenate unlimitedly with the other nodes, and active switch option for fast by-pass.

Custom Lists Node

Create the TXT files in the custom-lists folder and insert the selector entries into each of them. You can create lists with simple items or libraries with entire prompts, so you can reuse and combine them as you like.

Important: changes inserted into the custom lists folder require restarting ComfyUI.

Deprecated Nodes

Nodes Effect and Styler are deprecated and will not receive future updates.

Usage

Combining nodes helps the user sequence strings for prompts, also creating logical groupings if necessary.

  • Individual nodes can be chained together, in any order.
  • All text_outs are simple text strings. You can also use nodes with other plugins.
  • Slider weights set to 1 do not encapsulate the related text in parentheses ().

Customization

The lists folder contains TXT files with Style and Effect node list entries.

SDXL Turbo Workflow

In the workflow folder you can download and use an SDXL Turbo configuration with some of the custom nodes already inserted and ready to use.

Styler Node

Notes

For advanced photorealism we recommend FormulaXL 2.0.

Other projects