ComfyUI  >  Nodes  >  ComfyUI Deploy >  Image Websocket Input (ComfyDeploy)

ComfyUI Node: Image Websocket Input (ComfyDeploy)

Class Name

ComfyDeployWebscoketImageInput

Category
None
Author
BennyKok (Account age: 2997 days)
Extension
ComfyUI Deploy
Latest Updated
6/19/2024
Github Stars
0.7K

How to Install ComfyUI Deploy

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

Image Websocket Input (ComfyDeploy) Description

Facilitates real-time image input via WebSocket for AI artists in ComfyUI framework, optimizing image handling.

Image Websocket Input (ComfyDeploy):

The ComfyDeployWebscoketImageInput node is designed to facilitate the seamless input of images via WebSocket connections within the ComfyUI framework. This node is particularly useful for AI artists who need to dynamically receive images from external sources in real-time, enabling a more interactive and responsive workflow. By leveraging WebSocket technology, this node ensures that images can be transmitted efficiently and with minimal latency, making it ideal for applications that require quick updates or real-time image processing. The node automatically handles image transformations, such as correcting the orientation and converting the image to a suitable format for further processing, ensuring that the received images are ready for immediate use in your AI art projects.

Image Websocket Input (ComfyDeploy) Input Parameters:

input_id

The input_id parameter is a unique identifier for the image input. It is used to match the incoming image data with the correct input slot within the WebSocket connection. This parameter ensures that the correct image is processed and returned by the node. There are no specific minimum or maximum values for this parameter, but it should be a valid identifier string.

seed

The seed parameter is used to ensure the reproducibility of the image processing results. By providing a specific seed value, you can guarantee that the same input will produce the same output every time, which is useful for debugging and consistency in your AI art projects. There are no specific minimum or maximum values for this parameter, but it should be a valid integer.

default_value

The default_value parameter is an optional parameter that provides a fallback image in case the specified input_id does not match any incoming image data. This ensures that the node can still function and produce an output even if the expected image is not received. The default value should be a valid image object.

client_id

The client_id parameter is used to identify the client that is sending the image data via the WebSocket connection. This is particularly useful in multi-client scenarios where images from different clients need to be processed separately. There are no specific minimum or maximum values for this parameter, but it should be a valid identifier string.

Image Websocket Input (ComfyDeploy) Output Parameters:

image

The image output parameter is the processed image that has been received via the WebSocket connection. This image is ready for further processing or use in your AI art projects. The node ensures that the image is correctly oriented, converted to RGB format, and normalized for use in AI models. The output is a tensor representation of the image, which can be directly fed into subsequent nodes or models.

Image Websocket Input (ComfyDeploy) Usage Tips:

  • Ensure that the input_id and client_id parameters are correctly set to match the incoming WebSocket data to avoid mismatches and ensure the correct image is processed.
  • Use the seed parameter to maintain consistency in your image processing results, especially when debugging or comparing different runs.
  • Provide a valid default_value to ensure that the node can still produce an output even if the expected image is not received, which can help maintain the flow of your AI art project.

Image Websocket Input (ComfyDeploy) Common Errors and Solutions:

Invalid image url provided.

  • Explanation: This error occurs when the input_id does not match any valid image URL or base64 encoded image data.
  • Solution: Ensure that the input_id is a valid URL or base64 encoded string that points to an image. Double-check the format and correctness of the input_id.

Returning default value

  • Explanation: This message indicates that the node could not find the specified input_id in the incoming WebSocket data and is returning the default_value instead.
  • Solution: Verify that the input_id and client_id parameters are correctly set and that the WebSocket connection is properly established and transmitting the expected image data.

Image Websocket Input (ComfyDeploy) Related Nodes

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