← See All Custom Node Packs

comfyui-deploy

1517
By BennyKok
Updated 7 months ago
View on GitHub →See Common Issues →

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
Get Started

ComfyUIDeployExternalEXR

ComfyUIDeployExternalEXR Node Documentation

Overview

The ComfyUIDeployExternalEXR node is part of the ComfyUI Deployment platform, designed to handle and process EXR image files within the ComfyUI environment. This node is particularly useful for workflows that involve high dynamic range images, often requiring specific tonemapping adjustments.

Functionality

The primary purpose of the ComfyUIDeployExternalEXR node is to load EXR files from either a local source or a URL, apply tonemapping as needed, and output both an image and a mask. This node supports various tonemapping techniques and handles both single-channel and multi-channel EXR images, facilitating their integration into broader ComfyUI workflows.

Inputs

The ComfyUIDeployExternalEXR node accepts the following inputs:

  • Input ID: A unique identifier for the input string, which specifies the location of the EXR file. This can be either a local file path or a URL. If a URL is provided, the node retrieves the file directly from the internet.

  • EXR File: The file path or URL to the EXR file. This is the primary input where the node will source the EXR image to be processed.

  • Tonemap: This input specifies the tonemapping technique applied to the EXR image. Options include:

    • linear: Applies no tonemapping, retaining the linear light values.
    • sRGB: Converts linear light values to the standard RGB color space.
    • Reinhard: Performs a more complex tone mapping operation using the Reinhard tone mapping algorithm.
  • Default Image (Optional): A fallback image to use if no EXR input is provided or an error occurs during processing.

  • Default Mask (Optional): A fallback mask to use if no EXR input is provided or an error occurs during processing.

  • Display Name (Optional): An optional display name for the EXR input, useful for documentation or clarity within complex workflows.

  • Description (Optional): An optional description for the EXR input, offering further insights into the intended use or context for this node in the workflow.

Outputs

The ComfyUIDeployExternalEXR node produces two types of outputs:

  • Image: The processed EXR image, converted and adjusted based on the selected tonemap option. This image is ready to be used in further stages of the ComfyUI workflow.

  • Mask: A corresponding mask extracted from the alpha channel of the EXR file, if it exists. Masks are crucial for workflows involving compositing or selective processing.

Usage in ComfyUI Workflows

The ComfyUIDeployExternalEXR node is particularly useful in workflows requiring high dynamic range imagery where specific lighting and tonemapping adjustments are needed. Typically, it can be used in:

  • Visual Effects and Compositing: Loading of EXR images with HDR data for integration into visual effects pipelines.

  • 3D Rendering Pipelines: Conversion of rendered EXR files for previewing and post-processing.

  • Scientific and Medical Imaging: Handling specialized EXR files for research and analytical purposes.

This node simplifies the input of HDR images and their conversion into a usable format within ComfyUI, making it easier to manage high fidelity image workflows.

Special Features or Considerations

  • Flexible Input Handling: The node can read EXR files from both URLs and local files, offering flexible workflow integration options.

  • Tonemapping Options: Offers multiple pre-configured tonemapping options to suit different workflow requirements and output needs.

  • Error Handling: In situations where file retrieval or processing encounters issues, the node can fall back on provided default images and masks to maintain workflow continuity.

  • Mask Creation: If an EXR file contains an alpha channel, it is automatically converted into a functional mask, streamlining processes that require selective image manipulation.

Overall, the ComfyUIDeployExternalEXR node provides versatile functionality for managing complex image data within the ComfyUI platform, making it an essential tool for advanced image processing workflows.