🚗 汽车深度图
A depth map of just the car — Depth Anything, plus a mask, in one pass
- image
- 外部深度图
- 遮罩深度图
- 深度图
- 遮罩
- 预览
ControlNet depth is great until you realize you don't want all the depth - you want the depth of just the thing you care about, and everything else zeroed out. A depth map of a car sitting in a busy street is useless for a workflow that only wants to preserve the car's geometry; what you need is the car's depth with the background removed.
The display name tells you exactly what this node was built for: 🚗 汽车深度图, "car depth map." 🚗 Text Segmented Depth runs three models in sequence to produce a depth map that contains only your target: Depth-Anything-V2 estimates the depth, Grounding DINO finds your object by text, and BiRefNet produces the fine mask - and the outputs include both the masked depth and the pieces you can reuse.
The pipeline
- Depth-Anything-V2-Small (~95 MB) produces a full depth estimate of the scene.
- Grounding DINO uses your
文字提示to locate the target. The default text is literallycar, and the node's whole default setup is tuned for automotive shots. - BiRefNet (~1 GB) mattes out the target precisely, and the depth map is masked to that region - everything else goes to zero.
There's a shortcut built in: wire the optional 外部深度图 (external depth image) and it skips the internal Depth-Anything step entirely, using your depth map as the source. Useful when you already have a depth map from elsewhere and just want it masked.
The inputs
文字提示- target text (defaultcar). Leave empty and BiRefNet auto-grabs the salient foreground, same trick as the pack's Text Segmenter.识别严格度(default 0.35),分割分辨率(512–2048, default 1024),羽化半径(default 2),反转遮罩- the same detection and mask controls as Text Segmenter; if you've used that node, none of these need explaining twice.外部深度图- optional, skips the internal depth model.
The outputs
遮罩深度图- the masked depth map, your main product.深度图- the full unmasked depth estimate (Depth-Anything output).遮罩- the segmentation mask on its own, so you can reuse it in other branches.预览- a visual check.
Installing it
cd ComfyUI/custom_nodes
git clone https://github.com/LouisLU1997/ComfyUI-louis-use Louis_use
pip install -r requirements.txt
Or "Louis Use" in ComfyUI Manager, then restart. First run downloads three models - Depth-Anything-V2-Small (~95 MB), Grounding DINO Tiny (~340 MB), and BiRefNet (~1 GB) - roughly 1.4 GB total, cached on HuggingFace and reused on later runs. Plus timm via requirements.txt for BiRefNet. It's the heaviest node in the pack alongside Text Segmenter; give it disk and VRAM.
The honest take
Three models in one node is impressive, but it's worth asking whether you need all three. If you have any external depth map - which is common, since you may already run Depth Anything as a ControlNet preprocessor elsewhere in the workflow - the 外部深度图 shortcut lets you skip a model and a download's worth of work. The value-add of this node is really "depth + mask, aligned and in one place," and that's exactly what you want for a car-depth ControlNet pass or an object-focused depth composite. For anything else, the single-purpose pieces are cheaper.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| 文字提示 | STRING | car | 留空 = BiRefNet 自动抠显著前景 |
| 识别严格度 | FLOAT | 0.350.05–0.95 | 数值越高越严格(只框非常明显的目标);越低越宽松(更容易找到目标,但可能误识别) |
| 分割分辨率 | COMBO | 1024 | BiRefNet 推理分辨率,越高越精细 |
| 羽化半径 | INT | 20–30 | 遮罩边缘羽化像素,0=硬边 |
| 反转遮罩 | BOOLEAN | false | — |
| 外部深度图opt | IMAGE | 提供则跳过内部 Depth-Anything-V2,直接使用此深度图 |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| 遮罩深度图 | IMAGE | — |
| 深度图 | IMAGE | — |
| 遮罩 | MASK | — |
| 预览 | IMAGE | — |