ComfyPilotComfyPilot
工作流 / 图像工具 / 几何估算:MoGe 3
几何估算:MoGe 3

几何估算:MoGe 3

Geometry Estimation: MoGe 3

使用 MoGe 3(MoGe 的稀疏体素细化版本)从单张图像估计精细几何结构。它将粗略点图提升到稀疏体素壳上,并通过轻量级稀疏 3D 卷积细化深度,保留图像空间解码器会模糊的薄结构和深度不连续处。附带 ViT-L 检查点;ViT-G 文件可在同一个加载 MoGe 模型下拉菜单中选择,以获得更高的精细细节精度。接受 1 个图像输入,输出 1 个深度图和 1 个法线图。

图像工具 4 个节点 1 个输入 47 次使用 ComfyUI ≥ 0.37.0 ComfyUI 15 KB

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

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

需要的权重

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

moge_3_vitg_fp16.safetensors 在模型库查看

节点构成

LoadImage × 1
PreviewImage × 1
5b702329-a5ec-4a7d-b000-213d0c04bbbd × 1
MarkdownNote × 1

官方标注的模型

MoGe

工作流 JSON

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

1{
2 "id": "8f02c6ab-cdc2-44dc-9260-a39dd0008670",
3 "revision": 0,
4 "last_node_id": 8,
5 "last_link_id": 11,
6 "nodes": [
7 {
8 "id": 3,
9 "type": "LoadImage",
10 "pos": [
11 -4524.678462848598,
12 6020.187656695689
13 ],
14 "size": [
15 282.796875,
16 322
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "IMAGE",
25 "type": "IMAGE",
26 "links": [
27 6
28 ]
29 },
30 {
31 "name": "MASK",
32 "type": "MASK",
33 "links": null
34 }
35 ],
36 "properties": {
37 "Node name for S&R": "LoadImage"
38 },
39 "widgets_values": [
40 "cosmic_suitcase.png",
41 "image"
42 ],
43 "widgets_values_named": {
44 "image": "cosmic_suitcase.png",
45 "upload": "image"
46 }
47 },
48 {
49 "id": 6,
50 "type": "PreviewImage",
51 "pos": [
52 -3800.3815878485984,
53 6020.187656695689
54 ],
55 "size": [
56 225,
57 266
58 ],
59 "flags": [],
60 "order": 3,
61 "mode": 0,
62 "inputs": [
63 {
64 "name": "images",
65 "type": "IMAGE",
66 "link": 7
67 }
68 ],
69 "outputs": [
70 {
71 "name": "images",
72 "type": "IMAGE",
73 "links": null
74 }
75 ],
76 "properties": {
77 "Node name for S&R": "PreviewImage"
78 }
79 },
80 {
81 "id": 7,
82 "type": "5b702329-a5ec-4a7d-b000-213d0c04bbbd",
83 "pos": [
84 -4193.881587848598,
85 6020.187656695689
86 ],
87 "size": [
88 345.5,
89 188.109375
90 ],
91 "flags": [],
92 "order": 2,
93 "mode": 0,
94 "inputs": [
95 {
96 "name": "image",
97 "type": "IMAGE",
98 "link": 6
99 }
100 ],
101 "outputs": [
102 {
103 "name": "IMAGE",
104 "type": "IMAGE",
105 "links": [
106 7
107 ]
108 }
109 ],
110 "properties": {
111 "previewExposures": []
112 },
113 "widgets_values": [
114 9,
115 4,
116 "mask",
117 "moge_3_vitg_fp16.safetensors"
118 ],
119 "widgets_values_named": {
120 "resolution_level": 9,
121 "batch_size": 4,
122 "output": "mask",
123 "model_name": "moge_3_vitg_fp16.safetensors"
124 }
125 },
126 {
127 "id": 8,
128 "type": "MarkdownNote",
129 "pos": [
130 -4908.22126297088,
131 6022.8283301025585
132 ],
133 "size": [
134 346.3125,
135 510.921875
136 ],
137 "flags": [],
138 "order": 1,
139 "mode": 0,
140 "inputs": [],
141 "outputs": [],
142 "properties": [],
143 "widgets_values": [
144 "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Asset\n\n- [cosmic_suitcase.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/cosmic_suitcase.png)\n\n## Model Link\n\n- [Hugging Face:Comfy-Org/MoGe](https://huggingface.co/Comfy-Org/MoGe)\n\n**ModelScope mirrors** (alternative repo location)\n\n- [ModelScope:Comfy-Org/MoGe](https://modelscope.cn/models/Comfy-Org/MoGe)\n\n**geometry_estimation** (one of the models below)\n\n- [moge_3_vitg_fp16.safetensors](https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_3_vitg_fp16.safetensors) (2.33 GB)\n- [moge_3_vitl_fp16.safetensors](https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_3_vitl_fp16.safetensors) (706.3 MB)\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 geometry_estimation/\n│ ├── moge_3_vitl_fp16.safetensors\n│ └── moge_3_vitg_fp16.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"
145 ],
146 "widgets_values_named": {
147 "text": "Guide: [Subgraph](https://docs.comfy.org/interface/features/subgraph)\n\n## Input Asset\n\n- [cosmic_suitcase.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/cosmic_suitcase.png)\n\n## Model Link\n\n- [Hugging Face:Comfy-Org/MoGe](https://huggingface.co/Comfy-Org/MoGe)\n\n**ModelScope mirrors** (alternative repo location)\n\n- [ModelScope:Comfy-Org/MoGe](https://modelscope.cn/models/Comfy-Org/MoGe)\n\n**geometry_estimation** (one of the models below)\n\n- [moge_3_vitg_fp16.safetensors](https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_3_vitg_fp16.safetensors) (2.33 GB)\n- [moge_3_vitl_fp16.safetensors](https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_3_vitl_fp16.safetensors) (706.3 MB)\n\n## Model Storage Location\n\n```\n📂 ComfyUI/\n├── 📂 models/\n│ └── 📂 geometry_estimation/\n│ ├── moge_3_vitl_fp16.safetensors\n│ └── moge_3_vitg_fp16.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"
148 },
149 "color": "#222",
150 "bgcolor": "#000"
151 }
152 ],
153 "links": [
154 [
155 6,
156 3,
157 0,
158 7,
159 0,
160 "IMAGE"
161 ],
162 [
163 7,
164 7,
165 0,
166 6,
167 0,
168 "IMAGE"
169 ]
170 ],
171 "groups": [],
172 "definitions": {
173 "subgraphs": [
174 {
175 "id": "5b702329-a5ec-4a7d-b000-213d0c04bbbd",
176 "version": 1,
177 "state": {
178 "lastGroupId": 0,
179 "lastNodeId": 8,
180 "lastLinkId": 11,
181 "lastRerouteId": 0
182 },
183 "revision": 0,
184 "config": [],
185 "name": "Geometry Estimation (MoGe 3)",
186 "inputNode": {
187 "id": -10,
188 "bounding": [
189 -4222.843118848306,
190 5870.2764474883315,
191 135.919921875,
192 148
193 ]
194 },
195 "outputNode": {
196 "id": -20,
197 "bounding": [
198 -3020.2786458333335,
199 5890.562500000001,
200 128,
201 68
202 ]
203 },
204 "inputs": [
205 {
206 "id": "79d73cb8-4bea-46a4-b51f-667917823086",
207 "name": "image",
208 "type": "IMAGE",
209 "linkIds": [
210 2
211 ],
212 "localized_name": "image",
213 "pos": [
214 -4110.923196973306,
215 5894.2764474883315
216 ]
217 },
218 {
219 "id": "7433a2b5-b40a-42d0-84f7-78d05c4fb561",
220 "name": "resolution_level",
221 "type": "INT",
222 "linkIds": [
223 8
224 ],
225 "pos": [
226 -4110.923196973306,
227 5914.2764474883315
228 ]
229 },
230 {
231 "id": "7d118489-73ef-46ca-b118-26c719144ae9",
232 "name": "batch_size",
233 "type": "INT",
234 "linkIds": [
235 9
236 ],
237 "pos": [
238 -4110.923196973306,
239 5934.2764474883315
240 ]
241 },
242 {
243 "id": "17b4dad4-b955-4c27-b929-61e89bb70a61",
244 "name": "output",
245 "type": "COMBO",
246 "linkIds": [
247 10
248 ],
249 "pos": [
250 -4110.923196973306,
251 5954.2764474883315
252 ]
253 },
254 {
255 "id": "99726d76-065b-4f44-abb7-37e47bafe353",
256 "name": "model_name",
257 "type": "COMBO",
258 "linkIds": [
259 11
260 ],
261 "pos": [
262 -4110.923196973306,
263 5974.2764474883315
264 ]
265 }
266 ],
267 "outputs": [
268 {
269 "id": "5cbd5fcf-5810-4e2d-a5fc-3b4ba3577d9a",
270 "name": "IMAGE",
271 "type": "IMAGE",
272 "linkIds": [
273 5
274 ],
275 "localized_name": "IMAGE",
276 "pos": [
277 -2996.2786458333335,
278 5914.562500000001
279 ]
280 }
281 ],
282 "widgets": [],
283 "nodes": [
284 {
285 "id": 1,
286 "type": "LoadMoGeModel",
287 "pos": [
288 -3986.2786458333335,
289 5840.562500000001
290 ],
291 "size": [
292 270,
293 62
294 ],
295 "flags": [],
296 "order": 0,
297 "mode": 0,
298 "inputs": [
299 {
300 "localized_name": "model_name",
301 "name": "model_name",
302 "type": "COMBO",
303 "widget": {
304 "name": "model_name"
305 },
306 "link": 11
307 }
308 ],
309 "outputs": [
310 {
311 "localized_name": "MOGE_MODEL",
312 "name": "MOGE_MODEL",
313 "type": "MOGE_MODEL",
314 "links": [
315 1
316 ]
317 }
318 ],
319 "properties": {
320 "Node name for S&R": "LoadMoGeModel",
321 "models": [
322 {
323 "name": "moge_3_vitg_fp16.safetensors",
324 "url": "https://huggingface.co/Comfy-Org/MoGe/resolve/main/geometry_estimation/moge_3_vitg_fp16.safetensors",
325 "directory": "geometry_estimation"
326 }
327 ]
328 },
329 "widgets_values": [
330 "moge_3_vitg_fp16.safetensors"
331 ],
332 "widgets_values_named": {
333 "model_name": "moge_3_vitg_fp16.safetensors"
334 }
335 },
336 {
337 "id": 2,
338 "type": "MoGeInference",
339 "pos": [
340 -3668.2786458333335,
341 5840.562500000001
342 ],
343 "size": [
344 270,
345 198
346 ],
347 "flags": [],
348 "order": 1,
349 "mode": 0,
350 "inputs": [
351 {
352 "localized_name": "moge_model",
353 "name": "moge_model",
354 "type": "MOGE_MODEL",
355 "link": 1
356 },
357 {
358 "localized_name": "image",
359 "name": "image",
360 "type": "IMAGE",
361 "link": 2
362 },
363 {
364 "localized_name": "resolution_level",
365 "name": "resolution_level",
366 "type": "INT",
367 "widget": {
368 "name": "resolution_level"
369 },
370 "link": 8
371 },
372 {
373 "localized_name": "batch_size",
374 "name": "batch_size",
375 "type": "INT",
376 "widget": {
377 "name": "batch_size"
378 },
379 "link": 9
380 }
381 ],
382 "outputs": [
383 {
384 "localized_name": "moge_geometry",
385 "name": "moge_geometry",
386 "type": "MOGE_GEOMETRY",
387 "links": [
388 4
389 ]
390 }
391 ],
392 "properties": {
393 "Node name for S&R": "MoGeInference"
394 },
395 "widgets_values": [
396 9,
397 0,
398 4,
399 true,
400 true,
401 3
402 ],
403 "widgets_values_named": {
404 "resolution_level": 9,
405 "fov_x_degrees": 0,
406 "batch_size": 4,
407 "force_projection": true,
408 "apply_mask": true,
409 "refine_steps": 3
410 }
411 },
412 {
413 "id": 5,
414 "type": "MoGeRender",
415 "pos": [
416 -3350.2786458333335,
417 5840.562500000001
418 ],
419 "size": [
420 270,
421 62
422 ],
423 "flags": [],
424 "order": 2,
425 "mode": 0,
426 "inputs": [
427 {
428 "localized_name": "moge_geometry",
429 "name": "moge_geometry",
430 "type": "MOGE_GEOMETRY",
431 "link": 4
432 },
433 {
434 "localized_name": "output",
435 "name": "output",
436 "type": "COMBO",
437 "widget": {
438 "name": "output"
439 },
440 "link": 10
441 }
442 ],
443 "outputs": [
444 {
445 "localized_name": "IMAGE",
446 "name": "IMAGE",
447 "type": "IMAGE",
448 "links": [
449 5
450 ]
451 }
452 ],
453 "properties": {
454 "Node name for S&R": "MoGeRender"
455 },
456 "widgets_values": [
457 "mask"
458 ],
459 "widgets_values_named": {
460 "output": "mask"
461 }
462 }
463 ],
464 "groups": [],
465 "links": [
466 {
467 "id": 1,
468 "origin_id": 1,
469 "origin_slot": 0,
470 "target_id": 2,
471 "target_slot": 0,
472 "type": "MOGE_MODEL"
473 },
474 {
475 "id": 4,
476 "origin_id": 2,
477 "origin_slot": 0,
478 "target_id": 5,
479 "target_slot": 0,
480 "type": "MOGE_GEOMETRY"
481 },
482 {
483 "id": 2,
484 "origin_id": -10,
485 "origin_slot": 0,
486 "target_id": 2,
487 "target_slot": 1,
488 "type": "IMAGE"
489 },
490 {
491 "id": 5,
492 "origin_id": 5,
493 "origin_slot": 0,
494 "target_id": -20,
495 "target_slot": 0,
496 "type": "IMAGE"
497 },
498 {
499 "id": 8,
500 "origin_id": -10,
501 "origin_slot": 1,
502 "target_id": 2,
503 "target_slot": 2,
504 "type": "INT"
505 },
506 {
507 "id": 9,
508 "origin_id": -10,
509 "origin_slot": 2,
510 "target_id": 2,
511 "target_slot": 3,
512 "type": "INT"
513 },
514 {
515 "id": 10,
516 "origin_id": -10,
517 "origin_slot": 3,
518 "target_id": 5,
519 "target_slot": 1,
520 "type": "COMBO"
521 },
522 {
523 "id": 11,
524 "origin_id": -10,
525 "origin_slot": 4,
526 "target_id": 1,
527 "target_slot": 0,
528 "type": "COMBO"
529 }
530 ],
531 "extra": []
532 }
533 ]
534 },
535 "config": [],
536 "extra": {
537 "ds": {
538 "scale": 0.46352671903987863,
539 "offset": [
540 5607.773992008,
541 -5234.103673068035
542 ]
543 },
544 "frontendVersion": "1.52.7"
545 },
546 "version": 0.4
547}