2023-09-28 00:38:28 +08:00
2023-09-28 00:09:58 +08:00
2023-09-19 03:04:05 +08:00
2023-09-28 00:09:58 +08:00
2023-09-18 03:48:43 +08:00
2023-09-26 23:37:42 +08:00
2023-09-14 01:36:48 +08:00
2023-09-14 01:25:01 +08:00
2023-09-27 03:43:17 +08:00
2023-09-28 00:38:28 +08:00
2023-09-14 02:24:35 +08:00

icon

SD Prompt Reader Node

GitHub GitHub tag (with filter) GitHub tag (with filter) Code style: black

This project is currently in beta status. If you encounter any issues or have any suggestions, please let me know.

This is a subproject of the SD Prompt Reader. It helps you extract metadata from images in any format supported by the SD Prompt Reader and saves the images with additional metadata to ensure compatibility with metadata detection on websites such as Civitai.

Supported Formats • Installation • Usage • Credits

Supported Formats

PNG JPEG WEBP TXT*
A1111's webUI ✅ ✅ ✅ ✅
Easy Diffusion ✅ ✅ ✅
StableSwarmUI* ✅ ✅
Fooocus-MRE* ✅ ✅
InvokeAI ✅
ComfyUI* ✅
NovelAI ✅
Draw Things ✅
Naifu(4chan) ✅

See SD Prompt Reader for details

Installation

Search for SD Prompt Reader in the ComfyUI Manager and install it.

Install manually

  1. cd to the custom_node folder
  2. Clone this repo
    git clone https://github.com/receyuki/comfyui-prompt-reader-node.git
    
  3. Install dependencies
    cd comfyui-prompt-reader-node
    pip install -r requirements.txt
    

Update

Please ensure that you update the submodules along with the main repo.

git pull --recurse-submodules

Usage

Prompt Reader Node

For images generated by SDXL and containing multiple sets of prompts, the text_g will be combined with text_l into a single prompt

reader node

Prompt Saver Node & Parameter Generator Node & Prompt Merger Node

  • The Prompt Saver Node and The Parameter Generator Node are designed to be used together.
  • The 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. 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 this node within the workflow to ensure maximum compatibility.
  • Since it's not possible to directly extract metadata from KSampler, it is necessary to use the Parameter Generator Node to generate parameters and simultaneously output them to both the Prompt Saver Node and KSampler.
  • Since the A1111 format cannot store 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.
generator, saver and merger node

Example Workflow

example workflow

Credits

S
Description
No description provided
Readme MIT
18 MiB
Languages
Python 71.8%
JavaScript 28.2%