ComfyUI  >  Nodes  >  Deforum Nodes >  (deforum) Unformatted Prompt

ComfyUI Node: (deforum) Unformatted Prompt

Class Name

DeforumUnformattedPromptNode

Category
deforum/prompt
Author
deforum (Account age: 2606 days)
Extension
Deforum Nodes
Latest Updated
6/25/2024
Github Stars
0.1K

How to Install Deforum Nodes

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

(deforum) Unformatted Prompt Description

Transform unformatted text prompts into structured keyframes for animation projects.

(deforum) Unformatted Prompt:

The DeforumUnformattedPromptNode is designed to help you transform a series of unformatted text prompts into a structured format that can be used in animation or other sequential art projects. This node takes a block of text where each line represents a different prompt and assigns each line to a specific keyframe based on a defined interval. This allows you to easily manage and organize your prompts for use in various stages of your project, ensuring that each keyframe has the appropriate prompt associated with it. The node is particularly useful for creating animations where different prompts need to be applied at different times, providing a streamlined way to handle complex sequences of prompts.

(deforum) Unformatted Prompt Input Parameters:

unformatted_prompts

This parameter accepts a block of text where each line represents a different prompt. The prompts are split by newline characters and assigned to keyframes based on the keyframe_interval. This allows you to input multiple prompts in a simple, unformatted manner. The unformatted_prompts parameter is a string that can be multiline, making it easy to input and manage multiple prompts at once.

keyframe_interval

The keyframe_interval parameter defines the interval at which each prompt will be assigned to a keyframe. For example, if the interval is set to 50, the first prompt will be assigned to keyframe 0, the second to keyframe 50, the third to keyframe 100, and so on. This parameter is an integer with a default value of 50, a minimum value of 1, and a maximum value of 8192. Adjusting this interval allows you to control the spacing between prompts in your animation or sequence.

deforum_data (optional)

The deforum_data parameter is an optional input that allows you to pass existing deforum data into the node. If provided, the node will append the newly formatted prompts to this existing data. This parameter is useful for integrating the node into larger workflows where deforum data is being passed between multiple nodes.

(deforum) Unformatted Prompt Output Parameters:

deforum_data

The output parameter deforum_data is a dictionary that contains the formatted prompts. Each key in the dictionary represents a keyframe, and the corresponding value is the prompt assigned to that keyframe. This structured format makes it easy to use the prompts in subsequent nodes or processes, ensuring that each keyframe has the correct prompt associated with it.

(deforum) Unformatted Prompt Usage Tips:

  • Use the unformatted_prompts parameter to quickly input multiple prompts without worrying about formatting. The node will handle the formatting for you.
  • Adjust the keyframe_interval to control the spacing between prompts in your animation. A smaller interval will result in more frequent changes, while a larger interval will space the prompts further apart.
  • If you have existing deforum data, use the optional deforum_data parameter to integrate the new prompts seamlessly into your existing workflow.

(deforum) Unformatted Prompt Common Errors and Solutions:

"Invalid keyframe interval"

  • Explanation: The keyframe_interval parameter must be an integer between 1 and 8192. - Solution: Ensure that the value you input for keyframe_interval is within the valid range.

"Unformatted prompts not provided"

  • Explanation: The unformatted_prompts parameter is required and cannot be empty.
  • Solution: Make sure to input a block of text with each line representing a different prompt.

"Error in deforum_data format"

  • Explanation: The optional deforum_data parameter must be a dictionary if provided.
  • Solution: Ensure that the deforum_data you pass into the node is correctly formatted as a dictionary.

(deforum) Unformatted Prompt Related Nodes

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