ComfyUI  >  Nodes  >  wlsh_nodes >  Save Prompt (WLSH)

ComfyUI Node: Save Prompt (WLSH)

Class Name

Save Prompt (WLSH)

Category
WLSH Nodes/IO
Author
wallish77 (Account age: 2229 days)
Extension
wlsh_nodes
Latest Updated
6/19/2024
Github Stars
0.1K

How to Install wlsh_nodes

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

Save Prompt (WLSH) Description

Facilitates saving prompt data for AI-generated images, streamlining organization and retrieval of creative inputs.

Save Prompt (WLSH):

The Save Prompt (WLSH) node is designed to facilitate the saving of prompt data associated with AI-generated images. This node is particularly useful for AI artists who want to keep a record of the prompts used to generate specific images, ensuring that the creative process is well-documented and reproducible. By saving the positive and negative prompts, along with other metadata such as the model name and seed, this node helps in maintaining a comprehensive log of the artistic workflow. The primary goal of this node is to streamline the process of saving prompt information, making it easier for you to organize and retrieve your creative inputs.

Save Prompt (WLSH) Input Parameters:

images

This parameter accepts the images generated by the AI model that you want to save along with the prompt information. The images should be in a format that is compatible with the node's saving function.

positive

This parameter is for the positive prompt text that was used to generate the images. It helps in identifying the creative direction and elements that were emphasized in the image generation process. The default value is "unknown".

negative

This parameter is for the negative prompt text, which specifies the elements that were to be avoided during the image generation. It provides context on what was excluded from the creative process. The default value is "unknown".

seed

The seed parameter is an integer value used to initialize the random number generator for the image generation process. It ensures reproducibility of the generated images. The default value is -1, indicating that no specific seed was used.

modelname

This parameter specifies the name of the AI model used for generating the images. It helps in tracking which model produced which images, especially when multiple models are used. The default value is "unknown".

counter

This parameter is an integer that can be used to differentiate between multiple saves of the same prompt. It helps in maintaining unique filenames for each save. The default value is 0.

filename

This parameter allows you to specify a custom filename for the saved images and prompt information. If left empty, a filename will be generated based on other parameters.

path

This parameter specifies the directory path where the images and prompt information will be saved. If the path does not exist, it will be created automatically.

time_format

This parameter defines the format for the timestamp that can be included in the filename. The default format is "%Y-%m-%d-%H%M%S", which corresponds to the year, month, day, hour, minute, and second.

extension

This parameter specifies the file extension for the saved images. The default value is 'png', but other formats like 'jpg' can also be used.

quality

This parameter determines the quality of the saved images, especially when using lossy formats like 'jpg'. The value ranges from 1 to 100, with 100 being the highest quality. The default value is 100.

prompt

This parameter allows you to include additional prompt information that you want to save along with the images. It can be used to provide more context or details about the creative process.

extra_pnginfo

This parameter allows you to include extra metadata in the saved PNG files. It can be used to store additional information that might be useful for future reference.

Save Prompt (WLSH) Output Parameters:

ui

This output parameter returns a dictionary containing the paths to the saved images. It helps in quickly accessing the saved files from the user interface.

Save Prompt (WLSH) Usage Tips:

  • Ensure that the path parameter is correctly specified to avoid saving files in unintended directories.
  • Use the filename parameter to create meaningful and descriptive filenames that make it easier to identify the saved prompts and images.
  • Utilize the time_format parameter to include timestamps in your filenames, which can help in organizing and sorting your saved files chronologically.
  • Adjust the quality parameter based on your needs; use a lower quality for smaller file sizes and higher quality for better image fidelity.

Save Prompt (WLSH) Common Errors and Solutions:

The path <specified_path> doesn't exist! Creating directory.

  • Explanation: This message indicates that the specified directory path does not exist and the node is creating it automatically.
  • Solution: No action is needed as the node handles the creation of the directory. Ensure that the specified path is correct.

Error: Invalid file extension

  • Explanation: This error occurs if the specified file extension is not supported.
  • Solution: Ensure that the extension parameter is set to a valid file format such as 'png' or 'jpg'.

Error: Failed to save images

  • Explanation: This error indicates that there was an issue in saving the images to the specified path.
  • Solution: Check the path parameter to ensure it is correct and that you have write permissions to the directory. Verify that the filename and extension parameters are correctly set.

Save Prompt (WLSH) Related Nodes

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