ComfyUI > Nodes > Prompt Info > Add Info

ComfyUI Node: Add Info

Class Name

AddInfo

Category
prompt_info
Author
chrisgoringe (Account age: 4223days)
Extension
Prompt Info
Latest Updated
2024-05-22
Github Stars
0.03K

How to Install Prompt Info

Install this extension via the ComfyUI Manager by searching for Prompt Info
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Prompt Info 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

Add Info Description

Enhance image processing workflow by embedding detailed prompt and extra information into image metadata.

AddInfo:

The AddInfo node is designed to enhance your image processing workflow by embedding detailed prompt and extra information into the image metadata. This node is particularly useful for AI artists who want to keep track of the various inputs and outputs associated with their image generation processes. By using this node, you can ensure that all relevant data is stored within the image file, making it easier to revisit and understand the steps taken during the creation of the artwork. The primary function of this node is to call the insertAllInAndOut method, which organizes and inserts all input and output values into the image's metadata, thereby preserving the workflow details.

AddInfo Input Parameters:

image

This parameter represents the image to which the prompt and extra information will be added. The image should be in a format that supports metadata, such as PNG. The image parameter is crucial as it serves as the base onto which all additional information will be embedded. There are no specific minimum, maximum, or default values for this parameter, but it must be a valid image file.

prompt

This hidden parameter contains the prompt information that will be embedded into the image's metadata. The prompt typically includes the textual description or instructions used to generate the image. This parameter is automatically handled by the node and does not require manual input.

extra

This hidden parameter includes additional metadata that will be embedded into the image. The extra parameter often contains workflow-related information, such as node configurations and other relevant data. Like the prompt parameter, this is automatically managed by the node.

AddInfo Output Parameters:

image

The output parameter image is the same image provided as input but now enriched with the embedded prompt and extra information. This enhanced image allows you to retain all the relevant metadata, making it easier to understand and reproduce the workflow in the future. The output image can be used in subsequent processing steps or saved for archival purposes.

AddInfo Usage Tips:

  • Ensure that the input image is in a format that supports metadata, such as PNG, to fully utilize the capabilities of the AddInfo node.
  • Use this node in conjunction with other nodes that generate or modify prompts and extra information to create a comprehensive and traceable workflow.
  • Regularly save your enhanced images to maintain a record of your creative process, which can be invaluable for future reference or replication of results.

AddInfo Common Errors and Solutions:

JSONDecodeError

  • Explanation: This error occurs when the info parameter contains invalid JSON data.
  • Solution: Ensure that the info parameter is correctly formatted as JSON. Use a JSON validator to check for syntax errors before passing the data to the node.

KeyError

  • Explanation: This error happens when the specified node_id, side, or name does not exist in the provided JSON structure.
  • Solution: Verify that the node_id, side, and name are correctly specified and exist in the JSON data. Double-check the structure of your JSON to ensure all necessary keys are present.

ValueError

  • Explanation: This error is raised when the node attempts to convert a non-numeric value to a float or integer.
  • Solution: Ensure that the values in your JSON data are correctly formatted and can be converted to the expected numeric types if necessary. Validate your data to prevent non-numeric values from being processed where numbers are expected.

Add Info Related Nodes

Go back to the extension to check out more related nodes.
Prompt Info
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. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.