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

ComfyUI Node: (deforum) Area Prompt

Class Name

DeforumAreaPromptNode

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) Area Prompt Description

Specify prompts for specific areas within frames at different keyframes for detailed control in AI art projects.

(deforum) Area Prompt:

The DeforumAreaPromptNode is designed to allow you to specify prompts for specific areas within a frame at different keyframes. This node is particularly useful for creating complex animations where different parts of the image need to be influenced by different prompts over time. By defining prompts for specific areas, you can achieve more detailed and localized control over the generated content, enhancing the creative possibilities for your AI art projects. The node ensures that these area-specific prompts are integrated seamlessly into the overall deforum data, making it easier to manage and edit your prompts as needed.

(deforum) Area Prompt Input Parameters:

keyframe

This parameter specifies the keyframe at which the area prompt should be applied. It determines the exact frame in the animation timeline where the prompt will take effect. The value should be an integer, with a minimum of 0 and a maximum of 8192, and the default value is 0.

mode

This parameter defines the mode of the area prompt. It can take one of the following options: "default", "percentage", or "strength". Each mode affects how the prompt influences the specified area, allowing for different types of control over the generated content.

prompt

This parameter is the text prompt that will be applied to the specified area. It is a string that can be multiline, allowing for detailed and complex prompts. The default value is an empty string, but it can be customized to fit the specific needs of your project.

width

This parameter specifies the width of the area where the prompt will be applied. It is an integer value with a minimum of 64 and a maximum defined by the maximum resolution of your project. The default value is 64, and it should be adjusted based on the size of the area you want to influence.

height

This parameter specifies the height of the area where the prompt will be applied. Similar to the width parameter, it is an integer value with a minimum of 64 and a maximum defined by the maximum resolution of your project. The default value is 64, and it should be adjusted based on the size of the area you want to influence.

x

This parameter defines the x-coordinate of the top-left corner of the area where the prompt will be applied. It is an integer value with a minimum of 0 and a maximum defined by the maximum resolution of your project. The default value is 0, and it should be adjusted to position the area correctly within the frame.

y

This parameter defines the y-coordinate of the top-left corner of the area where the prompt will be applied. It is an integer value with a minimum of 0 and a maximum defined by the maximum resolution of your project. The default value is 0, and it should be adjusted to position the area correctly within the frame.

strength

This parameter specifies the strength of the prompt's influence on the specified area. It is a float value with a minimum of 0.0 and a maximum of 10.0, with a default value of 1.0. Adjusting this value allows you to control how strongly the prompt affects the area, providing finer control over the generated content.

deforum_data

This optional parameter allows you to pass existing deforum data to the node. It is useful for integrating the area prompt into an existing set of prompts and data, ensuring seamless management and editing of your prompts.

(deforum) Area Prompt Output Parameters:

deforum_data

The output parameter is a dictionary containing the updated deforum data with the specified area prompts integrated. This data structure includes all the prompts and their associated keyframes and areas, making it easy to manage and edit your prompts as needed. The output ensures that the area-specific prompts are correctly applied and can be used in subsequent nodes or processes.

(deforum) Area Prompt Usage Tips:

  • Use the keyframe parameter to precisely control when each area prompt takes effect in your animation timeline.
  • Adjust the width and height parameters to define the exact size of the area you want to influence with your prompt.
  • Experiment with the strength parameter to find the right balance of influence for your prompts, ensuring they have the desired impact on the specified areas.
  • Utilize the deforum_data parameter to integrate new area prompts into existing deforum data, maintaining a cohesive and manageable set of prompts.

(deforum) Area Prompt Common Errors and Solutions:

"Invalid keyframe value"

  • Explanation: The keyframe value provided is outside the acceptable range.
  • Solution: Ensure the keyframe value is an integer between 0 and 8192.

"Invalid width or height value"

  • Explanation: The width or height value provided is outside the acceptable range.
  • Solution: Ensure the width and height values are integers between 64 and the maximum resolution of your project.

"Invalid x or y coordinate"

  • Explanation: The x or y coordinate provided is outside the acceptable range.
  • Solution: Ensure the x and y coordinates are integers between 0 and the maximum resolution of your project.

"Invalid strength value"

  • Explanation: The strength value provided is outside the acceptable range.
  • Solution: Ensure the strength value is a float between 0.0 and 10.0.

"Missing or invalid prompt"

  • Explanation: The prompt text is missing or not formatted correctly.
  • Solution: Ensure the prompt is a non-empty string and properly formatted for the intended use.

(deforum) Area 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.