ComfyUI  >  Nodes  >  ComfyUI-post-processing-nodes >  FilmGrain

ComfyUI Node: FilmGrain

Class Name

FilmGrain

Category
postprocessing/Effects
Author
EllangoK (Account age: 2833 days)
Extension
ComfyUI-post-processing-nodes
Latest Updated
8/9/2024
Github Stars
0.2K

How to Install ComfyUI-post-processing-nodes

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

FilmGrain Description

Add realistic film grain effect to images with adjustable intensity, scale, temperature, and vignette for vintage aesthetic enhancement.

FilmGrain:

The FilmGrain node is designed to add a realistic film grain effect to your images, enhancing their visual texture and depth. This effect mimics the graininess seen in traditional film photography, providing a nostalgic and artistic touch to digital images. By incorporating Perlin noise, the node generates a natural-looking grain pattern that can be adjusted in terms of intensity, scale, temperature, and vignette. These adjustments allow you to fine-tune the grain effect to match your creative vision, whether you aim for a subtle enhancement or a pronounced artistic statement. The FilmGrain node is particularly useful for adding character and a vintage feel to your images, making them stand out with a unique aesthetic.

FilmGrain Input Parameters:

image

This parameter expects an image input in the form of a tensor. The image serves as the base onto which the film grain effect will be applied. The quality and resolution of the input image will directly influence the final output.

intensity

The intensity parameter controls the strength of the grain effect applied to the image. A higher intensity value results in a more pronounced grain effect, while a lower value produces a subtler effect. The intensity can be adjusted between 0.0 and 1.0, with a default value of 0.2. This allows for fine-tuning the graininess to achieve the desired visual impact.

scale

The scale parameter determines the size of the grain particles. A lower scale value results in finer grain, while a higher value produces larger grain particles. The scale can be adjusted between 1 and 100, with a default value of 10. This parameter helps in achieving the right balance between grain size and image detail.

temperature

The temperature parameter adjusts the color temperature of the image, adding a warm or cool tint to the grain effect. Positive values increase the warmth (reddish tint), while negative values add a cool (bluish tint) effect. The temperature can be adjusted between -100 and 100, with a default value of 0. This allows for creative color grading alongside the grain effect.

vignette

The vignette parameter controls the strength of the vignette effect, which darkens the edges of the image to draw attention to the center. A higher vignette value results in a stronger darkening effect, while a lower value produces a subtler vignette. The vignette can be adjusted between 0.0 and 10.0, with a default value of 0.0. This parameter helps in adding a classic photographic effect to the image.

FilmGrain Output Parameters:

IMAGE

The output is an image tensor with the film grain effect applied. This output retains the original dimensions and color information of the input image but with the added grain, temperature, and vignette effects. The resulting image has a textured, artistic look that enhances its visual appeal.

FilmGrain Usage Tips:

  • Experiment with the intensity and scale parameters to find the perfect balance of graininess for your image. Higher intensity and lower scale values can create a more dramatic effect.
  • Use the temperature parameter to add a creative color tint to your image. This can help in setting the mood or enhancing the overall aesthetic.
  • Apply a subtle vignette effect to draw attention to the center of the image, especially useful for portraits or focal point compositions.
  • Combine the FilmGrain node with other post-processing effects to create a unique and cohesive look for your images.

FilmGrain Common Errors and Solutions:

Image tensor shape mismatch

  • Explanation: This error occurs when the input image tensor does not have the expected shape (batch_size, height, width, channels).
  • Solution: Ensure that your input image tensor is correctly shaped and includes the batch dimension, even if it is a single image.

Invalid intensity value

  • Explanation: This error occurs when the intensity value is outside the allowed range (0.0 to 1.0).
  • Solution: Adjust the intensity parameter to be within the valid range.

Invalid scale value

  • Explanation: This error occurs when the scale value is outside the allowed range (1 to 100).
  • Solution: Adjust the scale parameter to be within the valid range.

Invalid temperature value

  • Explanation: This error occurs when the temperature value is outside the allowed range (-100 to 100).
  • Solution: Adjust the temperature parameter to be within the valid range.

Invalid vignette value

  • Explanation: This error occurs when the vignette value is outside the allowed range (0.0 to 10.0).
  • Solution: Adjust the vignette parameter to be within the valid range.

FilmGrain Related Nodes

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