ComfyUI  >  Nodes  >  Deforum Nodes >  (deforum) Prompt

ComfyUI Node: (deforum) Prompt

Class Name

DeforumPromptNode

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

Facilitates prompt creation and management for AI-generated art in Deforum, streamlining input parsing and formatting for dynamic art sequences.

(deforum) Prompt:

The DeforumPromptNode is designed to facilitate the creation and management of prompts for AI-generated art within the Deforum framework. This node allows you to input a series of prompts, which are then parsed and formatted into a structured dictionary. This functionality is particularly useful for artists who want to automate the generation of art based on specific prompts at different keyframes. By converting a simple string input into a more complex data structure, the DeforumPromptNode streamlines the process of managing multiple prompts, making it easier to create intricate and dynamic art sequences.

(deforum) Prompt Input Parameters:

prompts

The prompts parameter is a multiline string input where you can specify your prompts along with their corresponding keyframes. Each line should follow the format keyframe:'prompt', where keyframe is an integer representing the frame number and prompt is the text prompt to be used at that frame. This parameter allows you to define multiple prompts at different keyframes, enabling the creation of dynamic and evolving art sequences. The default value is 0:'Cat Sushi', and it does not require forced input.

deforum_data

The deforum_data parameter is optional and accepts a pre-existing data structure of type deforum_data. This parameter allows you to pass in previously formatted prompt data, which can be useful for editing or appending to existing prompts. If provided, the node will integrate the new prompts with the existing data, ensuring a seamless update to your prompt sequence.

(deforum) Prompt Output Parameters:

deforum_data

The deforum_data output parameter is a dictionary that contains the formatted prompts. This dictionary maps keyframes to their corresponding prompts, making it easy to manage and reference the prompts throughout the art generation process. The output is crucial for downstream nodes that require structured prompt data to generate art based on the specified keyframes and prompts.

(deforum) Prompt Usage Tips:

  • Ensure that each line in the prompts input follows the correct format keyframe:'prompt' to avoid parsing errors.
  • Use the deforum_data parameter to edit or append to existing prompt sequences, allowing for more flexible and iterative art creation.
  • Start with simple prompts and gradually add more complexity to see how different prompts affect the generated art at various keyframes.

(deforum) Prompt Common Errors and Solutions:

"ValueError: not enough values to unpack (expected 2, got 1)"

  • Explanation: This error occurs when a line in the prompts input does not follow the correct format keyframe:'prompt'.
  • Solution: Ensure that each line in the prompts input is correctly formatted with a keyframe and a prompt separated by a colon.

"TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'"

  • Explanation: This error occurs when the keyframe value is missing or not properly specified in the prompts input.
  • Solution: Verify that each keyframe is an integer and is correctly specified in the prompts input.

"AttributeError: 'NoneType' object has no attribute 'items'"

  • Explanation: This error occurs when the deforum_data parameter is provided but does not contain the expected structure.
  • Solution: Ensure that the deforum_data parameter, if provided, contains a valid dictionary structure with the key prompts.

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