Depth Anything 3(V3) 與 V2 的 差異、 用法 與 商業 使用
關於本文:由 Owl3D 根據公開資料撰寫,15 項資料來源列於文末。
簡單來說
Depth Anything 是

左:
重點
- 差異: V2 從
一 張 照片 產生 深 度 圖。 V3 能 從多 張照片 同時 估計 深度 和 相機 位置 [1] [2]。 - 商業
使用: 在 GitHub 和 Hugging Face 上都 標示為 Apache 2.0 的, 是 V2 Small、 DA3-SMALL、 DA3-BASE、 DA3METRIC-LARGE 和 DA3MONO-LARGE。 V2 公制 版 Small 要 留意 訓練 資料 的 授權。 其他 模型 是 非 商業 使用 (CC BY-NC 4.0), 或 兩 邊 標示 不 一 致 [1] [2][5]。 - 馬
上 不試試: 想 寫 程式 的 話, 可以 用 免費 的 深度 ,圖產生 工具 在 瀏覽器 裡 執行 V2 Small(工具 和 本文 都 由 Owl3D 製 作)。 - 用
法 有 三種: ① 不 寫程式 就 用 瀏覽器 工 具; ② Python(V2 透過 Transformers 幾行 就 能跑, V3 要 裝 專用 套件); ③ ComfyUI 節點(用 法 )。 - V2 和 V3 的
數值 方 向 相反, 直接 並 排 看會 黑白顛倒(常見 問題 )。
V2 和 V3 的差異
最
| Depth Anything V2 | Depth Anything 3(V3) | |
|---|---|---|
| 發表 | 2024 年 6 月 14 日 | 2025 年 11 月 14 日 |
| 開發 | 香港 | ByteDance Seed[2][6] |
| 輸入 | 一 | 一 |
| 輸出 | 深度 | 深度 |
| 尺寸 | Small 24.8M、 | Small 0.08B、 |
| 輸 | 越近 | 越 |
V3 的
開發團隊
該選哪個模型?
先
快速
- 單
張 照片 的 深度 圖, 要 商業 使用: V2 Small 或 DA3MONO-LARGE, 兩 者 都 是 Apache 2.0[1][2]。 - 需要
以 公尺 為 單位 的 距離: 商業 使用 選 DA3METRIC-LARGE。 做 研究 或 個人 試用, 也 可以 用 V2 公制 版(室 內用 Hypersim, 室 外用 Virtual KITTI 2)[2][4]。 - 想
從 多 張照片 做出 3D 或 相機 位置: V3 主系列。 商業 使用 選 DA3-SMALL 或 DA3-BASE[2]。 - 做
研究 或 個人 試用, 精度 優先: DA3-GIANT-1.1 或 DA3NESTED-GIANT-LARGE-1.1(非 商業 使用)。 用 V2 的 話選 Large(非 商業 使用)[1][2]。
DA3METRIC-LARGE 的
能商業使用嗎?依尺寸的授權一覽
Depth Anything 的
| 模型 | GitHub 標示 | Hugging Face 標示 | 商業 |
|---|---|---|---|
| V2 Small | Apache 2.0 | apache-2.0 | 可以 |
| V2 Base / Large | CC BY-NC 4.0 | cc-by-nc-4.0 | 不可以 |
| V2 公制 | 未 | apache-2.0 | 注意 |
| V2 公制 | 未 | apache-2.0(Transformers 版 -hf 多數 | 標示 |
| DA3-SMALL / DA3-BASE | Apache 2.0 | apache-2.0 | 可以 |
| DA3METRIC-LARGE / DA3MONO-LARGE | Apache 2.0 | apache-2.0 | 可以 |
| DA3-LARGE(舊版) | CC BY-NC 4.0 | cc-by-nc-4.0 | 不可以 |
| DA3-LARGE-1.1 | CC BY-NC 4.0 | apache-2.0 | 標示 |
| DA3-GIANT(-1.1)、 | CC BY-NC 4.0 | cc-by-nc-4.0 | 不可以 |
Apache 2.0 的
此
用法:不寫程式、Python、ComfyUI
不寫程式直接試
Owl3D 的
Python(V2)
V2 已pip install transformers torch pillow。
from transformers import pipeline
from PIL import Image
pipe = pipeline(task="depth-estimation", model="depth-anything/Depth-Anything-V2-Small-hf")
image = Image.open("photo.jpg")
depth = pipe(image)["depth"] # 用於顯示的 8 位元影像(近處為白)
depth.save("depth.png")
計算用pipe(image)["predicted_depth"] 取得。model= 改成 "depth-anything/Depth-Anything-V2-Large-hf" 就
Python(V3)
V3 要
pip install xformers "torch>=2" torchvision
git clone https://github.com/ByteDance-Seed/Depth-Anything-3
cd Depth-Anything-3
pip install -e .
import numpy as np, torch
from PIL import Image
from depth_anything_3.api import DepthAnything3
model = DepthAnything3.from_pretrained("depth-anything/DA3-SMALL").to(torch.device("cuda"))
prediction = model.inference(["photo.jpg"])
depth = prediction.depth[0] # [高, 寬] 的 float32 陣列,數值越大越遠
# 尺寸是計算時的大小(1280×853 的照片為 504×336)
d = 1.0 / np.maximum(depth, 1e-6) # 取倒數,讓近處數值大(與 V2 方向相同)
d = (d - d.min()) / (d.max() - d.min()) # 正規化到 0~1
Image.fromarray((d * 255).astype("uint8")).save("depth_v3.png")
上面
需要什麼電腦、速度多快
V2 的
| 模型 | 執行 |
每 |
GPU 記憶體 |
|---|---|---|---|
| V2 Small | RTX 4090 | 約 0.04 秒 | 約 0.3GB |
| V2 Small | CPU(8 執行 |
約 0.5 秒 | — |
| DA3-SMALL | RTX 4090 | 約 0.05 秒 | 約 0.3GB |
處理
ComfyUI 和 Blender
ComfyUI 方面,
什麼是單眼深度估計
深度
想用在影片上
V2 儲
Owl3D 的 3D
{{cta}}
常見問題
V2 和 V3,到底該用哪個?
只要
Depth Anything 免費嗎?可以商業使用嗎?
模型
用非商業模型產生的深度圖,不能商業使用嗎?
如果
為什麼 V2 和 V3 的深度圖黑白相反?
V2 的
Depth Anything 能算出以公尺為單位的距離嗎?
標準 V2 不行,
資料來源 (15)
- Lihe Yang 等,
〈Depth Anything V2〉GitHub README。 https://github.com/DepthAnything/Depth-Anything-V2 (2026-12-03 查閱,英文) - Haotong Lin 等
(ByteDance Seed), 〈Depth Anything 3〉GitHub README。 https://github.com/ByteDance-Seed/Depth-Anything-3 (2026-12-03 查閱,英文) - Hugging Face,
〈Monocular depth estimation〉Transformers 文件。 https://huggingface.co/docs/transformers/en/tasks/monocular_depth_estimation (2026-12-02 查閱,英文) - Lihe Yang 等,
〈Depth Anything V2 for Metric Depth Estimation〉GitHub。 https://github.com/DepthAnything/Depth-Anything-V2/tree/main/metric_depth (2026-12-03 查閱,英文) - Hugging Face,
Depth Anything V2 與 Depth Anything 3 的 模型 列表(depth-anything) 及 各 模型 的 授權 標示。 https://huggingface.co/depth-anything 、https://huggingface.co/api/models?author=depth-anything (2026-12-03 查閱,英文) - Hugging Face,
〈DA3-LARGE-1.1〉模型 頁面。 https://huggingface.co/depth-anything/DA3-LARGE-1.1 (2026-12-03 查閱,英文) - Apache Software Foundation,
〈Apache License, Version 2.0〉。 https://www.apache.org/licenses/LICENSE-2.0 (2026-12-02 查閱,英文) - Creative Commons,
〈姓 名 標示 ─非 商業性 4.0 國際 (CC BY-NC 4.0)〉授權 摘要。 https://creativecommons.org/licenses/by-nc/4.0/deed.zh-hant (2026-12-02 查閱) - Depth Anything V2,
LICENSE(GitHub)。 https://github.com/DepthAnything/Depth-Anything-V2/blob/main/LICENSE (2026-12-03 查閱,英文) - Depth Anything 3,
LICENSE(GitHub)。 https://github.com/ByteDance-Seed/Depth-Anything-3/blob/main/LICENSE (2026-12-03 查閱,英文) - GitHub issue #259〈LARGE-1.1 model license〉(Depth Anything 3)。
https://github.com/ByteDance-Seed/Depth-Anything-3/issues/259 (2026-12-03 查閱,英文) - NAVER LABS Europe,
〈Virtual KITTI 2 Dataset〉。 https://europe.naverlabs.com/research/computer-vision/proxy-virtual-worlds-vkitti-2/ (2026-12-03 查閱,英文) - Apple,
〈Hypersim〉GitHub README。 https://github.com/apple-aiml-research/ml-hypersim (2026-12-03 查閱,英文) - Sili Chen 等,
〈Video Depth Anything〉GitHub README。 https://github.com/DepthAnything/Video-Depth-Anything (2026-12-03 查閱,英文) - Lihe Yang 等,
〈Depth Anything: Unleashing the Power of Large-Scale Unlabeled Data〉arXiv:2401.10891(2024 年 1 月 19 日)。 https://arxiv.org/abs/2401.10891 (2026-12-03 查閱,英文)