DepthAnything Preprocessor Provider (SEGS)
Depth ControlNet for Detected Regions
- SEGS_PREPROCESSOR
Here's the problem this node solves, and it's a specific one. Impact Pack's detailing loop hands a node a bunch of SEGS - detected regions, the container that everything after a detector passes around - and there's a variant of the refinement pass that applies ControlNet to each region. Depth is the preprocessor everyone wants there, because it holds the shape of a cropped face or hand while you resample it at proper resolution. But the SEGS-side ControlNet node doesn't run a preprocessor itself. It needs a provider object that knows how to preprocess a crop. That's this node: a tiny, configuration-only box that produces a SEGS_PREPROCESSOR.
What it does, mechanically
The node loads nothing and processes no image when you run it. It hands downstream a small wrapper carrying your two settings. When the SEGS ControlNet pass gets to a region, the wrapper calls out to ControlNet Auxiliary Preprocessors - Fannovel16's DepthAnythingPreprocessor or DepthAnythingV2Preprocessor - on that cropped image, after rounding its dimensions to a multiple of 64 so the network is happy. The returned depth map is what the ControlNet conditions on. Repeat per region.
So: ComfyUI's ControlNet Auxiliary Preprocessors extension is not optional. Without it the node exists, you can wire it, and it dies at run time telling you to install comfyui_controlnet_aux. The pack will even try to install it for you through Manager.
The two fields that matter
version - auto, v1 or v2. On auto the node guesses from the checkpoint filename: anything starting depth_anything_v2_ is treated as V2, anything starting depth_anything_vit as V1, and anything it can't read is assumed V2 with a warning in the log. It's worth setting this by hand if you drop in a renamed or converted checkpoint, because guessing wrong picks the wrong preprocessor class rather than the wrong file.
ckpt_name - one of six Depth Anything checkpoints, all looked up in the preprocessor's own model folder:
depth_anything_vitl14.pth depth_anything_v2_vitl.pth
depth_anything_vitb14.pth depth_anything_v2_vitb.pth
depth_anything_vits14.pth depth_anything_v2_vits.pth
The default is depth_anything_v2_vitl.pth, and for detailing that's a sane pick. V2 sharpened edges over V1 and is the version the ecosystem settled on; the s variants are for people who care about speed in a long region loop. Depth Anything V2's honest caveat applies here too - it's a per-image model, so if you ever point this at video frames the depth will flicker between them. On static crops in a detailer pass that never comes up.
Wiring
SEGS (from a detector) ──┐
├─► Apply ControlNet (SEGS) ─► detailer …
SEGS_PREPROCESSOR ────────┘
The output goes to the SEGS-side ControlNet apply node from Impact Pack; the SEGS themselves come from a detector. That's the whole graph. Which is why this node is easy to overlook - it's a dropdown with a wire, and the useful part is knowing which dropdown.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/ltdrdata/ComfyUI-Inspire-Pack
git clone https://github.com/Fannovel16/comfyui_controlnet_aux
pip install -r ComfyUI-Inspire-Pack/requirements.txt
Or Manager, searching "ComfyUI Inspire Pack" and "ComfyUI's ControlNet Auxiliary Preprocessors". Restart after both. The Depth Anything weights download on first use into the preprocessor's ckpt folder; if a run stalls for a minute on the first crop, that's the download, not a hang.
You'll also want the matching depth ControlNet model for your base architecture - the preprocessor produces a depth map, and the ControlNet is what consumes it. Mismatched ControlNet is the single most common reason a SEGS ControlNet pass looks like it did nothing.
Troubleshooting
"You need to install 'ComfyUI's ControlNet Auxiliary Preprocessors'" - exactly what it says. Note that Impact Pack and this pack version-lock against each other in places, so if you're updating one after a long gap, update both.
Nodes missing entirely from the menu after install - the pack's Python deps didn't land, usually a numpy/opencv clash after a ComfyUI upgrade. Read the terminal on startup; an import traceback is the answer, not a reinstall.
Depth map looks inverted or flat - check the version field against the file you actually have. A V2 file driven through the V1 class (or the reverse) produces output that's wrong in ways that look like a weak ControlNet rather than a version mismatch.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| version | COMBO | auto | 3 options: auto, v1, v2 |
| ckpt_name | COMBO | depth_anything_v2_vitl.pth | 6 options: depth_anything_vitl14.pth, depth_anything_vitb14.pth, depth_anything_vits14.pth, depth_anything_v2_vitl.pth, depth_anything_v2_vitb.pth, depth_anything_v2_vits.pth |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| SEGS_PREPROCESSOR | SEGS_PREPROCESSOR | — |