Depth¶
Depth nodes estimate how far every pixel is from the camera and use that map like a photographer uses a lens: to put the background (or foreground) out of focus after the shot.
-

Estimate a depth map from a single photo (near = white). Small model is Apache-2.0; Base/Large are non-commercial.
-

Bokeh from depth: choose the focus plane (or let a face/subject mask pick it) and the depth of field.
Typical chains¶
- Portrait background blur: Load Image → Face Detect Lite (face_mask) → Depth Lens Blur with the face mask as
focus_mask. Depth is estimated inside the node. - Product shot: SAM One-Click Mask on the product →
focus_maskof Depth Lens Blur. - Reuse the depth map: Depth Anything V2 once → its
depthinto several Lens Blur variants, or into Mask Preview to inspect it.