ComfyUI > Nodes > ComfyUI-Image-Filters > Relight (Simple)

ComfyUI Node: Relight (Simple)

Class Name

RelightSimple

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

Relight (Simple) Description

Enhance images with simulated lighting effects using normal maps for artistic adjustments and depth.

Relight (Simple):

The RelightSimple node is designed to enhance your images by simulating different lighting conditions. This node takes an image and its corresponding normal map to apply a new lighting direction and brightness, creating a relit version of the original image. By adjusting the light direction and brightness, you can achieve various artistic effects, such as emphasizing certain features or creating dramatic shadows. This node is particularly useful for AI artists looking to add depth and realism to their images without manually editing each pixel.

Relight (Simple) Input Parameters:

image

This parameter represents the input image that you want to relight. It should be an image tensor that the node will process to apply the new lighting conditions.

normals

This parameter is the normal map corresponding to the input image. The normal map provides information about the surface orientation of the image, which is crucial for accurately simulating the lighting effects.

x_dir

This parameter controls the x-direction of the light source. It accepts a float value ranging from -1.5 to 1.5, with a default value of 0.0. Adjusting this value changes the horizontal direction of the light, affecting how shadows and highlights are cast on the image.

y_dir

This parameter controls the y-direction of the light source. It accepts a float value ranging from -1.5 to 1.5, with a default value of 0.0. Adjusting this value changes the vertical direction of the light, influencing the overall lighting effect on the image.

brightness

This parameter adjusts the brightness of the relit image. It accepts a float value ranging from 0.0 to 100, with a default value of 1.0. Increasing this value makes the image brighter, while decreasing it makes the image darker.

Relight (Simple) Output Parameters:

IMAGE

The output is the relit image, which is an image tensor that has been processed to reflect the new lighting conditions specified by the input parameters. This relit image will have enhanced lighting effects, making it appear more dynamic and realistic.

Relight (Simple) Usage Tips:

  • Experiment with different x_dir and y_dir values to find the optimal lighting direction that enhances the features of your image.
  • Use the brightness parameter to fine-tune the overall illumination of the image, ensuring that it matches the desired artistic effect.
  • Ensure that the normal map provided is accurate and corresponds to the input image for the best relighting results.

Relight (Simple) Common Errors and Solutions:

Batch size for image and normals must match

  • Explanation: This error occurs when the batch sizes of the input image and the normal map do not match.
  • Solution: Ensure that both the image and the normal map have the same batch size before passing them to the node.

Relight (Simple) 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.