ComfyUI  >  Nodes  >  SD Prompt Reader

ComfyUI Extension: SD Prompt Reader

Repo Name

comfyui-prompt-reader-node

Author
receyuki (Account age: 2601 days)
Nodes
View all nodes (10)
Latest Updated
8/13/2024
Github Stars
0.2K

How to Install SD Prompt Reader

Install this extension via the ComfyUI Manager by searching for  SD Prompt Reader
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter SD Prompt Reader in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

SD Prompt Reader Description

SD Prompt Reader is a ComfyUI node designed for efficient management of image metadata and ensuring compatibility across multiple tools. It streamlines the process of handling and integrating image-related data.

SD Prompt Reader Introduction

The comfyui-prompt-reader-node is an extension designed to enhance your experience with AI-generated images by allowing you to extract and save metadata from these images. This metadata includes details such as the prompts used, settings, and other parameters that were part of the image generation process. By using this extension, you can ensure that your images are compatible with metadata detection on various platforms like Civitai, making it easier to manage and share your AI-generated artwork.

How SD Prompt Reader Works

The comfyui-prompt-reader-node works by integrating with the ComfyUI framework to read and write metadata from and to images. It uses nodes, which are essentially building blocks that perform specific tasks within a workflow. The main nodes in this extension are the Prompt Reader and Prompt Saver nodes. The Prompt Reader node extracts metadata from images, while the Prompt Saver node embeds metadata into images. This process ensures that all relevant information about the image generation is preserved and can be easily accessed or shared.

SD Prompt Reader Features

Prompt Reader Node

  • Functionality: Extracts metadata from images.
  • Customization: Allows selection of specific parameters using parameter_index.
  • Batch Processing: Supports batch reading of images using the Batch Loader node.
  • SDXL Support: Combines multiple sets of prompts into a single prompt for SDXL images.

Prompt Saver Node

  • Functionality: Embeds metadata into images in the A1111 format.
  • Customization: Supports various settings like calculate_hash, resource_hash, and save_metadata_file.
  • Compatibility: Ensures compatibility with tools that support the A1111 format, including SD Prompt Reader and Civitai.

Parameter Generator Node

  • Functionality: Generates parameters for images and outputs them to both the Prompt Saver and KSampler nodes.
  • Control Panel: Can be used as a control panel for complex ComfyUI workflows.

Batch Loader Node

  • Functionality: Batch reads image files from a directory.
  • Customization: Supports both relative and absolute paths for image directories.

Parameter Extractor Node

  • Functionality: Retrieves values of all parameters in the settings, including those not output by the Prompt Reader node.

Prompt Merger Node & Type Converter Node

  • Functionality: Combines text_g and text_l into a single prompt for SDXL users and converts special types into STRING type.

Lora Loader Node & Lora Selector Node

  • Functionality: Writes Lora data into metadata and supports auto-detection on Civitai.
  • Multiple Loras: Supports loading multiple Loras by chaining nodes.

SD Prompt Reader Models

The comfyui-prompt-reader-node does not have different models per se, but it supports various formats and tools for image generation. These include:

  • A1111's webUI
  • Easy Diffusion
  • StableSwarmUI
  • Fooocus-MRE
  • NovelAI
  • InvokeAI
  • ComfyUI
  • Draw Things
  • Naifu(4chan) Each of these tools has its own way of embedding metadata, and the comfyui-prompt-reader-node ensures compatibility with all of them.

Troubleshooting SD Prompt Reader

Common Issues and Solutions

  1. Metadata Not Extracted Correctly:
  • Ensure that the image format is supported.
  • Check if the parameter_index is set correctly for images with multiple sets of parameters.
  1. Batch Processing Issues:
  • Verify the path settings in the Batch Loader node.
  • Ensure that the image_load_limit and start_index are configured correctly.
  1. Metadata Not Embedded:
  • Make sure the Prompt Saver node is correctly embedded within the workflow.
  • Check if the calculate_hash and resource_hash settings are enabled if needed.

Frequently Asked Questions

  • Can I use this extension with custom nodes?
  • Yes, but ensure that the custom nodes do not interfere with the metadata extraction and embedding process.
  • What formats are supported?
  • PNG, JPEG, WEBP, and TXT (with limitations).

Learn More about SD Prompt Reader

For more information, tutorials, and community support, you can visit the following resources:

  • AP Workflow (https://perilli.com/ai/comfyui/) These resources provide detailed documentation, examples, and community forums where you can ask questions and get support.

SD Prompt Reader Related Nodes

RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.