Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform images with depth-based pixelization effect using depth maps to vary pixel block sizes, emphasizing different depths creatively.
The Depth-Based Pixelization node is designed to transform images by applying a pixelization effect that varies based on the depth information of the image. This node leverages depth maps to determine the size of pixel blocks, creating a unique visual effect where areas of different depths are pixelated to varying degrees. The primary benefit of this approach is the ability to emphasize or de-emphasize certain parts of an image based on their depth, allowing for creative control over the visual focus and artistic style. By adjusting the pixel block sizes according to depth, this node can produce images that highlight foreground elements or create a sense of depth and dimension, making it a powerful tool for AI artists looking to add a dynamic and engaging effect to their work.
This parameter represents the batch of images to which the depth-based pixelization effect will be applied. The images are processed in conjunction with their corresponding depth maps to achieve the desired pixelization effect.
This parameter consists of a batch of depth maps corresponding to the input images. The depth maps are used to determine the pixel block sizes, influencing how the pixelization effect is applied across different areas of the image.
This integer parameter sets the minimum size of the pixel blocks used in the pixelization process. It controls the smallest level of detail that can be preserved in the image. The default value is 4, with a minimum of 1 and a maximum of 32.
This integer parameter defines the maximum size of the pixel blocks. It determines the largest area that can be pixelated as a single block, affecting the overall coarseness of the pixelization effect. The default value is 32, with a minimum of 1 and a maximum of 64.
This float parameter adjusts the influence of the depth map on the pixel block sizes. A higher value increases the effect of depth on block size variation, while a lower value reduces it. The default value is 1.0, with a range from 0.1 to 2.0.
This boolean parameter determines whether the depth map should be inverted before applying the pixelization effect. When set to true, areas that are closer will be treated as further away and vice versa, altering the pixelization pattern. The default value is true.
The output is a batch of images that have been processed with the depth-based pixelization effect. Each image in the batch reflects the pixelization applied according to the depth information, resulting in a visually distinct effect that emphasizes depth variations.
min_block_size
and max_block_size
parameters to achieve the desired level of detail and coarseness in your pixelized images. Smaller block sizes preserve more detail, while larger sizes create a more abstract effect.depth_influence
parameter to control how strongly the depth map affects the pixelization. A higher influence can create more pronounced depth effects, while a lower influence results in a more uniform pixelization.invert_depth
parameter to explore different artistic effects, such as emphasizing background elements instead of foreground ones.preprocess_depth_map
function to resize depth maps if necessary.min_block_size
is greater than the max_block_size
, causing an invalid configuration.min_block_size
is less than or equal to the max_block_size
to ensure a valid block size range.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.