ComfyUI Node: UnTonemap

Class Name

UnTonemap

Category
image/filters
Author
spacepxl (Account age: 295days)
Extension
ComfyUI-Image-Filters
Latest Updated
2024-06-22
Github Stars
0.08K

How to Install ComfyUI-Image-Filters

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

UnTonemap Description

Reverse tonemapping process to restore images to original linear color space for accurate and consistent results.

UnTonemap:

The UnTonemap node is designed to reverse the tonemapping process applied to images, effectively restoring them to their original linear color space. This is particularly useful when you need to perform further image processing or analysis on images that have been tonemapped for display purposes. By converting the images back to their linear form, you can ensure that any subsequent operations are based on the true color values, leading to more accurate and consistent results. The node supports both sRGB and linear input modes and can output the images in either sRGB or linear format, providing flexibility depending on your workflow requirements.

UnTonemap Input Parameters:

images

This parameter accepts the input images that you want to untonemap. The images should be in a format that the node can process, typically a tensor of image data.

input_mode

This parameter specifies the color space of the input images. It can be set to either sRGB or linear. If the images are in sRGB format, they will be converted to linear color space before the untonemapping process. This ensures that the untonemapping is applied correctly based on the true color values of the images.

output_mode

This parameter determines the color space of the output images. It can be set to either linear or sRGB. After the untonemapping process, the images can be converted back to sRGB if needed for display purposes, or kept in linear format for further processing.

tonemap_scale

This parameter controls the scale used during the untonemapping process. It is a floating-point value with a default of 1, a minimum of 0.1, and a maximum of 10, with a step size of 0.01. Adjusting this scale can help fine-tune the untonemapping to match the original tonemapping scale applied to the images.

UnTonemap Output Parameters:

IMAGE

The output of the UnTonemap node is the processed image tensor. This tensor contains the images that have been converted back to their linear color space, with the option to be in either sRGB or linear format based on the output_mode parameter. These images are now ready for further processing or analysis with accurate color values.

UnTonemap Usage Tips:

  • When working with images that have been tonemapped for display, use the UnTonemap node to revert them to their original linear color space before performing any further image processing tasks.
  • Adjust the tonemap_scale parameter to match the scale used during the original tonemapping process for more accurate results.
  • Use the input_mode and output_mode parameters to ensure the images are in the correct color space for your specific workflow needs.

UnTonemap Common Errors and Solutions:

Error: Input images must be in a valid format

  • Explanation: This error occurs if the input images are not in a format that the node can process.
  • Solution: Ensure that the input images are provided as a tensor of image data.

Error: Invalid input_mode or output_mode value

  • Explanation: This error occurs if the input_mode or output_mode parameters are set to values other than sRGB or linear.
  • Solution: Verify that the input_mode and output_mode parameters are set to either sRGB or linear.

Error: Tonemap scale out of range

  • Explanation: This error occurs if the tonemap_scale parameter is set to a value outside the allowed range of 0.1 to 10.
  • Solution: Adjust the tonemap_scale parameter to a value within the range of 0.1 to 10.

UnTonemap Related Nodes

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