Skip to content

Depth Estimation Node

AI/ML/ONNX/Vision

Depth Estimation

Estimate depth from a single image using ONNX models. Download models from: MiDaS (https://github.com/isl-org/MiDaS/releases), DPT (https://huggingface.co/Intel/dpt-large/tree/main), Depth Anything (https://huggingface.co/depth-anything/Depth-Anything-V2-Small/tree/main)

onnx_depth_estimationonnx
Inputs5
Outputs3
Security exposure10/10
Packageonnx

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

5

Input

Execution
exec_in

Initiate Execution

Model

Struct
model

ONNX Depth Model Session

NodeOnnxSessionNodeOnnxSession1 fields
session_refstringrequired

Cache ID for Session

Schema enforced

Image

Struct
image

Input Image

NodeImageNodeImage1 fields
image_refstringrequired
Schema enforced

Provider

Struct
provider

Model provider type

DepthProviderDepthProvider4 fields
variant 1constvariant

MiDaS models (small, base, large)

const "MiDaSLike"
variant 2constvariant

DPT (Dense Prediction Transformer) models

const "DPTLike"
variant 3constvariant

Depth Anything models

const "DepthAnythingLike"
variant 4constvariant

Generic depth model (single input, single output)

const "Generic"
Default MiDaSLike
MiDaSLikeDPTLikeDepthAnythingLikeGeneric

Input Size

Integer
input_size

Model input size (default 384 for MiDaS)

Default 384

Output Pins

3

Output

Execution
exec_out

Done

Depth Map

Struct
depth_map

Estimated depth map

DepthMapDepthMap5 fields
valuesArray<number:float>required

Depth values normalized to 0-1 range (closer = lower values)

itemsnumber:floatarray item
format float
widthinteger:uint32required

Width of the depth map

format uint32min 0
heightinteger:uint32required

Height of the depth map

format uint32min 0
min_depthnumber:floatrequired

Minimum depth value (before normalization)

format float
max_depthnumber:floatrequired

Maximum depth value (before normalization)

format float

Depth Image

Struct
depth_image

Grayscale depth visualization

NodeImageNodeImage1 fields
image_refstringrequired

Node Info

Internal name
onnx_depth_estimation
Category
AI/ML/ONNX/Vision
Version
1