Estimate scene depth from one image locally with Depth Anything V2, then output grayscale, inverted, or Turbo-colored depth at source, 1K, or 2K size.
Where: Flowgen → Add → Image & Vector → Edit → Depth Map
Key ideas
- Depth Map is one graph step: Estimate scene depth from one image locally with Depth Anything V2, then output grayscale, inverted, or Turbo-colored depth at source, 1K, or 2K size.
- Typed sockets: Inputs: Image / image_in — one source image.. Outputs: Depth / image_out — an encoded depth image.. Settings stay on the node rather than masquerading as extra wires.
- Card and Properties agree: The compact card and selected-node Properties sidebar expose the same persisted controls: Color map: Grayscale, Inverted, or Turbo.; Output size: Source, 1K, or 2K..
- Execution behavior: Run performs Depth Anything V2 inference locally with WebGPU when available and a browser fallback otherwise.
- Cost and privacy boundary: It calls no generation provider and charges no Sparks/Flowies. Processing happens in the open browser, so it cannot execute in a headless/server-only flow and the source must be readable by the page.
- Depth Map card: DepthMapNode uses the authored shared-card path. Estimate a monocular depth map locally for depth-aware effects and 3D.
- Properties sidebar: Card-owned depth controls; common properties shell
- Opened surfaces: Depth preview; image lightbox
Steps
- Connect an image.
- Choose Grayscale for normal downstream use, Inverted when a consumer expects reverse depth, or Turbo for inspection.
- Choose Source/1K/2K resolution.
- Click Run and allow the first model download.
- Inspect discontinuities around the subject.
- Connect Depth to Depth Blur or use it as a Scene 3D relief/displacement source.
Inputs
- Image / image_in — one source image.
Outputs
- Depth / image_out — an encoded depth image.
Controls
- Color map: Grayscale, Inverted, or Turbo.
- Output size: Source, 1K, or 2K.
Important behavior
- Grayscale maps near content lighter and distant content darker; Inverted reverses it.
- Turbo is a diagnostic false-color view, not the best format for downstream numeric masking.
- The first run downloads roughly 47 MB.
- Current direct uses include Depth Blur and Scene 3D displacement/relief.
MCP authoring
- Create with create_node { type: "depthMap" }.
- Connect exact handles with connect_nodes when the node has more than one input or output.
- Set the complete control bag described by this article before run_node; set_props shallow-merges node data, so replacing a nested bag requires every value you want to keep.
Depth Map controls and presets
- Add path: Flowgen → Add → Image & Vector → Edit → Depth Map.
- Card: DepthMapNode.
- Properties: Card-owned depth controls; common properties shell.
- Controls: Grayscale; Inverted; Turbo; Source; 1K; 2K.
- Opened surfaces: Depth preview; image lightbox.
Tips
- Test the operation on one representative asset before placing it inside a List iteration.
- Keep the untouched source upstream so the operation can be changed or bypassed later.
- Judge edges and color at the intended delivery size as well as at full preview size.
Limitations and important notes
- Monocular depth is an estimate, not measured geometry.
- There is no current 2D parallax consumer documented for this node.
- 2K costs more local memory/time than Source or 1K.
Troubleshooting
Depth Blur focuses the wrong plane
Use Grayscale and toggle Invert Depth in Depth Blur, or regenerate as Inverted after confirming the convention.
FAQ
Does this open the full Image Editor?
No. This is a focused Flowgen node. Use Image Editor when you need layers, selections, paint, paths, or several edits in one document.
Can I use it in a List iteration?
Yes. Wire the current row field into the typed input, collect the exact output handle, and test one row before scaling the run.