{
  "id": "b2d4f6a8-3c5e-7f9b-1d3f-5a7b9c1d3e5f",
  "revision": 2,
  "last_node_id": 85,
  "last_link_id": 109,
  "nodes": [
    {
      "id": 6,
      "type": "PreviewImage",
      "pos": [
        780,
        30
      ],
      "size": [
        400,
        400
      ],
      "flags": {},
      "order": 4,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 21
        }
      ],
      "outputs": [],
      "title": "Depth Preview (one frame per view)",
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.19.0",
        "Node name for S&R": "PreviewImage"
      },
      "widgets_values": []
    },
    {
      "id": 14,
      "type": "605cfcbf-c05b-4cd4-8b8f-9d7d989ab5d3",
      "pos": [
        340,
        30
      ],
      "size": [
        400,
        360
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "image",
          "type": "IMAGE",
          "link": 108
        },
        {
          "label": "output_type",
          "name": "output",
          "type": "COMFY_DYNAMICCOMBO_V3",
          "widget": {
            "name": "output"
          },
          "link": null
        },
        {
          "label": "output_normalization",
          "name": "output.normalization",
          "type": "COMBO",
          "widget": {
            "name": "output.normalization"
          },
          "link": null
        },
        {
          "label": "apply_sky_clip",
          "name": "output.apply_sky_clip",
          "type": "BOOLEAN",
          "widget": {
            "name": "output.apply_sky_clip"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            21,
            105
          ]
        }
      ],
      "properties": {
        "proxyWidgets": [
          [
            "5",
            "resolution"
          ],
          [
            "5",
            "resize_method"
          ],
          [
            "7",
            "output"
          ],
          [
            "7",
            "output.normalization"
          ],
          [
            "7",
            "output.apply_sky_clip"
          ],
          [
            "82",
            "model_name"
          ]
        ],
        "cnr_id": "comfy-core",
        "ver": "0.24.0"
      },
      "widgets_values": []
    },
    {
      "id": 80,
      "type": "ImageCompare",
      "pos": [
        1240,
        30
      ],
      "size": [
        440,
        390
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "image_a",
          "shape": 7,
          "type": "IMAGE",
          "link": 109
        },
        {
          "name": "image_b",
          "shape": 7,
          "type": "IMAGE",
          "link": 105
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "ImageCompare"
      },
      "widgets_values": []
    },
    {
      "id": 83,
      "type": "MarkdownNote",
      "pos": [
        -1190,
        30
      ],
      "size": [
        510,
        818.953125
      ],
      "flags": {},
      "order": 0,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "Model Link",
      "properties": {},
      "widgets_values": [
        "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"
      ],
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 84,
      "type": "MarkdownNote",
      "pos": [
        -640,
        30
      ],
      "size": [
        550,
        820
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "About: Depth Anything 3",
      "properties": {},
      "widgets_values": [
        "## 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"
      ],
      "color": "#222",
      "bgcolor": "#000"
    },
    {
      "id": 85,
      "type": "LoadImage",
      "pos": [
        -20,
        30
      ],
      "size": [
        282.796875,
        364
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            108,
            109
          ]
        },
        {
          "name": "MASK",
          "type": "MASK",
          "links": null
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "LoadImage"
      },
      "widgets_values": [
        "retro_futuristic_home.png",
        "image"
      ]
    }
  ],
  "links": [
    [
      21,
      14,
      0,
      6,
      0,
      "IMAGE"
    ],
    [
      105,
      14,
      0,
      80,
      1,
      "IMAGE"
    ],
    [
      108,
      85,
      0,
      14,
      0,
      "IMAGE"
    ],
    [
      109,
      85,
      0,
      80,
      0,
      "IMAGE"
    ]
  ],
  "groups": [],
  "definitions": {
    "subgraphs": [
      {
        "id": "605cfcbf-c05b-4cd4-8b8f-9d7d989ab5d3",
        "version": 1,
        "state": {
          "lastGroupId": 4,
          "lastNodeId": 85,
          "lastLinkId": 109,
          "lastRerouteId": 0
        },
        "revision": 2,
        "config": {},
        "name": "Image Depth Estimation (Depth Anything 3)",
        "inputNode": {
          "id": -10,
          "bounding": [
            400,
            90,
            166.998046875,
            188
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            1250,
            146,
            128,
            68
          ]
        },
        "inputs": [
          {
            "id": "43cf3118-495a-487d-8eb3-a17c7e92f64f",
            "name": "image",
            "type": "IMAGE",
            "linkIds": [
              19
            ],
            "localized_name": "image",
            "pos": [
              542.998046875,
              114
            ]
          },
          {
            "id": "1089a0a1-6db1-45a8-84b0-0bfdc2ed920a",
            "name": "resolution",
            "type": "INT",
            "linkIds": [
              22
            ],
            "pos": [
              542.998046875,
              134
            ]
          },
          {
            "id": "25fb64ac-26d5-466d-995b-6d51b9afa2c4",
            "name": "resize_method",
            "type": "COMBO",
            "linkIds": [
              23
            ],
            "pos": [
              542.998046875,
              154
            ]
          },
          {
            "id": "8acafb7c-6c8b-46b3-9d74-c563498a3af1",
            "name": "output",
            "type": "COMFY_DYNAMICCOMBO_V3",
            "linkIds": [
              24
            ],
            "label": "output_type",
            "pos": [
              542.998046875,
              174
            ]
          },
          {
            "id": "1da5009b-4648-43e8-a257-16426630cf22",
            "name": "output.normalization",
            "type": "COMBO",
            "linkIds": [
              25
            ],
            "label": "output_normalization",
            "pos": [
              542.998046875,
              194
            ]
          },
          {
            "id": "fd7edb33-5fb1-4538-a411-26e5039a9321",
            "name": "output.apply_sky_clip",
            "type": "BOOLEAN",
            "linkIds": [
              26
            ],
            "label": "apply_sky_clip",
            "pos": [
              542.998046875,
              214
            ]
          },
          {
            "id": "b5be4c8a-b833-4f1e-8c94-3ed1dd722190",
            "name": "model_name",
            "type": "COMBO",
            "linkIds": [
              106
            ],
            "pos": [
              542.998046875,
              234
            ]
          }
        ],
        "outputs": [
          {
            "id": "478ab537-63bc-4d74-a9f0-c975f550880f",
            "name": "IMAGE",
            "type": "IMAGE",
            "linkIds": [
              7
            ],
            "localized_name": "IMAGE",
            "pos": [
              1274,
              170
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 7,
            "type": "DA3Render",
            "pos": [
              800,
              310
            ],
            "size": [
              380,
              126
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "da3_geometry",
                "name": "da3_geometry",
                "type": "DA3_GEOMETRY",
                "link": 12
              },
              {
                "localized_name": "output",
                "name": "output",
                "type": "COMFY_DYNAMICCOMBO_V3",
                "widget": {
                  "name": "output"
                },
                "link": 24
              },
              {
                "localized_name": "output.normalization",
                "name": "output.normalization",
                "type": "COMBO",
                "widget": {
                  "name": "output.normalization"
                },
                "link": 25
              },
              {
                "localized_name": "output.apply_sky_clip",
                "name": "output.apply_sky_clip",
                "type": "BOOLEAN",
                "widget": {
                  "name": "output.apply_sky_clip"
                },
                "link": 26
              },
              {
                "name": "geometry",
                "type": "DA3_GEOMETRY",
                "link": null
              }
            ],
            "outputs": [
              {
                "localized_name": "IMAGE",
                "name": "IMAGE",
                "type": "IMAGE",
                "slot_index": 0,
                "links": [
                  7
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.19.0",
              "Node name for S&R": "DA3Render"
            },
            "widgets_values": [
              "depth",
              "v2_style",
              false
            ]
          },
          {
            "id": 5,
            "type": "DA3Inference",
            "pos": [
              800,
              50
            ],
            "size": [
              390,
              130
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "da3_model",
                "name": "da3_model",
                "type": "DA3_MODEL",
                "link": 107
              },
              {
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 19
              },
              {
                "localized_name": "resolution",
                "name": "resolution",
                "type": "INT",
                "widget": {
                  "name": "resolution"
                },
                "link": 22
              },
              {
                "localized_name": "resize_method",
                "name": "resize_method",
                "type": "COMBO",
                "widget": {
                  "name": "resize_method"
                },
                "link": 23
              }
            ],
            "outputs": [
              {
                "localized_name": "da3_geometry",
                "name": "da3_geometry",
                "type": "DA3_GEOMETRY",
                "slot_index": 0,
                "links": [
                  12
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.19.0",
              "Node name for S&R": "DA3Inference"
            },
            "widgets_values": [
              504,
              "upper_bound_resize",
              "mono"
            ]
          },
          {
            "id": 82,
            "type": "LoadDA3Model",
            "pos": [
              810,
              -160
            ],
            "size": [
              400,
              140
            ],
            "flags": {},
            "order": 2,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "model_name",
                "name": "model_name",
                "type": "COMBO",
                "widget": {
                  "name": "model_name"
                },
                "link": 106
              }
            ],
            "outputs": [
              {
                "localized_name": "DA3_MODEL",
                "name": "DA3_MODEL",
                "type": "DA3_MODEL",
                "links": [
                  107
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.24.0",
              "Node name for S&R": "LoadDA3Model",
              "models": [
                {
                  "name": "depth_anything_3_mono_large.safetensors",
                  "url": "https://huggingface.co/Comfy-Org/Depth-Anything-3/resolve/main/geometry_estimation/depth_anything_3_mono_large.safetensors",
                  "directory": "geometry_estimation"
                }
              ]
            },
            "widgets_values": [
              "depth_anything_3_mono_large.safetensors",
              "default"
            ]
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 12,
            "origin_id": 5,
            "origin_slot": 0,
            "target_id": 7,
            "target_slot": 0,
            "type": "DA3_GEOMETRY"
          },
          {
            "id": 19,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 5,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 7,
            "origin_id": 7,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 22,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 5,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 23,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 5,
            "target_slot": 3,
            "type": "COMBO"
          },
          {
            "id": 24,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 7,
            "target_slot": 1,
            "type": "COMFY_DYNAMICCOMBO_V3"
          },
          {
            "id": 25,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 7,
            "target_slot": 2,
            "type": "COMBO"
          },
          {
            "id": 26,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 7,
            "target_slot": 3,
            "type": "BOOLEAN"
          },
          {
            "id": 106,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 82,
            "target_slot": 0,
            "type": "COMBO"
          },
          {
            "id": 107,
            "origin_id": 82,
            "origin_slot": 0,
            "target_id": 5,
            "target_slot": 0,
            "type": "DA3_MODEL"
          }
        ],
        "extra": {}
      }
    ]
  },
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.48791082929996415,
      "offset": [
        1502.5449848048947,
        716.678231284096
      ]
    },
    "frontendVersion": "1.45.15",
    "workflowRendererVersion": "LG",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}