ComfyUI > Nodes > WWAA-CustomNodes > 🪠️ WWAA Prompt Writer

ComfyUI Node: 🪠️ WWAA Prompt Writer

Class Name

WWAA_PromptWriter

Category
🪠️WWAA
Author
hgabha (Account age: 503days)
Extension
WWAA-CustomNodes
Latest Updated
2025-05-11
Github Stars
0.02K

How to Install WWAA-CustomNodes

Install this extension via the ComfyUI Manager by searching for WWAA-CustomNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter WWAA-CustomNodes 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

🪠️ WWAA Prompt Writer Description

Automates image prompt preparation for LoRA training, streamlining dataset organization for machine learning tasks.

🪠️ WWAA Prompt Writer:

The WWAA_PromptWriter node is designed to streamline the process of preparing prompts for image-related tasks, particularly in the context of LoRA (Low-Rank Adaptation) training. This node takes prompts associated with images and formats them using the image filename, making it easier to organize and manage data for training purposes. By automating the prompt writing process, the WWAA_PromptWriter helps you efficiently prepare datasets for machine learning models, ensuring that each prompt is correctly linked to its corresponding image. This functionality is especially beneficial for artists and developers working with large datasets, as it reduces manual effort and minimizes the risk of errors in prompt-image associations.

🪠️ WWAA Prompt Writer Input Parameters:

prefix_text

The prefix_text parameter allows you to specify a string that will be added at the beginning of each prompt. This can be useful for adding consistent identifiers or tags to your prompts, which can help in categorizing or filtering them later. There is no explicit minimum or maximum value for this parameter, but it should be a string that makes sense in the context of your prompts. The default value is an empty string, meaning no prefix will be added unless specified.

text

The text parameter is the main body of the prompt that you want to associate with an image. This is a required field and should contain the core information or description that you wish to use for training or other purposes. The content of this parameter will be combined with the prefix_text to form the complete prompt. There are no specific constraints on the length or content of this text, but it should be meaningful and relevant to the image it is associated with.

full_path

The full_path parameter specifies the file path where the prompt will be written. This should be a valid path on your system where you have write permissions. The path can be either relative or absolute, depending on your setup. It is important to ensure that the directory exists and is accessible to avoid errors during the writing process.

overwrite

The overwrite parameter is a boolean flag that determines whether existing files should be overwritten. If set to True, any existing file at the specified full_path will be replaced with the new content. If set to False, the node will attempt to create a new file and will skip writing if a file already exists, preventing accidental data loss. The default value is False, prioritizing data safety.

🪠️ WWAA Prompt Writer Output Parameters:

log_output

The log_output parameter provides a detailed log of the actions performed by the node, including whether a prefix was added, the file write mode used, and the total number of characters written. This output is useful for debugging and verifying that the node has executed as expected. It can help you track the process and identify any issues that may have occurred during execution.

🪠️ WWAA Prompt Writer Usage Tips:

  • Ensure that the full_path parameter points to a valid directory where you have write permissions to avoid file access errors.
  • Use the prefix_text parameter to add consistent identifiers to your prompts, which can help in organizing and filtering them later.
  • Set the overwrite parameter to True only if you are sure that you want to replace existing files, as this action cannot be undone.

🪠️ WWAA Prompt Writer Common Errors and Solutions:

Error writing to file: [Error Message]

  • Explanation: This error occurs when there is an issue with writing the prompt to the specified file path. It could be due to insufficient permissions, an invalid path, or a file system error.
  • Solution: Check that the full_path is correct and that you have the necessary permissions to write to the directory. Ensure that the directory exists and is accessible. If the problem persists, try using a different path or checking your system's file permissions.

File [full_path] already exists. Skipping to prevent overwriting.

  • Explanation: This message indicates that a file already exists at the specified path, and the node is set to not overwrite existing files.
  • Solution: If you want to overwrite the file, set the overwrite parameter to True. Otherwise, choose a different file path or rename the existing file to avoid conflicts.

🪠️ WWAA Prompt Writer Related Nodes

Go back to the extension to check out more related nodes.
WWAA-CustomNodes
RunComfy
Copyright 2025 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.