Skip to content

SuperBeastsAI/ComfyUI-SuperBeasts

Repository files navigation

SuperBeastsAI Nodes

This repository contains custom nodes for ComfyUI created and used by SuperBeasts.AI (@SuperBeasts.AI on Instagram)

Updates

  • 30/04/24: -- Updated readme with documentation -- Added Deflicker and PixelDeflicker nodes for reducing flickering artifacts in image sequences. -- Introduced CrossFadeImageBatches node for smooth cross-fade transitions between image batches -- Enhanced ImageBatchManagement and MaskBatchManagement nodes with resizing, cropping, and reordering capabilities
  • 27/03/24: Released and also pushed an update to resolve batched images for videos etc

Image Effects

HDR Effects (SuperBeasts.AI)

The HDR Effects is an image processing application that enhances the dynamic range and visual appeal of input images. It provides a set of adjustable parameters to fine-tune the HDR effect according to user preferences.

Features

  • Adjusts the intensity of shadows, highlights, and overall HDR effect
  • Applies gamma correction to control the overall brightness and contrast
  • Enhances contrast and color saturation for more vibrant results
  • Preserves color accuracy by processing the image in the LAB color space
  • Utilizes luminance-based masks for targeted adjustments
  • Blends the adjusted luminance with the original luminance for a balanced effect

Examples

Example 1

Example 2

Parameter details

The application provides the following adjustable parameters:

  • hdr_intensity (default: 0.5, range: 0.0 to 5.0, step: 0.01):

    • Controls the overall intensity of the HDR effect
    • Higher values result in a more pronounced HDR effect
  • shadow_intensity (default: 0.25, range: 0.0 to 1.0, step: 0.01):

    • Adjusts the intensity of shadows in the image
    • Higher values darken the shadows and increase contrast
  • highlight_intensity (default: 0.75, range: 0.0 to 1.0, step: 0.01):

    • Adjusts the intensity of highlights in the image
    • Higher values brighten the highlights and increase contrast
  • gamma_intensity (default: 0.25, range: 0.0 to 1.0, step: 0.01):

    • Controls the gamma correction applied to the image
    • Higher values increase the overall brightness and contrast
  • contrast (default: 0.1, range: 0.0 to 1.0, step: 0.01):

    • Enhances the contrast of the image
    • Higher values result in more pronounced contrast
  • enhance_color (default: 0.25, range: 0.0 to 1.0, step: 0.01):

    • Enhances the color saturation of the image
    • Higher values result in more vibrant colors

Image & Mask Batch Management

Keep your image and masks sized, cropped and ordered how ever you like without having to recreate the masks or mess with connections. Note the resizing capability doesn't provide any settings, we simply crop and resize to maximise the image size with your provided width/height.

Batch Management

ImageBatchManagement

The ImageBatchManagement node provides functionality to resize, crop, and reorder a batch of images. It ensures that all images in the batch have the same specified dimensions.

Features

  • Resizes and crops images to the specified width and height
  • Allows reordering the images in the batch based on a provided order
  • Supports unlimited input images

MaskBatchManagement

The MaskBatchManagement node is similar to the ImageBatchManagement node but works with mask inputs. It resizes, crops, and reorders a batch of masks to match the specified dimensions.

Features

  • Resizes and crops masks to the specified width and height
  • Allows reordering the masks in the batch based on a provided order
  • Supports unlimited input masks

Experimental: Video tools

Deflicker

The Deflicker node is designed to reduce flickering artifacts in a sequence of images. It adjusts the brightness of each frame based on the average brightness of its surrounding context frames.

Features

  • Adjusts brightness of each frame based on the context frames
  • Applies noise reduction and gradient smoothing to the adjusted images
  • Blends the adjusted images with the original images using adaptive blending strength
  • Supports batch processing for efficient computation

PixelDeflicker

The PixelDeflicker node reduces flickering artifacts in a sequence of images by applying temporal smoothing at the pixel level. It blends the smoothed frames with the original frames to achieve a more stable output.

Features

  • Applies temporal smoothing to reduce flickering
  • Blends the smoothed frames with the original frames
  • Supports batch processing for efficient computation

Deprecated / Removed

MakeResizedMaskBatch (Deprecated please use MaskBatchManagement)

The MakeResizedMaskBatch node creates a batch of masks from multiple individual masks or batches. It resizes and crops the input masks to match the specified width and height.

Cross Fade Image Batches (SuperBeasts.AI)

There is another preexisting node that does this and more so I've removed this function.