ComfyUI > Nodes > camera-comfyUI > DepthEstimatorNode

ComfyUI Node: DepthEstimatorNode

Class Name

DepthEstimatorNode

Category
Camera/Depth
Author
Alexankharin (Account age: 2779days)
Extension
camera-comfyUI
Latest Updated
2025-12-26
Github Stars
0.03K

How to Install camera-comfyUI

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

DepthEstimatorNode Description

Transforms images into depth maps for 3D reconstruction, AR, and enhanced AI art realism.

DepthEstimatorNode:

The DepthEstimatorNode is designed to provide an efficient and accurate method for estimating depth from images, which is a crucial task in various computer vision applications. This node leverages advanced depth estimation models to transform a given image into a depth map, which represents the distance of objects from the camera. By converting visual information into depth data, this node enables you to gain insights into the spatial structure of a scene, enhancing the realism and interactivity of AI-generated art. The primary goal of the DepthEstimatorNode is to facilitate the creation of depth maps that can be used for tasks such as 3D reconstruction, augmented reality, and image editing, making it an invaluable tool for AI artists looking to add depth and dimension to their work.

DepthEstimatorNode Input Parameters:

image

The image parameter is a tensor representing the input image from which depth is to be estimated. This parameter is crucial as it serves as the primary source of visual data for the depth estimation process. The image should be formatted as a tensor with dimensions [1, H, W, 3], where H and W are the height and width of the image, respectively. The quality and resolution of the input image can significantly impact the accuracy of the resulting depth map.

model_name

The model_name parameter specifies the name of the depth estimation model to be used. This parameter determines which pre-trained model will be employed to perform the depth estimation task. Different models may offer varying levels of accuracy and performance, so selecting the appropriate model can influence the quality of the depth map generated.

depth_scale

The depth_scale parameter is a float that scales the predicted depth values. By adjusting this parameter, you can control the range of depth values in the output depth map, which can be useful for normalizing or emphasizing certain depth features. The default value is 1.0, and it can be adjusted to suit specific requirements.

median_blur_kernel

The median_blur_kernel parameter is an integer that defines the size of the kernel used for median blurring. This parameter helps in smoothing the depth map by reducing noise and artifacts. A larger kernel size results in more smoothing, but it may also blur important details. The default value is 1, which means no blurring is applied, and it can be increased to enhance the smoothness of the depth map.

DepthEstimatorNode Output Parameters:

depth

The depth output parameter is a tensor representing the estimated depth map of the input image. This depth map is formatted as a tensor with dimensions [1, H, W, 1], where H and W correspond to the height and width of the input image. The depth map provides a visual representation of the distance of objects from the camera, with higher values indicating greater distances. This output is essential for applications that require an understanding of the spatial arrangement of objects within a scene.

DepthEstimatorNode Usage Tips:

  • Ensure that the input image is of high quality and resolution to achieve more accurate depth estimation results.
  • Experiment with different model_name options to find the model that best suits your specific application and provides the desired level of accuracy.
  • Adjust the depth_scale parameter to normalize the depth values according to your project's requirements, especially if you need to integrate the depth map with other data sources.
  • Use the median_blur_kernel parameter to reduce noise in the depth map, but be cautious not to over-smooth and lose important details.

DepthEstimatorNode Common Errors and Solutions:

Model not found in _PIPELINES

  • Explanation: This error occurs when the specified model_name is not available in the pre-defined pipelines.
  • Solution: Verify that the model_name is correctly spelled and corresponds to a valid model in the depth estimation library. Ensure that the model is properly installed and accessible.

Invalid image tensor dimensions

  • Explanation: This error arises when the input image tensor does not have the expected dimensions [1, H, W, 3].
  • Solution: Check the input image tensor to ensure it is correctly formatted with the required dimensions. Convert or reshape the image if necessary to match the expected input format.

DepthEstimatorNode Related Nodes

Go back to the extension to check out more related nodes.
camera-comfyUI
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 Models, enabling artists to harness the latest AI tools to create incredible art.