YC Live Load Images (Multi):
The YCLiveLoadImagesMulti node is designed to facilitate the dynamic loading and processing of multiple images within a node-based workflow. This node is particularly beneficial for AI artists who need to manage and manipulate batches of images efficiently. It allows for the immediate preview of images upon upload, providing a seamless experience in visualizing and selecting images for further processing. The node supports batch processing, enabling users to output aligned images and masks in a batch or as individual items. This functionality is crucial for tasks that require consistent image dimensions, as the node can align images based on specified criteria, such as the largest or smallest dimensions among the batch. By offering a streamlined approach to image handling, YCLiveLoadImagesMulti enhances productivity and ensures that images are ready for subsequent processing stages.
YC Live Load Images (Multi) Input Parameters:
images_json
This parameter accepts a JSON string that represents the list of images uploaded from the frontend. It is essential for the node to parse and understand which images need to be processed. The default value is an empty string, and it supports multiline input to accommodate complex JSON structures.
selected_index
This integer parameter specifies which image from the batch should be selected for individual processing. It ranges from -1 to 999, with a default value of -1, which indicates that the last image in the batch should be selected if no specific index is provided.
batch_start
This integer parameter defines the starting index for batch processing. It allows users to specify a subset of images to process from the batch. The range is from -1 to 999, with a default of -1, indicating that batch processing should start from the beginning of the list.
batch_end
Similar to batch_start, this integer parameter sets the ending index for batch processing. It helps in defining the range of images to be processed. The range is from -1 to 999, with a default of -1, meaning that processing should continue to the end of the list.
align_mode
This parameter determines how images should be aligned during processing. It offers three options: "first", "largest", and "smallest", with "largest" as the default. This setting is crucial for ensuring that all images in a batch have consistent dimensions, which is important for subsequent processing steps.
pad_color
This string parameter specifies the color used for padding images during alignment. It accepts a hexadecimal color code, with the default being "#000000" (black). This setting ensures that any additional space created during alignment is filled with a consistent color, maintaining visual coherence.
YC Live Load Images (Multi) Output Parameters:
images
This output parameter provides the batch of aligned images as a tensor. It is crucial for further processing steps that require images to have consistent dimensions and formats.
masks
This output parameter delivers the batch of masks corresponding to the aligned images. Masks are essential for tasks that involve image segmentation or selective processing.
image
This output parameter returns a single image tensor, selected based on the selected_index parameter. It is useful for scenarios where individual image processing is required.
mask
This output parameter provides the mask for the single selected image. It is important for tasks that require precise control over image regions.
meta_json
This output parameter contains a JSON string with metadata about the processed images. It is useful for tracking and managing image data throughout the workflow.
YC Live Load Images (Multi) Usage Tips:
- Ensure that the
images_jsonparameter is correctly formatted to avoid parsing errors and ensure smooth processing. - Use the
align_modeparameter to maintain consistent image dimensions across batches, which is crucial for tasks that require uniformity. - Adjust the
pad_colorto match the background or theme of your project, ensuring that padded areas blend seamlessly with the rest of the image.
YC Live Load Images (Multi) Common Errors and Solutions:
[ YC Live Load Images (Multi)] file not found: ``
- Explanation: This error occurs when the specified image file cannot be located at the given path.
- Solution: Verify that the file path is correct and that the file exists in the specified directory.
[ YC Live Load Images (Multi)] load fail : ``
: - Explanation: This error indicates a failure in loading the image, possibly due to file corruption or unsupported format.
- Solution: Check the integrity of the image file and ensure it is in a supported format (e.g., JPEG, PNG). Re-upload the image if necessary.
