ComfyUI > Nodes > DJZ-Nodes > Wavelet Decomposition

ComfyUI Node: Wavelet Decomposition

Class Name

WaveletDecompose

Category
image/processing
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

Install this extension via the ComfyUI Manager by searching for DJZ-Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter DJZ-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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Wavelet Decomposition Description

Perform wavelet decomposition on images for detailed analysis and manipulation of image features.

Wavelet Decomposition:

WaveletDecompose is a custom node designed for the ComfyUI framework, specifically tailored to perform wavelet decomposition on images. This node is instrumental in breaking down an image into multiple scales of detail, allowing for a nuanced analysis and manipulation of image features. By applying wavelet decomposition, the node extracts detail scales while ensuring that the original image can be reconstructed accurately. This process is particularly beneficial for tasks that require detailed image analysis, such as texture synthesis, image compression, and feature extraction. The node leverages Gaussian blurring techniques to separate image details at various scales, providing a comprehensive visualization of the image's structure. This capability is essential for AI artists and developers who wish to explore and manipulate the intricate details of images in a controlled and reversible manner.

Wavelet Decomposition Input Parameters:

image

The image parameter is the primary input for the WaveletDecompose node, representing the image that will undergo wavelet decomposition. This parameter is crucial as it serves as the basis for all subsequent processing and analysis. The image should be provided in a format compatible with the node, typically as a tensor, to ensure accurate decomposition and visualization of detail scales.

scales

The scales parameter determines the number of detail scales to be extracted from the image during the decomposition process. It directly influences the granularity of the decomposition, with higher values resulting in more detailed analysis. The parameter accepts integer values, with a default of 5, a minimum of 1, and a maximum of 10. Adjusting this parameter allows you to control the depth of detail captured, making it a powerful tool for customizing the decomposition to suit specific artistic or analytical needs.

Wavelet Decomposition Output Parameters:

residual

The residual output represents the low-frequency component of the image, essentially capturing the base structure after the high-frequency details have been extracted. This output is crucial for reconstructing the original image and understanding the underlying structure without the finer details.

scale_1

The scale_1 output provides the first level of detail extracted from the image. It captures the most prominent high-frequency features, offering insights into the initial layer of detail that contributes to the image's texture and sharpness.

scale_2

The scale_2 output represents the second level of detail, capturing finer features than scale_1. This output is essential for analyzing and manipulating mid-level details that contribute to the image's overall appearance.

scale_3

The scale_3 output provides the third level of detail, focusing on even finer features. It is useful for tasks that require a deeper exploration of the image's texture and subtle variations.

scale_4

The scale_4 output captures the fourth level of detail, offering insights into the intricate features that are less prominent but still contribute to the image's complexity.

original

The original output is a reference to the original image, included to facilitate comparison and ensure that the decomposition process preserves the image's integrity.

scale_5

The scale_5 output represents the fifth level of detail, capturing the finest features extracted during the decomposition. This output is particularly useful for detailed analysis and manipulation of the image's most subtle textures.

Wavelet Decomposition Usage Tips:

  • Experiment with the scales parameter to find the optimal level of detail for your specific project. Higher scales provide more detailed decomposition but may require more computational resources.
  • Use the residual output to understand the base structure of your image, which can be useful for tasks like image reconstruction or compression.
  • Compare the original output with the decomposed scales to ensure that the decomposition process maintains the image's integrity and that the extracted details align with your artistic or analytical goals.

Wavelet Decomposition Common Errors and Solutions:

"CUDA out of memory"

  • Explanation: This error occurs when the GPU does not have enough memory to process the image with the specified number of scales.
  • Solution: Reduce the scales parameter or use a smaller image to decrease memory usage. Alternatively, ensure that other GPU-intensive applications are closed to free up memory.

"Invalid image format"

  • Explanation: This error indicates that the input image is not in a compatible format for the node.
  • Solution: Ensure that the image is provided as a tensor and is in a format supported by the node. Convert the image to the appropriate format if necessary.

"IndexError: list index out of range"

  • Explanation: This error may occur if the number of scales exceeds the available detail levels in the image.
  • Solution: Verify that the scales parameter is set within the valid range (1 to 10) and adjust it accordingly to match the image's resolution and detail capacity.

Wavelet Decomposition Related Nodes

Go back to the extension to check out more related nodes.
DJZ-Nodes
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.