ComfyUI > Nodes > Mikey Nodes > SaveMetaData (Mikey)

ComfyUI Node: SaveMetaData (Mikey)

Class Name

SaveMetaData

Category
Mikey/Meta
Author
bash-j (Account age: 4196days)
Extension
Mikey Nodes
Latest Updated
2024-06-15
Github Stars
0.08K

How to Install Mikey Nodes

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

SaveMetaData (Mikey) Description

SaveMetaData node saves image metadata to text file for AI artists, ensuring reproducibility and organization.

SaveMetaData (Mikey):

The SaveMetaData node is designed to save metadata associated with an image into a text file. This node is particularly useful for AI artists who want to keep track of various metadata elements such as prompts and additional information (extra_pnginfo) used during the creation of an image. By saving this metadata, you can easily reference the parameters and settings used in your creative process, ensuring reproducibility and better organization of your work. The node allows for customization of the filename with options to include a timestamp and a counter, making it easier to manage and identify saved metadata files.

SaveMetaData (Mikey) Input Parameters:

image

This parameter represents the image whose metadata you want to save. It is essential as the metadata saved will be associated with this specific image.

filename_prefix

This is a string parameter that allows you to specify a prefix for the filename of the saved metadata file. This helps in organizing and identifying the metadata files. The default value is an empty string.

timestamp_prefix

This parameter is a boolean option (true or false) that determines whether to include a timestamp in the filename. Including a timestamp can help in tracking when the metadata was saved. The default value is true.

counter

This parameter is a boolean option (true or false) that determines whether to include a counter in the filename. This is useful for distinguishing between multiple metadata files saved with the same prefix. The default value is true.

prompt

This hidden parameter contains the prompt information used during the creation of the image. It is automatically handled by the node and does not require manual input.

extra_pnginfo

This hidden parameter contains additional metadata information. Like the prompt parameter, it is automatically handled by the node and does not require manual input.

SaveMetaData (Mikey) Output Parameters:

This node does not produce any direct output parameters. Instead, it performs the action of saving metadata to a text file and returns a dictionary containing the filename and subfolder where the metadata file is saved.

SaveMetaData (Mikey) Usage Tips:

  • Ensure that the filename_prefix is descriptive enough to help you identify the metadata file later.
  • Use the timestamp_prefix and counter options to avoid overwriting existing metadata files and to keep track of different versions.
  • Regularly save metadata to maintain a record of the settings and parameters used in your creative process, which can be invaluable for future reference or reproducing results.

SaveMetaData (Mikey) Common Errors and Solutions:

"TypeError: 'NoneType' object is not iterable"

  • Explanation: This error occurs when the extra_pnginfo or prompt parameter is None and the code attempts to iterate over it.
  • Solution: Ensure that extra_pnginfo and prompt are properly initialized and not None before passing them to the node.

"FileNotFoundError: [Errno 2] No such file or directory"

  • Explanation: This error occurs if the specified directory for saving the metadata file does not exist.
  • Solution: Verify that the output directory exists and has the correct permissions. Create the directory if it does not exist.

"PermissionError: [Errno 13] Permission denied"

  • Explanation: This error occurs if the node does not have the necessary permissions to write to the specified directory.
  • Solution: Check the directory permissions and ensure that the node has write access to the directory. Adjust the permissions if necessary.

SaveMetaData (Mikey) Related Nodes

Go back to the extension to check out more related nodes.
Mikey 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.