Supported Formats • Installation • Usage • Change Log • Credits
PNG | JPEG | WEBP | TXT* | |
---|---|---|---|---|
A1111's webUI | ✅ | ✅ | ✅ | ✅ |
Easy Diffusion | ✅ | ✅ | ✅ | |
StableSwarmUI* | ✅ | ✅ | ||
StableSwarmUI (prior to 0.5.8-alpha)* | ✅ | ✅ | ||
Fooocus-MRE* | ✅ | ✅ | ||
NovelAI (stealth pnginfo) | ✅ | ✅ | ||
NovelAI (legacy) | ✅ | |||
InvokeAI | ✅ | |||
InvokeAI (prior to 2.3.5-post.2) | ✅ | |||
InvokeAI (prior to 1.15) | ✅ | |||
ComfyUI* | ✅ | |||
Draw Things | ✅ | |||
Naifu(4chan) | ✅ |
See SD Prompt Reader for details
[!NOTE] While ZIP package is available, it is strongly recommended not to use it for installation.
Install and update via ComfyUI Manager (Recommended)
Search for
SD Prompt Reader
in the ComfyUI Manager and install it.Install manually
Please make sure to install the submodules along with the main repository.
cd
to thecustom_node
folder- Clone this repo
git clone --recursive https://github.com/receyuki/comfyui-prompt-reader-node.git
- Install dependencies
cd comfyui-prompt-reader-node pip install -r requirements.txt
Update
When updating, don't forget to include the submodules along with the main repository.
git pull --recurse-submodules
Prompt Reader
Node works exactly the same as the
standalone SD Prompt Reader.
It uses the Image Data Reader from the
standalone SD Prompt Reader,
allowing it to support the same formats and receive updates along with the
SD Prompt Reader.
[!IMPORTANT] Due to custom nodes and complex workflows potentially causing issues with SD Prompt Reader's ability to read image metadata correctly, it is recommended to embed the
Prompt Saver
Node within the workflow to ensure maximum compatibility.
Prompt Saver
Node and the Parameter Generator
Node are designed to be used together. Prompt Saver
Node will write additional metadata in the A1111 format to the output images
to be compatible with any tools that support the A1111 format,
including SD Prompt Reader and Civitai. [!TIP] Since it's not possible to directly extract metadata from
KSampler
, it's necessary to use theParameter Generator
Node to generate parameters and simultaneously output them to thePrompt Saver
Node andKSampler
Node.
KSampler
, it's necessary to
use the Parameter Generator
Node to generate parameters and simultaneously output them to both
the Prompt Saver
Node and KSampler
Node.
[!TIP] The
Parameter Generator
Node can also be used as a control panel for complex ComfyUI workflows, just like the AP workflow.
The Batch Loader
Node is specifically designed for the Prompt Reader
Node to batch-read image files in a directory
and cannot be used with other custom nodes.
For batch processing, please connect the IMAGE
output of the Batch Loader
Node to the image
input of
the Prompt Reader
Node.
path
path
supports relative paths such as ./input/
or absolute paths like C:/Users/receyuki/Pictures
.\
and /
are acceptable.path
,
in which case the image_load_limit
and start_index
will not function.The Parameter Extractor
Node is an extension of the Prompt Reader
Node, designed to retrieve the values
of all parameters in the settings (including those parameters that the Prompt Reader
Node cannot output).
e.g. Hires upscaler
Connect the SETTINGS
of the Prompt Reader
Node to the settings
of the Parameter Extractor
Node.
After the first run, the parameter list will be loaded.
text_g
and text_l
separately, SDXL users need to use
the Prompt Merger
Node to combine text_g
and text_l
into a single prompt.model_name
, sampler_name
, and scheduler
are special types
that cannot be directly used by some other nodes,
You can use the Type Converter
Node to convert them into STRING
type.The Lora Loader
Node and Lora Selector
Node are used to write Lora data into metadata and support auto-detection
on Civitai.
Replace the original loader with the Lora Loader
Node, or connect the LORA_NAME
output of the Lora Selector
Node
to the lora_name
input of other lora loaders (built-in or custom), and link the NEXT_LORA
output to the lora_name
input of the Prompt Saver
Node. Both of these nodes have the same function, please choose according to your needs.
If you need to load multiple Loras, please connect the Lora Loader
Node or Lora Selector
Node head to tail
through last_lora
and NEXT_LORA
, and connect the NEXT_LORA
at the end of the Lora chain to the lora_name
input
of the Prompt Saver
Node.