ComfyPilotComfyPilot
工作流 / 视频工具 / 深度图: Depth Anything v2
深度图: Depth Anything v2

深度图: Depth Anything v2

Depth Map: Depth Anything v2

将视频转换为时间稳定的深度图

视频工具 6 个节点 1 个输入 26 次使用 ComfyUI ≥ 0.0.1 ComfyUI 9 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

需要的权重

这个工作流引用了 1 个权重文件,其中 0 个能在本站模型库里找到。

depth_anything_v2_vitl_fp32.safetensors 模型库暂未收录

节点构成

VHS_VideoInfo × 1
VHS_LoadVideo × 1
VHS_VideoCombine × 1
DepthAnything_V2 × 1
DownloadAndLoadDepthAnythingV2Model × 1
MarkdownNote × 1

官方标注的模型

Depth Anything v2

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "2b55aa34-ee4c-4ae6-ba91-ee445d8c98db",
3 "revision": 0,
4 "last_node_id": 10,
5 "last_link_id": 7,
6 "nodes": [
7 {
8 "id": 8,
9 "type": "VHS_VideoInfo",
10 "pos": [
11 1109.3505468975045,
12 417.2971157374461
13 ],
14 "size": [
15 280.140625,
16 264
17 ],
18 "flags": [],
19 "order": 3,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "video_info",
24 "type": "VHS_VIDEOINFO",
25 "link": 6
26 }
27 ],
28 "outputs": [
29 {
30 "name": "source_fps🟨",
31 "type": "FLOAT",
32 "links": [
33 7
34 ]
35 },
36 {
37 "name": "source_frame_count🟨",
38 "type": "INT",
39 "links": null
40 },
41 {
42 "name": "source_duration🟨",
43 "type": "FLOAT",
44 "links": null
45 },
46 {
47 "name": "source_width🟨",
48 "type": "INT",
49 "links": null
50 },
51 {
52 "name": "source_height🟨",
53 "type": "INT",
54 "links": null
55 },
56 {
57 "name": "loaded_fps🟦",
58 "type": "FLOAT",
59 "links": null
60 },
61 {
62 "name": "loaded_frame_count🟦",
63 "type": "INT",
64 "links": null
65 },
66 {
67 "name": "loaded_duration🟦",
68 "type": "FLOAT",
69 "links": null
70 },
71 {
72 "name": "loaded_width🟦",
73 "type": "INT",
74 "links": null
75 },
76 {
77 "name": "loaded_height🟦",
78 "type": "INT",
79 "links": null
80 }
81 ],
82 "properties": {
83 "Node name for S&R": "VHS_VideoInfo"
84 },
85 "widgets_values": []
86 },
87 {
88 "id": 6,
89 "type": "VHS_LoadVideo",
90 "pos": [
91 649.1624635830028,
92 411.58858746152276
93 ],
94 "size": [
95 369.3125,
96 389.3125
97 ],
98 "flags": [],
99 "order": 0,
100 "mode": 0,
101 "inputs": [
102 {
103 "name": "meta_batch",
104 "shape": 7,
105 "type": "VHS_BatchManager",
106 "link": null
107 },
108 {
109 "name": "vae",
110 "shape": 7,
111 "type": "VAE",
112 "link": null
113 }
114 ],
115 "outputs": [
116 {
117 "name": "IMAGE",
118 "type": "IMAGE",
119 "links": [
120 4
121 ]
122 },
123 {
124 "name": "frame_count",
125 "type": "INT",
126 "links": null
127 },
128 {
129 "name": "audio",
130 "type": "AUDIO",
131 "links": null
132 },
133 {
134 "name": "video_info",
135 "type": "VHS_VIDEOINFO",
136 "links": [
137 6
138 ]
139 }
140 ],
141 "properties": {
142 "Node name for S&R": "VHS_LoadVideo"
143 },
144 "widgets_values": {
145 "video": "roller_coaster.mp4",
146 "force_rate": 0,
147 "custom_width": 0,
148 "custom_height": 0,
149 "frame_load_cap": 0,
150 "skip_first_frames": 0,
151 "select_every_nth": 1,
152 "format": "AnimateDiff",
153 "videopreview": {
154 "hidden": false,
155 "paused": false,
156 "params": {
157 "force_rate": 0,
158 "custom_width": 0,
159 "custom_height": 0,
160 "frame_load_cap": 0,
161 "skip_first_frames": 0,
162 "select_every_nth": 1,
163 "filename": "frog_depth_input.mp4",
164 "type": "input",
165 "format": "video/mp4"
166 }
167 }
168 }
169 },
170 {
171 "id": 7,
172 "type": "VHS_VideoCombine",
173 "pos": [
174 1582.0997361892141,
175 249.56529775739696
176 ],
177 "size": [
178 383.015625,
179 429.3125
180 ],
181 "flags": [],
182 "order": 5,
183 "mode": 0,
184 "inputs": [
185 {
186 "name": "images",
187 "type": "IMAGE",
188 "link": 5
189 },
190 {
191 "name": "audio",
192 "shape": 7,
193 "type": "AUDIO",
194 "link": null
195 },
196 {
197 "name": "meta_batch",
198 "shape": 7,
199 "type": "VHS_BatchManager",
200 "link": null
201 },
202 {
203 "name": "vae",
204 "shape": 7,
205 "type": "VAE",
206 "link": null
207 },
208 {
209 "name": "frame_rate",
210 "type": "FLOAT",
211 "widget": {
212 "name": "frame_rate"
213 },
214 "link": 7
215 }
216 ],
217 "outputs": [
218 {
219 "name": "Filenames",
220 "type": "VHS_FILENAMES",
221 "links": null
222 }
223 ],
224 "properties": {
225 "Node name for S&R": "VHS_VideoCombine"
226 },
227 "widgets_values": {
228 "frame_rate": 24,
229 "loop_count": 0,
230 "filename_prefix": "AnimateDiff",
231 "format": "video/h264-mp4",
232 "pix_fmt": "yuv420p",
233 "crf": 12,
234 "save_metadata": true,
235 "trim_to_audio": false,
236 "pingpong": false,
237 "save_output": true,
238 "videopreview": {
239 "hidden": false,
240 "paused": false,
241 "params": {
242 "filename": "37fde861e3060e130e39357df31a2b7925e0742646fe64c439987f37d58ca4c8.mp4",
243 "format": "video/h264-mp4",
244 "frame_rate": 24,
245 "fullpath": "",
246 "subfolder": "",
247 "type": "output",
248 "workflow": "AnimateDiff_00002.png"
249 }
250 }
251 }
252 },
253 {
254 "id": 1,
255 "type": "DepthAnything_V2",
256 "pos": [
257 1103.8760876387234,
258 248.20276204426426
259 ],
260 "size": [
261 377.515625,
262 72
263 ],
264 "flags": [],
265 "order": 4,
266 "mode": 0,
267 "inputs": [
268 {
269 "name": "da_model",
270 "type": "DAMODEL",
271 "link": 1
272 },
273 {
274 "name": "images",
275 "type": "IMAGE",
276 "link": 4
277 }
278 ],
279 "outputs": [
280 {
281 "name": "image",
282 "type": "IMAGE",
283 "links": [
284 5
285 ]
286 }
287 ],
288 "properties": {
289 "Node name for S&R": "DepthAnything_V2"
290 },
291 "widgets_values": []
292 },
293 {
294 "id": 2,
295 "type": "DownloadAndLoadDepthAnythingV2Model",
296 "pos": [
297 640.2630626354951,
298 251.62509818756877
299 ],
300 "size": [
301 384.5,
302 88.171875
303 ],
304 "flags": [],
305 "order": 1,
306 "mode": 0,
307 "inputs": [],
308 "outputs": [
309 {
310 "name": "da_v2_model",
311 "type": "DAMODEL",
312 "links": [
313 1
314 ]
315 }
316 ],
317 "properties": {
318 "Node name for S&R": "DownloadAndLoadDepthAnythingV2Model"
319 },
320 "widgets_values": [
321 "depth_anything_v2_vitl_fp32.safetensors"
322 ]
323 },
324 {
325 "id": 9,
326 "type": "MarkdownNote",
327 "pos": [
328 34.25556338647971,
329 250.041570023022
330 ],
331 "size": [
332 511.6875,
333 672.953125
334 ],
335 "flags": [],
336 "order": 2,
337 "mode": 0,
338 "inputs": [],
339 "outputs": [],
340 "properties": [],
341 "widgets_values": [
342 "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Model Links\n\n**depthanything**\n\n- [depth_anything_v2_vitl_fp32.safetensors](https://huggingface.co/Kijai/DepthAnythingV2-safetensors/resolve/main/depth_anything_v2_vitl_fp32.safetensors) (1.25 GB)\n\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ ├── 📂 depthanything/\n│ │ ├── depth_anything_v2_vitl_fp32.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 will be updated after the stable release; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/Comfy-Org/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"
343 ],
344 "color": "#222",
345 "bgcolor": "#653"
346 }
347 ],
348 "links": [
349 [
350 1,
351 2,
352 0,
353 1,
354 0,
355 "DAMODEL"
356 ],
357 [
358 4,
359 6,
360 0,
361 1,
362 1,
363 "IMAGE"
364 ],
365 [
366 5,
367 1,
368 0,
369 7,
370 0,
371 "IMAGE"
372 ],
373 [
374 6,
375 6,
376 3,
377 8,
378 0,
379 "VHS_VIDEOINFO"
380 ],
381 [
382 7,
383 8,
384 0,
385 7,
386 4,
387 "FLOAT"
388 ]
389 ],
390 "groups": [],
391 "config": [],
392 "extra": {
393 "workflowRendererVersion": "Vue",
394 "ds": {
395 "scale": 0.6830134553650705,
396 "offset": [
397 444.8067518725118,
398 156.2670485905823
399 ]
400 },
401 "frontendVersion": "1.37.9",
402 "VHS_latentpreview": false,
403 "VHS_latentpreviewrate": 0,
404 "VHS_MetadataImage": true,
405 "VHS_KeepIntermediate": true
406 },
407 "version": 0.4
408}