Visit ComfyUI Online for ready-to-use ComfyUI environment
Simulate color space transformations, adjust profiles, gamma, contrast for enhanced image manipulation.
The ColorSpaceSim node is designed to simulate various color space transformations and adjustments, providing a powerful tool for AI artists to manipulate and enhance images. This node allows you to apply different color profiles, simulate camera encoding, and adjust gamma and contrast, among other features. By leveraging these capabilities, you can achieve a wide range of visual effects and ensure that your images are accurately represented across different display devices. The node's primary goal is to offer a flexible and comprehensive solution for color space simulation, making it an essential component for anyone looking to refine their digital artwork with precision and creativity.
The image parameter expects a tensor representing the image you wish to process. It should have a shape of (1, H, W, 3), where H and W are the height and width of the image, and 3 represents the RGB color channels. This parameter is crucial as it serves as the input for all subsequent color transformations and adjustments.
The target_profile parameter allows you to select the desired color profile for the simulation. Options include "Sony S-Log3", "Arri LogC", and "Canon C-Log". This choice determines the specific color transformation curve applied to the image, affecting its tonal range and color representation.
The simulate_camera_encode parameter is a boolean that, when enabled, simulates the encoding process of a camera. This is particularly useful when the target profile is not "Rec.709", as it converts the image from sRGB to a linear color space, preparing it for further transformations.
The enable_gamma parameter is a boolean that, when activated, applies gamma correction to the image. This adjustment can enhance the image's brightness and contrast, making it appear more natural to the human eye.
The gamma_value parameter specifies the gamma correction value to be applied if enable_gamma is true. A typical default value is 2.2, but it can be adjusted to achieve the desired visual effect.
The enable_lut parameter is a boolean that, when enabled, applies a Look-Up Table (LUT) to the image. This can dramatically alter the image's color grading, providing a quick way to achieve specific aesthetic looks.
The lut_name parameter specifies the name of the LUT to be applied if enable_lut is true. The LUT must be preloaded and available in the node's LUT map for successful application.
The profile_strength parameter controls the intensity of the applied color profile transformation. It ranges from 0 to 1, where 0 means no transformation and 1 means full application of the selected profile.
The enable_tone_map parameter is a boolean that, when enabled, applies a simple tone mapping function to the image. This can help in compressing the dynamic range, making the image more visually appealing.
The contrast_boost parameter allows you to increase or decrease the image's contrast. A value of 1.0 means no change, while values greater than 1.0 increase contrast, and values less than 1.0 decrease it.
The final output parameter is a tensor representing the processed image after all selected transformations and adjustments have been applied. It retains the original shape of (1, H, W, 3) and provides a visually enhanced version of the input image, ready for further use or display.
LUT_3D_SIZE specification.LUT_3D_SIZE line. If not, use a different LUT file that meets the requirements.RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.