{
  "id": "b2d4f6a8-3c5e-7f9b-1d3f-5a7b9c1d3e5f",
  "revision": 2,
  "last_node_id": 91,
  "last_link_id": 129,
  "nodes": [
    {
      "id": 14,
      "type": "605cfcbf-c05b-4cd4-8b8f-9d7d989ab5d3",
      "pos": [
        340,
        30
      ],
      "size": [
        400,
        400
      ],
      "flags": {},
      "order": 3,
      "mode": 0,
      "inputs": [
        {
          "name": "video",
          "type": "VIDEO",
          "link": 114
        },
        {
          "label": "output_type",
          "name": "output",
          "type": "COMFY_DYNAMICCOMBO_V3",
          "widget": {
            "name": "output"
          },
          "link": null
        },
        {
          "label": "normalization",
          "name": "output.normalization",
          "type": "COMBO",
          "widget": {
            "name": "output.normalization"
          },
          "link": null
        }
      ],
      "outputs": [
        {
          "name": "IMAGE",
          "type": "IMAGE",
          "links": [
            21,
            115
          ]
        },
        {
          "name": "audio",
          "type": "AUDIO",
          "links": [
            116
          ]
        },
        {
          "name": "fps",
          "type": "FLOAT",
          "links": [
            117
          ]
        }
      ],
      "properties": {
        "proxyWidgets": [
          [
            "90",
            "start_time"
          ],
          [
            "90",
            "duration"
          ],
          [
            "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": 83,
      "type": "MarkdownNote",
      "pos": [
        -1190,
        30
      ],
      "size": [
        510,
        820
      ],
      "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\n**ModelScope mirrors** (alternative repo location)\n\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,
        970
      ],
      "flags": {},
      "order": 1,
      "mode": 0,
      "inputs": [],
      "outputs": [],
      "title": "About: Depth Anything 3 Video",
      "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. In ComfyUI, it can estimate a depth map for every frame of a video.\n\n### What this workflow does\n\nUpload a video with **LoadVideo**, then run **Video Depth Estimation (Depth Anything 3)** to produce a per-frame depth sequence. Inside the subgraph:\n\n1. **GetVideoComponents** splits the input video into a frame **image sequence**, **audio**, and **fps**.\n2. **LoadDA3Model** loads the selected DA3 checkpoint.\n3. **DA3Inference** runs mono depth estimation on each frame.\n4. **DA3Render** converts geometry into a depth preview image per frame.\n\nThe subgraph also forwards the original **audio** and **fps** from the source video for downstream reuse.\n\n\n### Model variants\n\n- **depth_anything_3_mono_large** (default): High-quality relative monocular depth with sky segmentation. Best starting point for per-frame video depth.\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; supports multi-view mode (not used in this per-frame video workflow).\n- **depth_anything_3_small**: Fastest any-view model (0.08B). Lowest VRAM per frame.\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": 87,
      "type": "LoadVideo",
      "pos": [
        -40,
        30
      ],
      "size": [
        290,
        300
      ],
      "flags": {},
      "order": 2,
      "mode": 0,
      "inputs": [],
      "outputs": [
        {
          "name": "VIDEO",
          "type": "VIDEO",
          "links": [
            114
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "LoadVideo"
      },
      "widgets_values": [
        "empty_room_assembly.mp4",
        "image"
      ]
    },
    {
      "id": 6,
      "type": "PreviewImage",
      "pos": [
        780,
        30
      ],
      "size": [
        370,
        350
      ],
      "flags": {},
      "order": 4,
      "mode": 4,
      "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": 89,
      "type": "CreateVideo",
      "pos": [
        1200,
        30
      ],
      "size": [
        270,
        130
      ],
      "flags": {},
      "order": 5,
      "mode": 0,
      "inputs": [
        {
          "name": "images",
          "type": "IMAGE",
          "link": 115
        },
        {
          "name": "audio",
          "shape": 7,
          "type": "AUDIO",
          "link": 116
        },
        {
          "name": "fps",
          "type": "FLOAT",
          "widget": {
            "name": "fps"
          },
          "link": 117
        }
      ],
      "outputs": [
        {
          "name": "VIDEO",
          "type": "VIDEO",
          "links": [
            118
          ]
        }
      ],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "CreateVideo"
      },
      "widgets_values": [
        30
      ]
    },
    {
      "id": 88,
      "type": "SaveVideo",
      "pos": [
        1510,
        30
      ],
      "size": [
        560,
        520
      ],
      "flags": {},
      "order": 6,
      "mode": 0,
      "inputs": [
        {
          "name": "video",
          "type": "VIDEO",
          "link": 118
        }
      ],
      "outputs": [],
      "properties": {
        "cnr_id": "comfy-core",
        "ver": "0.24.0",
        "Node name for S&R": "SaveVideo"
      },
      "widgets_values": [
        "video/depth_anything3",
        "auto",
        "auto"
      ]
    }
  ],
  "links": [
    [
      21,
      14,
      0,
      6,
      0,
      "IMAGE"
    ],
    [
      114,
      87,
      0,
      14,
      0,
      "VIDEO"
    ],
    [
      115,
      14,
      0,
      89,
      0,
      "IMAGE"
    ],
    [
      116,
      14,
      1,
      89,
      1,
      "AUDIO"
    ],
    [
      117,
      14,
      2,
      89,
      2,
      "FLOAT"
    ],
    [
      118,
      89,
      0,
      88,
      0,
      "VIDEO"
    ]
  ],
  "groups": [],
  "definitions": {
    "subgraphs": [
      {
        "id": "605cfcbf-c05b-4cd4-8b8f-9d7d989ab5d3",
        "version": 1,
        "state": {
          "lastGroupId": 4,
          "lastNodeId": 91,
          "lastLinkId": 129,
          "lastRerouteId": 0
        },
        "revision": 2,
        "config": {},
        "name": "Video Depth Estimation (Depth Anything 3)",
        "inputNode": {
          "id": -10,
          "bounding": [
            -230,
            130,
            167.912109375,
            228
          ]
        },
        "outputNode": {
          "id": -20,
          "bounding": [
            1520,
            140,
            128,
            108
          ]
        },
        "inputs": [
          {
            "id": "698c28c6-cf92-4039-8b39-f3062868ea7c",
            "name": "video",
            "type": "VIDEO",
            "linkIds": [
              119
            ],
            "pos": [
              -86.087890625,
              154
            ]
          },
          {
            "id": "97a1f63e-1585-4a40-9dec-e2700120d84a",
            "name": "start_time",
            "type": "FLOAT",
            "linkIds": [
              121
            ],
            "pos": [
              -86.087890625,
              174
            ]
          },
          {
            "id": "4dbbd3b3-c5ee-4a56-a0d3-3268d3b2fd64",
            "name": "duration",
            "type": "FLOAT",
            "linkIds": [
              122
            ],
            "pos": [
              -86.087890625,
              194
            ]
          },
          {
            "id": "16f55101-f99d-4c0c-bebf-c3b31c54f13e",
            "name": "resolution",
            "type": "INT",
            "linkIds": [
              124
            ],
            "pos": [
              -86.087890625,
              214
            ]
          },
          {
            "id": "d9cd7693-4bb3-4ed7-9a75-276b997abcd9",
            "name": "resize_method",
            "type": "COMBO",
            "linkIds": [
              125
            ],
            "pos": [
              -86.087890625,
              234
            ]
          },
          {
            "id": "a6e90532-323b-462e-ba9c-1672384d5b31",
            "name": "output",
            "type": "COMFY_DYNAMICCOMBO_V3",
            "linkIds": [
              126
            ],
            "label": "output_type",
            "pos": [
              -86.087890625,
              254
            ]
          },
          {
            "id": "69e6aeef-437d-4fde-b2fc-d5ab9369238d",
            "name": "output.normalization",
            "type": "COMBO",
            "linkIds": [
              127
            ],
            "label": "normalization",
            "pos": [
              -86.087890625,
              274
            ]
          },
          {
            "id": "73206f72-f89a-4698-885e-5d9277df2998",
            "name": "output.apply_sky_clip",
            "type": "BOOLEAN",
            "linkIds": [
              128
            ],
            "pos": [
              -86.087890625,
              294
            ]
          },
          {
            "id": "dddbc7fc-9431-448a-9ed3-9aa62404288b",
            "name": "model_name",
            "type": "COMBO",
            "linkIds": [
              129
            ],
            "pos": [
              -86.087890625,
              314
            ]
          }
        ],
        "outputs": [
          {
            "id": "478ab537-63bc-4d74-a9f0-c975f550880f",
            "name": "IMAGE",
            "type": "IMAGE",
            "linkIds": [
              7
            ],
            "localized_name": "IMAGE",
            "pos": [
              1544,
              164
            ]
          },
          {
            "id": "cdaf037e-79bc-4a94-b06c-0fd32e76f615",
            "name": "audio",
            "type": "AUDIO",
            "linkIds": [
              112
            ],
            "pos": [
              1544,
              184
            ]
          },
          {
            "id": "4c0e5484-d193-49c7-b107-92619628880a",
            "name": "fps",
            "type": "FLOAT",
            "linkIds": [
              113
            ],
            "pos": [
              1544,
              204
            ]
          }
        ],
        "widgets": [],
        "nodes": [
          {
            "id": 7,
            "type": "DA3Render",
            "pos": [
              740,
              230
            ],
            "size": [
              380,
              188
            ],
            "flags": {},
            "order": 2,
            "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": 126
              },
              {
                "localized_name": "output.normalization",
                "name": "output.normalization",
                "type": "COMBO",
                "widget": {
                  "name": "output.normalization"
                },
                "link": 127
              },
              {
                "localized_name": "output.apply_sky_clip",
                "name": "output.apply_sky_clip",
                "type": "BOOLEAN",
                "widget": {
                  "name": "output.apply_sky_clip"
                },
                "link": 128
              },
              {
                "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": [
              740,
              -30
            ],
            "size": [
              390,
              192
            ],
            "flags": {},
            "order": 1,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "da3_model",
                "name": "da3_model",
                "type": "DA3_MODEL",
                "link": 107
              },
              {
                "localized_name": "image",
                "name": "image",
                "type": "IMAGE",
                "link": 111
              },
              {
                "localized_name": "resolution",
                "name": "resolution",
                "type": "INT",
                "widget": {
                  "name": "resolution"
                },
                "link": 124
              },
              {
                "localized_name": "resize_method",
                "name": "resize_method",
                "type": "COMBO",
                "widget": {
                  "name": "resize_method"
                },
                "link": 125
              }
            ],
            "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,
              "lower_bound_resize",
              "mono"
            ]
          },
          {
            "id": 82,
            "type": "LoadDA3Model",
            "pos": [
              50,
              410
            ],
            "size": [
              400,
              140
            ],
            "flags": {},
            "order": 3,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "model_name",
                "name": "model_name",
                "type": "COMBO",
                "widget": {
                  "name": "model_name"
                },
                "link": 129
              }
            ],
            "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"
            ]
          },
          {
            "id": 86,
            "type": "GetVideoComponents",
            "pos": [
              70,
              -140
            ],
            "size": [
              260,
              120
            ],
            "flags": {},
            "order": 4,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO",
                "link": 120
              }
            ],
            "outputs": [
              {
                "localized_name": "images",
                "name": "images",
                "type": "IMAGE",
                "links": [
                  111
                ]
              },
              {
                "localized_name": "audio",
                "name": "audio",
                "type": "AUDIO",
                "links": [
                  112
                ]
              },
              {
                "localized_name": "fps",
                "name": "fps",
                "type": "FLOAT",
                "links": [
                  113
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.24.0",
              "Node name for S&R": "GetVideoComponents"
            },
            "widgets_values": []
          },
          {
            "id": 90,
            "type": "Video Slice",
            "pos": [
              70,
              -360
            ],
            "size": [
              270,
              164
            ],
            "flags": {},
            "order": 0,
            "mode": 0,
            "inputs": [
              {
                "localized_name": "video",
                "name": "video",
                "type": "VIDEO",
                "link": 119
              },
              {
                "localized_name": "start_time",
                "name": "start_time",
                "type": "FLOAT",
                "widget": {
                  "name": "start_time"
                },
                "link": 121
              },
              {
                "localized_name": "duration",
                "name": "duration",
                "type": "FLOAT",
                "widget": {
                  "name": "duration"
                },
                "link": 122
              }
            ],
            "outputs": [
              {
                "localized_name": "VIDEO",
                "name": "VIDEO",
                "type": "VIDEO",
                "links": [
                  120
                ]
              }
            ],
            "properties": {
              "cnr_id": "comfy-core",
              "ver": "0.24.0",
              "Node name for S&R": "Video Slice"
            },
            "widgets_values": [
              0,
              5,
              false
            ]
          }
        ],
        "groups": [],
        "links": [
          {
            "id": 12,
            "origin_id": 5,
            "origin_slot": 0,
            "target_id": 7,
            "target_slot": 0,
            "type": "DA3_GEOMETRY"
          },
          {
            "id": 7,
            "origin_id": 7,
            "origin_slot": 0,
            "target_id": -20,
            "target_slot": 0,
            "type": "IMAGE"
          },
          {
            "id": 107,
            "origin_id": 82,
            "origin_slot": 0,
            "target_id": 5,
            "target_slot": 0,
            "type": "DA3_MODEL"
          },
          {
            "id": 111,
            "origin_id": 86,
            "origin_slot": 0,
            "target_id": 5,
            "target_slot": 1,
            "type": "IMAGE"
          },
          {
            "id": 112,
            "origin_id": 86,
            "origin_slot": 1,
            "target_id": -20,
            "target_slot": 1,
            "type": "AUDIO"
          },
          {
            "id": 113,
            "origin_id": 86,
            "origin_slot": 2,
            "target_id": -20,
            "target_slot": 2,
            "type": "FLOAT"
          },
          {
            "id": 119,
            "origin_id": -10,
            "origin_slot": 0,
            "target_id": 90,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 120,
            "origin_id": 90,
            "origin_slot": 0,
            "target_id": 86,
            "target_slot": 0,
            "type": "VIDEO"
          },
          {
            "id": 121,
            "origin_id": -10,
            "origin_slot": 1,
            "target_id": 90,
            "target_slot": 1,
            "type": "FLOAT"
          },
          {
            "id": 122,
            "origin_id": -10,
            "origin_slot": 2,
            "target_id": 90,
            "target_slot": 2,
            "type": "FLOAT"
          },
          {
            "id": 124,
            "origin_id": -10,
            "origin_slot": 3,
            "target_id": 5,
            "target_slot": 2,
            "type": "INT"
          },
          {
            "id": 125,
            "origin_id": -10,
            "origin_slot": 4,
            "target_id": 5,
            "target_slot": 3,
            "type": "COMBO"
          },
          {
            "id": 126,
            "origin_id": -10,
            "origin_slot": 5,
            "target_id": 7,
            "target_slot": 1,
            "type": "COMFY_DYNAMICCOMBO_V3"
          },
          {
            "id": 127,
            "origin_id": -10,
            "origin_slot": 6,
            "target_id": 7,
            "target_slot": 2,
            "type": "COMBO"
          },
          {
            "id": 128,
            "origin_id": -10,
            "origin_slot": 7,
            "target_id": 7,
            "target_slot": 3,
            "type": "BOOLEAN"
          },
          {
            "id": 129,
            "origin_id": -10,
            "origin_slot": 8,
            "target_id": 82,
            "target_slot": 0,
            "type": "COMBO"
          }
        ],
        "extra": {}
      }
    ]
  },
  "config": {},
  "extra": {
    "ds": {
      "scale": 0.49134121252801904,
      "offset": [
        1044.651329093669,
        750.8595379404771
      ]
    },
    "frontendVersion": "1.45.15",
    "workflowRendererVersion": "LG",
    "VHS_latentpreview": false,
    "VHS_latentpreviewrate": 0,
    "VHS_MetadataImage": true,
    "VHS_KeepIntermediate": true
  },
  "version": 0.4
}