comfyui-deploy
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
Available Nodes
ComfyUIDeployExternalImageBatch
ComfyUIDeployExternalImageBatch Node Documentation
Overview
The ComfyUIDeployExternalImageBatch node is part of the Comfy Deploy platform, which provides an infrastructure for deploying generative workflows. This node is specifically designed to handle image data input for ComfyUI, allowing users to fetch, process, and batch images from various sources including URLs and base64 encoded formats.
Functionality
This node enables the user to input multiple images either through URLs or directly provided in base64 format, processes these images, and outputs a batch of processed image tensors. This processed batch of images can then be utilized in various ComfyUI workflows as required.
Inputs
The node accepts the following inputs:
Required Inputs
- input_id: A string that uniquely identifies the input, typically used to specify the source of images.
- images: A string representing a list of images. This should be a JSON array containing URLs or base64 encoded image data.
Optional Inputs
- default_value: An image tensor that acts as a fallback in case no valid images are provided in the input list.
- display_name: A string to provide a custom name for the node's display purposes.
- description: A string that allows multiline text input for describing the node's functionality or any additional notes.
Outputs
The node produces the following output:
- image: A tensor representing a batch of processed images. This batch includes images fetched and processed from the given input list. The images are converted into a format suitable for further processing within ComfyUI workflows.
Usage in ComfyUI Workflows
The ComfyUIDeployExternalImageBatch node is useful in scenarios where multiple images need to be processed simultaneously. Some potential use cases include:
-
Batch Image Processing: With this node, you can efficiently handle a batch of images, which is particularly useful in scenarios that require uniform processing across multiple images.
-
Remote Image Handling: Fetching images from external sources, such as URLs or cloud storage, and processing them inline within ComfyUI can simplify workflows that involve dynamic image data.
-
Base64 Decoding: This node supports base64 encoded image inputs, making it versatile for applications where images are transmitted or stored in encoded formats.
Special Features and Considerations
-
Dynamic Sourcing: The node supports fetching images from external URLs, which may involve downloading and handling network-based image data.
-
Batch Consistency: Images in the batch are processed to have consistent shapes, ensuring compatibility with subsequent workflow parts. Images are resized if necessary to match the dimensions of the first image in the batch.
-
Error Handling: While the node attempts to process all provided images, any errors encountered during processing (e.g., invalid URLs, malformed base64 data) will result in excluding those specific images from the batch. Default values can be used in such cases, if provided.
-
Seamless Integration: Being part of the Comfy Deploy platform, this node integrates smoothly with other nodes and functionalities, providing an essential building block for complex generative workflows.
By leveraging the ComfyUIDeployExternalImageBatch node, users can efficiently manage image inputs and outputs, enabling a cohesive and streamlined workflow experience in ComfyUI.