← See All Custom Node Packs

comfyui-deploy

1517
By BennyKok
Updated 7 months ago
View on GitHub →See Common Issues →

Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

ComfyUIDeployExternalNumber

ComfyUIDeployExternalNumber Node Documentation

Overview

The ComfyUIDeployExternalNumber node is a part of the ComfyUI Deploy platform, which integrates generative workflows with serverless and hosted GPU environments. This node is primarily used for deploying numerical values as external inputs into a workflow. It is useful in scenarios where dynamic or external data needs to be injected into workflows managed by the ComfyUI platform.

Functionality

What This Node Does

The ComfyUIDeployExternalNumber node allows users to introduce a numerical value into their workflow environment. This node can either take a value from its inputs or fall back on a specified default value if the input is not a valid float.

How It Might Be Used in ComfyUI Workflows

This node can be utilized in various ways within ComfyUI workflows, such as:

  • Testing and Debugging: Inject a consistent number to test and debug workflow variations.
  • Dynamic Input Handling: Accept numbers from external sources or user input to influence workflow operations.
  • Configuration and Parameterization: Use it to configure or parameterize other parts of the workflow where numerical input is required.

Input Specifications

The ComfyUIDeployExternalNumber node accepts both required and optional inputs. It offers flexibility with a primary focus on the external input of numbers.

Required Inputs

  • Input ID (input_id): A string that identifies the input source or label. It must represent a number as a string. The default value is set to "input_number".

Optional Inputs

  • Default Value (default_value): A float configured to provide a fallback value if the primary input cannot be converted to a float. It has a default of 0 and can range between -2,147,483,647 and 2,147,483,647 with a step of 0.01.
  • Display Name (display_name): A string for the display name, providing a user-friendly identifier for the node.
  • Description (description): A textual description of the node, offering more details about its usage in the workflow.

Output Specification

  • Output Type: The primary output of this node is a float.
  • Output Name: The output is named value.

The node processes the input and attempts to convert it into a floating-point number. If the conversion fails (due to non-numeric input), it returns the specified default_value.

Special Features and Considerations

  • Input Validation: The node includes basic input validation to convert the input_id to a float. If it fails, the default_value is used, ensuring workflow stability.
  • Workflow Flexibility: By accepting dynamic external numbers, this node enhances the adaptability and robustness of ComfyUI workflows, making it easier to manage versions and handle various numeric inputs.
  • User Customization: The optional parameters display_name and description allow users to customize how the node appears in their workflow, facilitating better organization and documentation of workflow components.

In summary, the ComfyUIDeployExternalNumber node is a powerful addition to the ComfyUI suite, enabling users to dynamically integrate numerical data into their workflows, enhancing flexibility and operational efficiency.