> For the complete documentation index, see [llms.txt](https://sogni.gitbook.io/sogni-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sogni.gitbook.io/sogni-docs/sogni-pocket/advanced-features/controlnet/depth-map.md).

# Depth Map

Use depth maps to gain full control over composition and spatial relationships from a reference image. This tool extracts object distance, shape, placement, and overall structure using a specialized ControlNet model. The following options are available:<br>

* **Depth:** Reproduces depth relationships directly from the reference image.
* Normal Bae: Ideal for architecture and design. Uses surface normal maps to infer depth and structure. Normal Bae tends to preserve details across both foreground and background, while the standard Depth model may focus more on foreground elements.
* Segmentation: Identifies and isolates distinct areas, objects, and subjects for reuse in your composition.

▶️ Watch Tutorial Video: [Depth ControlNet: Style Transfers with Spatial Precision.](https://youtu.be/QsWbxwE6PXI?feature=shared)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sogni.gitbook.io/sogni-docs/sogni-pocket/advanced-features/controlnet/depth-map.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
