工作流 /
图像工具 /
深度估计: Depth Anything 3

深度估计: Depth Anything 3
Depth Estimation: Depth Anything 3
上传1张图像。使用Depth Anything 3生成深度图,并查看原始图像与深度输出的并排对比。适用于3D场景重建、AR/VR资产准备以及视觉特效深度通道。
图像工具
6 个节点 1 个输入 27 次使用 ComfyUI ≥ 0.25.0 ComfyUI 19 KB
需要的权重
这个工作流引用了 1 个权重文件,其中 1 个能在本站模型库里找到。
depth_anything_3_mono_large.safetensors
在模型库查看
节点构成
MarkdownNote
× 2
PreviewImage
× 1
605cfcbf-c05b-4cd4-8b8f-9d7d989ab5d3
× 1
ImageCompare
× 1
LoadImage
× 1
官方标注的模型
Depth Anything v3
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "b2d4f6a8-3c5e-7f9b-1d3f-5a7b9c1d3e5f",
3 "revision": 2,
4 "last_node_id": 85,
5 "last_link_id": 109,
6 "nodes": [
7 {
8 "id": 6,
9 "type": "PreviewImage",
10 "pos": [
11 780,
12 30
13 ],
14 "size": [
15 400,
16 400
17 ],
18 "flags": [],
19 "order": 4,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "images",
24 "type": "IMAGE",
25 "link": 21
26 }
27 ],
28 "outputs": [],
29 "title": "Depth Preview (one frame per view)",
30 "properties": {
31 "cnr_id": "comfy-core",
32 "ver": "0.19.0",
33 "Node name for S&R": "PreviewImage"
34 },
35 "widgets_values": []
36 },
37 {
38 "id": 14,
39 "type": "605cfcbf-c05b-4cd4-8b8f-9d7d989ab5d3",
40 "pos": [
41 340,
42 30
43 ],
44 "size": [
45 400,
46 360
47 ],
48 "flags": [],
49 "order": 3,
50 "mode": 0,
51 "inputs": [
52 {
53 "name": "image",
54 "type": "IMAGE",
55 "link": 108
56 },
57 {
58 "label": "output_type",
59 "name": "output",
60 "type": "COMFY_DYNAMICCOMBO_V3",
61 "widget": {
62 "name": "output"
63 },
64 "link": null
65 },
66 {
67 "label": "output_normalization",
68 "name": "output.normalization",
69 "type": "COMBO",
70 "widget": {
71 "name": "output.normalization"
72 },
73 "link": null
74 },
75 {
76 "label": "apply_sky_clip",
77 "name": "output.apply_sky_clip",
78 "type": "BOOLEAN",
79 "widget": {
80 "name": "output.apply_sky_clip"
81 },
82 "link": null
83 }
84 ],
85 "outputs": [
86 {
87 "name": "IMAGE",
88 "type": "IMAGE",
89 "links": [
90 21,
91 105
92 ]
93 }
94 ],
95 "properties": {
96 "proxyWidgets": [
97 [
98 "5",
99 "resolution"
100 ],
101 [
102 "5",
103 "resize_method"
104 ],
105 [
106 "7",
107 "output"
108 ],
109 [
110 "7",
111 "output.normalization"
112 ],
113 [
114 "7",
115 "output.apply_sky_clip"
116 ],
117 [
118 "82",
119 "model_name"
120 ]
121 ],
122 "cnr_id": "comfy-core",
123 "ver": "0.24.0"
124 },
125 "widgets_values": []
126 },
127 {
128 "id": 80,
129 "type": "ImageCompare",
130 "pos": [
131 1240,
132 30
133 ],
134 "size": [
135 440,
136 390
137 ],
138 "flags": [],
139 "order": 5,
140 "mode": 0,
141 "inputs": [
142 {
143 "name": "image_a",
144 "shape": 7,
145 "type": "IMAGE",
146 "link": 109
147 },
148 {
149 "name": "image_b",
150 "shape": 7,
151 "type": "IMAGE",
152 "link": 105
153 }
154 ],
155 "outputs": [],
156 "properties": {
157 "cnr_id": "comfy-core",
158 "ver": "0.24.0",
159 "Node name for S&R": "ImageCompare"
160 },
161 "widgets_values": []
162 },
163 {
164 "id": 83,
165 "type": "MarkdownNote",
166 "pos": [
167 -1190,
168 30
169 ],
170 "size": [
171 510,
172 818.953125
173 ],
174 "flags": [],
175 "order": 0,
176 "mode": 0,
177 "inputs": [],
178 "outputs": [],
179 "title": "Model Link",
180 "properties": [],
181 "widgets_values": [
182 "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model Link\n\n- [Hugging Face:Comfy-Org/Depth-Anything-3](https://huggingface.co/Comfy-Org/Depth-Anything-3)\n- [ModelScope:Comfy-Org/Depth-Anything-3](https://modelscope.cn/models/Comfy-Org/Depth-Anything-3)\n\n**geometry_estimation**\n\n- [depth_anything_3_small.safetensors](https://huggingface.co/Comfy-Org/Depth-Anything-3/resolve/main/geometry_estimation/depth_anything_3_small.safetensors) (130.9 MB)\n- [depth_anything_3_base.safetensors](https://huggingface.co/Comfy-Org/Depth-Anything-3/resolve/main/geometry_estimation/depth_anything_3_base.safetensors) (516.4 MB)\n- [depth_anything_3_mono_large.safetensors](https://huggingface.co/Comfy-Org/Depth-Anything-3/resolve/main/geometry_estimation/depth_anything_3_mono_large.safetensors) (1.24 GB)\n- [depth_anything_3_metric_large.safetensors](https://huggingface.co/Comfy-Org/Depth-Anything-3/resolve/main/geometry_estimation/depth_anything_3_metric_large.safetensors) (1.24 GB)\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 geometry_estimation/\n│ ├── depth_anything_3_small.safetensors\n│ ├── depth_anything_3_base.safetensors\n│ ├── depth_anything_3_mono_large.safetensors\n│ └── depth_anything_3_metric_large.safetensors\n```\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud updates follow stable releases, so some nightly-supported models may not be available yet.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/comfyanonymous/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
183 ],
184 "color": "#222",
185 "bgcolor": "#000"
186 },
187 {
188 "id": 84,
189 "type": "MarkdownNote",
190 "pos": [
191 -640,
192 30
193 ],
194 "size": [
195 550,
196 820
197 ],
198 "flags": [],
199 "order": 1,
200 "mode": 0,
201 "inputs": [],
202 "outputs": [],
203 "title": "About: Depth Anything 3",
204 "properties": [],
205 "widgets_values": [
206 "## About Depth Anything 3\n\n[Depth Anything 3 (DA3)](https://github.com/ByteDance-Seed/Depth-Anything-3) is a vision transformer from ByteDance Seed that recovers spatially consistent geometry from arbitrary visual inputs, with or without known camera poses. A single plain DINO encoder and unified depth-ray representation let one model family cover monocular depth, multi-view depth, camera pose estimation, and 3D reconstruction.\n\n### What this workflow does\n\nUpload one image and run **Image Depth Estimation (Depth Anything 3)** to produce a depth map. The result is shown in **Depth Preview**, with a side-by-side **ImageCompare** against the source image.\n\n### Model variants\n\n- **depth_anything_3_mono_large** (default): High-quality relative monocular depth with sky segmentation. Best starting point for single-image depth maps.\n- **depth_anything_3_metric_large**: Metric depth in real-world scale (meters). Use `raw` normalization in Render to preserve scale.\n- **depth_anything_3_base**: Any-view foundation model (0.12B). Adds confidence maps and supports multi-view mode.\n- **depth_anything_3_small**: Fastest any-view model (0.08B). Lowest VRAM; supports confidence and multi-view.\n\n\n### Learn more\n\n- Paper: [arXiv:2511.10647](https://arxiv.org/abs/2511.10647)\n- Original repo: [ByteDance-Seed/Depth-Anything-3](https://github.com/ByteDance-Seed/Depth-Anything-3)\n- ComfyUI weights: [Comfy-Org/Depth-Anything-3](https://huggingface.co/Comfy-Org/Depth-Anything-3)\n"
207 ],
208 "color": "#222",
209 "bgcolor": "#000"
210 },
211 {
212 "id": 85,
213 "type": "LoadImage",
214 "pos": [
215 -20,
216 30
217 ],
218 "size": [
219 282.796875,
220 364
221 ],
222 "flags": [],
223 "order": 2,
224 "mode": 0,
225 "inputs": [],
226 "outputs": [
227 {
228 "name": "IMAGE",
229 "type": "IMAGE",
230 "links": [
231 108,
232 109
233 ]
234 },
235 {
236 "name": "MASK",
237 "type": "MASK",
238 "links": null
239 }
240 ],
241 "properties": {
242 "cnr_id": "comfy-core",
243 "ver": "0.24.0",
244 "Node name for S&R": "LoadImage"
245 },
246 "widgets_values": [
247 "retro_futuristic_home.png",
248 "image"
249 ]
250 }
251 ],
252 "links": [
253 [
254 21,
255 14,
256 0,
257 6,
258 0,
259 "IMAGE"
260 ],
261 [
262 105,
263 14,
264 0,
265 80,
266 1,
267 "IMAGE"
268 ],
269 [
270 108,
271 85,
272 0,
273 14,
274 0,
275 "IMAGE"
276 ],
277 [
278 109,
279 85,
280 0,
281 80,
282 0,
283 "IMAGE"
284 ]
285 ],
286 "groups": [],
287 "definitions": {
288 "subgraphs": [
289 {
290 "id": "605cfcbf-c05b-4cd4-8b8f-9d7d989ab5d3",
291 "version": 1,
292 "state": {
293 "lastGroupId": 4,
294 "lastNodeId": 85,
295 "lastLinkId": 109,
296 "lastRerouteId": 0
297 },
298 "revision": 2,
299 "config": [],
300 "name": "Image Depth Estimation (Depth Anything 3)",
301 "inputNode": {
302 "id": -10,
303 "bounding": [
304 400,
305 90,
306 166.998046875,
307 188
308 ]
309 },
310 "outputNode": {
311 "id": -20,
312 "bounding": [
313 1250,
314 146,
315 128,
316 68
317 ]
318 },
319 "inputs": [
320 {
321 "id": "43cf3118-495a-487d-8eb3-a17c7e92f64f",
322 "name": "image",
323 "type": "IMAGE",
324 "linkIds": [
325 19
326 ],
327 "localized_name": "image",
328 "pos": [
329 542.998046875,
330 114
331 ]
332 },
333 {
334 "id": "1089a0a1-6db1-45a8-84b0-0bfdc2ed920a",
335 "name": "resolution",
336 "type": "INT",
337 "linkIds": [
338 22
339 ],
340 "pos": [
341 542.998046875,
342 134
343 ]
344 },
345 {
346 "id": "25fb64ac-26d5-466d-995b-6d51b9afa2c4",
347 "name": "resize_method",
348 "type": "COMBO",
349 "linkIds": [
350 23
351 ],
352 "pos": [
353 542.998046875,
354 154
355 ]
356 },
357 {
358 "id": "8acafb7c-6c8b-46b3-9d74-c563498a3af1",
359 "name": "output",
360 "type": "COMFY_DYNAMICCOMBO_V3",
361 "linkIds": [
362 24
363 ],
364 "label": "output_type",
365 "pos": [
366 542.998046875,
367 174
368 ]
369 },
370 {
371 "id": "1da5009b-4648-43e8-a257-16426630cf22",
372 "name": "output.normalization",
373 "type": "COMBO",
374 "linkIds": [
375 25
376 ],
377 "label": "output_normalization",
378 "pos": [
379 542.998046875,
380 194
381 ]
382 },
383 {
384 "id": "fd7edb33-5fb1-4538-a411-26e5039a9321",
385 "name": "output.apply_sky_clip",
386 "type": "BOOLEAN",
387 "linkIds": [
388 26
389 ],
390 "label": "apply_sky_clip",
391 "pos": [
392 542.998046875,
393 214
394 ]
395 },
396 {
397 "id": "b5be4c8a-b833-4f1e-8c94-3ed1dd722190",
398 "name": "model_name",
399 "type": "COMBO",
400 "linkIds": [
401 106
402 ],
403 "pos": [
404 542.998046875,
405 234
406 ]
407 }
408 ],
409 "outputs": [
410 {
411 "id": "478ab537-63bc-4d74-a9f0-c975f550880f",
412 "name": "IMAGE",
413 "type": "IMAGE",
414 "linkIds": [
415 7
416 ],
417 "localized_name": "IMAGE",
418 "pos": [
419 1274,
420 170
421 ]
422 }
423 ],
424 "widgets": [],
425 "nodes": [
426 {
427 "id": 7,
428 "type": "DA3Render",
429 "pos": [
430 800,
431 310
432 ],
433 "size": [
434 380,
435 126
436 ],
437 "flags": [],
438 "order": 1,
439 "mode": 0,
440 "inputs": [
441 {
442 "localized_name": "da3_geometry",
443 "name": "da3_geometry",
444 "type": "DA3_GEOMETRY",
445 "link": 12
446 },
447 {
448 "localized_name": "output",
449 "name": "output",
450 "type": "COMFY_DYNAMICCOMBO_V3",
451 "widget": {
452 "name": "output"
453 },
454 "link": 24
455 },
456 {
457 "localized_name": "output.normalization",
458 "name": "output.normalization",
459 "type": "COMBO",
460 "widget": {
461 "name": "output.normalization"
462 },
463 "link": 25
464 },
465 {
466 "localized_name": "output.apply_sky_clip",
467 "name": "output.apply_sky_clip",
468 "type": "BOOLEAN",
469 "widget": {
470 "name": "output.apply_sky_clip"
471 },
472 "link": 26
473 },
474 {
475 "name": "geometry",
476 "type": "DA3_GEOMETRY",
477 "link": null
478 }
479 ],
480 "outputs": [
481 {
482 "localized_name": "IMAGE",
483 "name": "IMAGE",
484 "type": "IMAGE",
485 "slot_index": 0,
486 "links": [
487 7
488 ]
489 }
490 ],
491 "properties": {
492 "cnr_id": "comfy-core",
493 "ver": "0.19.0",
494 "Node name for S&R": "DA3Render"
495 },
496 "widgets_values": [
497 "depth",
498 "v2_style",
499 false
500 ]
501 },
502 {
503 "id": 5,
504 "type": "DA3Inference",
505 "pos": [
506 800,
507 50
508 ],
509 "size": [
510 390,
511 130
512 ],
513 "flags": [],
514 "order": 0,
515 "mode": 0,
516 "inputs": [
517 {
518 "localized_name": "da3_model",
519 "name": "da3_model",
520 "type": "DA3_MODEL",
521 "link": 107
522 },
523 {
524 "localized_name": "image",
525 "name": "image",
526 "type": "IMAGE",
527 "link": 19
528 },
529 {
530 "localized_name": "resolution",
531 "name": "resolution",
532 "type": "INT",
533 "widget": {
534 "name": "resolution"
535 },
536 "link": 22
537 },
538 {
539 "localized_name": "resize_method",
540 "name": "resize_method",
541 "type": "COMBO",
542 "widget": {
543 "name": "resize_method"
544 },
545 "link": 23
546 }
547 ],
548 "outputs": [
549 {
550 "localized_name": "da3_geometry",
551 "name": "da3_geometry",
552 "type": "DA3_GEOMETRY",
553 "slot_index": 0,
554 "links": [
555 12
556 ]
557 }
558 ],
559 "properties": {
560 "cnr_id": "comfy-core",
561 "ver": "0.19.0",
562 "Node name for S&R": "DA3Inference"
563 },
564 "widgets_values": [
565 504,
566 "upper_bound_resize",
567 "mono"
568 ]
569 },
570 {
571 "id": 82,
572 "type": "LoadDA3Model",
573 "pos": [
574 810,
575 -160
576 ],
577 "size": [
578 400,
579 140
580 ],
581 "flags": [],
582 "order": 2,
583 "mode": 0,
584 "inputs": [
585 {
586 "localized_name": "model_name",
587 "name": "model_name",
588 "type": "COMBO",
589 "widget": {
590 "name": "model_name"
591 },
592 "link": 106
593 }
594 ],
595 "outputs": [
596 {
597 "localized_name": "DA3_MODEL",
598 "name": "DA3_MODEL",
599 "type": "DA3_MODEL",
600 "links": [
601 107
602 ]
603 }
604 ],
605 "properties": {
606 "cnr_id": "comfy-core",
607 "ver": "0.24.0",
608 "Node name for S&R": "LoadDA3Model",
609 "models": [
610 {
611 "name": "depth_anything_3_mono_large.safetensors",
612 "url": "https://huggingface.co/Comfy-Org/Depth-Anything-3/resolve/main/geometry_estimation/depth_anything_3_mono_large.safetensors",
613 "directory": "geometry_estimation"
614 }
615 ]
616 },
617 "widgets_values": [
618 "depth_anything_3_mono_large.safetensors",
619 "default"
620 ]
621 }
622 ],
623 "groups": [],
624 "links": [
625 {
626 "id": 12,
627 "origin_id": 5,
628 "origin_slot": 0,
629 "target_id": 7,
630 "target_slot": 0,
631 "type": "DA3_GEOMETRY"
632 },
633 {
634 "id": 19,
635 "origin_id": -10,
636 "origin_slot": 0,
637 "target_id": 5,
638 "target_slot": 1,
639 "type": "IMAGE"
640 },
641 {
642 "id": 7,
643 "origin_id": 7,
644 "origin_slot": 0,
645 "target_id": -20,
646 "target_slot": 0,
647 "type": "IMAGE"
648 },
649 {
650 "id": 22,
651 "origin_id": -10,
652 "origin_slot": 1,
653 "target_id": 5,
654 "target_slot": 2,
655 "type": "INT"
656 },
657 {
658 "id": 23,
659 "origin_id": -10,
660 "origin_slot": 2,
661 "target_id": 5,
662 "target_slot": 3,
663 "type": "COMBO"
664 },
665 {
666 "id": 24,
667 "origin_id": -10,
668 "origin_slot": 3,
669 "target_id": 7,
670 "target_slot": 1,
671 "type": "COMFY_DYNAMICCOMBO_V3"
672 },
673 {
674 "id": 25,
675 "origin_id": -10,
676 "origin_slot": 4,
677 "target_id": 7,
678 "target_slot": 2,
679 "type": "COMBO"
680 },
681 {
682 "id": 26,
683 "origin_id": -10,
684 "origin_slot": 5,
685 "target_id": 7,
686 "target_slot": 3,
687 "type": "BOOLEAN"
688 },
689 {
690 "id": 106,
691 "origin_id": -10,
692 "origin_slot": 6,
693 "target_id": 82,
694 "target_slot": 0,
695 "type": "COMBO"
696 },
697 {
698 "id": 107,
699 "origin_id": 82,
700 "origin_slot": 0,
701 "target_id": 5,
702 "target_slot": 0,
703 "type": "DA3_MODEL"
704 }
705 ],
706 "extra": []
707 }
708 ]
709 },
710 "config": [],
711 "extra": {
712 "ds": {
713 "scale": 0.48791082929996415,
714 "offset": [
715 1502.5449848048947,
716 716.678231284096
717 ]
718 },
719 "frontendVersion": "1.45.15",
720 "workflowRendererVersion": "LG",
721 "VHS_latentpreview": false,
722 "VHS_latentpreviewrate": 0,
723 "VHS_MetadataImage": true,
724 "VHS_KeepIntermediate": true
725 },
726 "version": 0.4
727}