🎛️ Latent Image Adjust:
The LatentImageAdjust node is designed to enhance and modify images directly within the latent space, offering a more efficient and integrated approach to image adjustments. This node allows you to apply various image enhancements such as hue, saturation, brightness, contrast, and sharpness adjustments, all within the latent space. By operating in this space, the node can achieve better performance and seamless integration with other processes in your workflow. The primary goal of this node is to provide you with the ability to fine-tune the visual characteristics of your images without the need to convert them back to the pixel space, thus maintaining the efficiency and quality of your image processing pipeline.
🎛️ Latent Image Adjust Input Parameters:
latent
The latent parameter represents the latent representation of the image that you want to adjust. This is the core input for the node, as all adjustments are applied directly to this latent data. It is crucial for maintaining the efficiency of the node's operations.
hue
The hue parameter allows you to adjust the color tone of the image in degrees. It ranges from -180.0 to 180.0, with a default value of 0.0. Adjusting the hue can change the overall color balance of the image, providing creative control over the image's color palette.
saturation
The saturation parameter controls the intensity of the colors in the image. It ranges from 0.0 to 3.0, with a default value of 1.0. Increasing saturation makes colors more vivid, while decreasing it can lead to a more muted or grayscale appearance.
brightness
The brightness parameter adjusts the overall lightness or darkness of the image. It ranges from -1.0 to 1.0, with a default value of 0.0. Positive values make the image brighter, while negative values darken it.
contrast
The contrast parameter modifies the difference between the light and dark areas of the image. It ranges from 0.0 to 3.0, with a default value of 1.0. Higher contrast values enhance the differences, making the image appear more dynamic, while lower values reduce these differences.
sharpness
The sharpness parameter affects the clarity of the image by enhancing or reducing the edges. It ranges from 0.0 to 3.0, with a default value of 1.0. Increasing sharpness makes edges more defined, while decreasing it results in a softer image.
device
The device parameter specifies the computational device to be used for processing. Options include "auto", "cpu", and "gpu". Selecting the appropriate device can optimize performance based on your hardware capabilities.
batch_size
The batch_size parameter determines the number of latent samples processed at once. It ranges from 0 to 1024, with a default value of 0, which means the entire batch is processed at once. Adjusting this can help manage memory usage and processing speed.
🎛️ Latent Image Adjust Output Parameters:
LATENT
The LATENT output parameter provides the adjusted latent representation of the image. This output retains the modifications applied through the node, such as changes in hue, saturation, brightness, contrast, and sharpness, allowing for further processing or conversion back to the pixel space if needed.
🎛️ Latent Image Adjust Usage Tips:
- To achieve subtle color adjustments, start with small changes in the
hueandsaturationparameters and gradually increase them to find the desired effect. - Use the
brightnessandcontrastparameters to enhance the overall mood of the image, making it appear more vibrant or subdued as needed. - Adjust the
sharpnessparameter to highlight details in the image, especially when working with textures or intricate patterns. - Select the
deviceparameter based on your hardware capabilities to optimize processing speed, especially when working with large batches or high-resolution images.
🎛️ Latent Image Adjust Common Errors and Solutions:
"CUDA out of memory"
- Explanation: This error occurs when the GPU does not have enough memory to process the current batch size.
- Solution: Reduce the
batch_sizeparameter to decrease memory usage or switch to the "cpu" device if GPU resources are limited.
"Invalid hue value"
- Explanation: The
hueparameter is set outside the allowed range of -180.0 to 180.0. - Solution: Ensure that the
huevalue is within the specified range to avoid this error.
"Invalid saturation value"
- Explanation: The
saturationparameter is set outside the allowed range of 0.0 to 3.0. - Solution: Adjust the
saturationvalue to fall within the valid range to prevent this error.
