← 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

ComfyDeployWebscoketImageInput

ComfyDeployWebsocketImageInput Node Documentation

Overview

The ComfyDeployWebsocketImageInput node is a specialized component of the ComfyUI deployment platform, ComfyDeploy. It is designed to facilitate the retrieval of images through a websocket connection, integrating seamlessly within the ComfyUI workflow environment. This node provides a dynamic method to input images into the workflow, allowing for flexible, real-time image processing.

Functionality

What This Node Does

The ComfyDeployWebsocketImageInput node accepts image data streamed via websocket connections. It checks for images associated with a specific client and input identifier. If a valid image is present, it returns this image for processing within the ComfyUI workflow. If no image is available, it defaults to returning a pre-specified image.

Key Features

  • Websocket Integration: Leveraging websocket functionality, the node enables real-time image input, which is crucial for workflows needing instant updates from different sources.
  • Dynamic Input Handling: Automatically retrieves and processes input data based on unique identifiers.
  • Graceful Fallback: Provides a default image if the specified input is not available.

Inputs

The ComfyDeployWebsocketImageInput node accepts the following inputs:

  • Required Inputs:

    • input_id: A string identifier used to locate the specific image within the websocket stream. This ID is crucial for distinguishing between multiple input streams or requests.
    • seed: An integer value that can be utilized for any seeding operations required within the workflow. Typically used for processes that require randomness or reproducibility.
  • Optional Inputs:

    • default_value: An image that serves as a fallback when no appropriate image is retrieved via websocket.
    • client_id: A string identifying the specific client requesting the image, which helps in handling data from multiple clients concurrently.

Outputs

The node produces the following output:

  • Output Type:
    • images: An image in the format compatible with further processing in ComfyUI workflows. It outputs the fetched image if available; otherwise, it offers the default image specified.

Use in ComfyUI Workflows

The ComfyDeployWebsocketImageInput node is versatile and can be integrated into various ComfyUI workflows involving:

  • Real-Time Image Processing: Ideal for scenarios where live updates to image data are required, such as surveillance systems, live video feeds, and dynamic graphic generation.
  • Versioned Image Handling: By managing different input streams with unique IDs, the node can help facilitate version-controlled workflows, where different iterations of a process need distinct image inputs.
  • Distributed Processing: Useful in distributed systems where images might come from remote machines or various users interconnected via a websocket network.

Special Considerations

When using this node, consider the following aspects:

  • Identifier Validation: Ensure that input_id and client_id are correctly specified and adhere to the constraints, such as ASCII encoding for input_id.
  • Resource Management: Manage the lifecycle and state of images to prevent any resource bottlenecks or memory issues, particularly when handling high-frequency websocket inputs.
  • Network Dependence: As the functionality relies on websocket connections, ensure that the network connectivity is stable and sufficient for the expected data volumes.

In essence, the ComfyDeployWebsocketImageInput node is designed to add flexibility and real-time capability to image processing tasks within ComfyDeploy and ComfyUI, making it a valuable tool for developers and operators working in dynamic visual environments.