Files
smthemex-ComfyUI_OmniPart/example_workflows/omipart.json
T
2025-10-15 15:35:42 +08:00

667 lines
12 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"id": "b92b238b-eda1-4e92-b26f-ff5ed09a7c3f",
"revision": 0,
"last_node_id": 13,
"last_link_id": 17,
"nodes": [
{
"id": 5,
"type": "OmniPart_SM_PreModel",
"pos": [
565.340087890625,
-137.2583465576172
],
"size": [
270,
102
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "sam_model",
"type": "OmniPart_SM_SamModel",
"links": [
5,
7
]
},
{
"name": "rmbg_model",
"type": "OmniPart_SM_SegModel",
"links": [
6
]
}
],
"properties": {
"Node name for S&R": "OmniPart_SM_PreModel"
},
"widgets_values": [
"model.safetensors",
"sam_vit_h_4b8939.pth"
]
},
{
"id": 1,
"type": "OmniPart_SM_Model",
"pos": [
1220.4803466796875,
110.20159912109375
],
"size": [
270,
130
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "OmniPart_SM_Model",
"type": "OmniPart_SM_Model",
"links": [
1,
13
]
}
],
"properties": {
"Node name for S&R": "OmniPart_SM_Model"
},
"widgets_values": [
"F:\\test\\ComfyUI\\models\\diffusers\\OmniPart",
"bbox_gen.ckpt",
"partfield_encoder.ckpt",
"dinov2_vitl14_reg4_pretrain.pth"
]
},
{
"id": 2,
"type": "OmniPart_SM_Prebox",
"pos": [
1546.1116943359375,
93.35263061523438
],
"size": [
279.9546813964844,
102
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "OmniPart_SM_Model",
"link": 1
},
{
"name": "state",
"type": "CONDITIONING",
"link": 4
}
],
"outputs": [
{
"name": "cond",
"type": "CONDITIONING",
"links": [
14
]
}
],
"properties": {
"Node name for S&R": "OmniPart_SM_Prebox"
},
"widgets_values": [
682639378,
"randomize"
]
},
{
"id": 11,
"type": "OmniPart_SM_KSampler",
"pos": [
1538.918212890625,
308.5582275390625
],
"size": [
270,
126
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "OmniPart_SM_Model",
"link": 13
},
{
"name": "cond",
"type": "CONDITIONING",
"link": 14
}
],
"outputs": [
{
"name": "scene_texture",
"type": "STRING",
"links": [
16
]
},
{
"name": "mesh_segment",
"type": "STRING",
"links": [
17
]
}
],
"properties": {
"Node name for S&R": "OmniPart_SM_KSampler"
},
"widgets_values": [
20,
8,
0.3
]
},
{
"id": 8,
"type": "LoadImage",
"pos": [
202.83811950683594,
205.92686462402344
],
"size": [
296.6199951171875,
344.6130065917969
],
"flags": {},
"order": 2,
"mode": 2,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
10
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"pasted/image (3).png",
"image"
]
},
{
"id": 12,
"type": "Preview3D",
"pos": [
1899.134033203125,
469.2892150878906
],
"size": [
432.6700134277344,
380.6000061035156
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "camera_info",
"shape": 7,
"type": "LOAD3D_CAMERA",
"link": null
},
{
"name": "model_file",
"type": "STRING",
"widget": {
"name": "model_file"
},
"link": 17
}
],
"outputs": [],
"properties": {
"Node name for S&R": "Preview3D",
"Last Time Model File": "F:/ComfyUI311/ComfyUI/output/omni_mesh_segment.glb",
"Resource Folder": "ComfyUI311/ComfyUI/output",
"Camera Info": {
"position": {
"x": 0.21106112490752765,
"y": 4.553873108002032,
"z": -8.757605890826467
},
"target": {
"x": 0,
"y": 2.5,
"z": 0
},
"zoom": 1,
"cameraType": "perspective"
}
},
"widgets_values": [
"F:/ComfyUI311/ComfyUI/output/omni_mesh_segment.glb",
""
]
},
{
"id": 9,
"type": "Preview3D",
"pos": [
1913.458984375,
61.599273681640625
],
"size": [
432.6700134277344,
380.6000061035156
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "camera_info",
"shape": 7,
"type": "LOAD3D_CAMERA",
"link": null
},
{
"name": "model_file",
"type": "STRING",
"widget": {
"name": "model_file"
},
"link": 16
}
],
"outputs": [],
"properties": {
"Node name for S&R": "Preview3D",
"Last Time Model File": "F:/ComfyUI311/ComfyUI/output/omni_mesh_textured.glb",
"Resource Folder": "ComfyUI311/ComfyUI/output",
"Camera Info": {
"position": {
"x": -1.8449624733601526,
"y": 3.8908731194792407,
"z": -6.567685383150526
},
"target": {
"x": 0,
"y": 2.5,
"z": 0
},
"zoom": 1,
"cameraType": "perspective"
}
},
"widgets_values": [
"F:/ComfyUI311/ComfyUI/output/omni_mesh_textured.glb",
""
]
},
{
"id": 6,
"type": "OmniPart_SM_PreImg",
"pos": [
534.1347045898438,
100.50750732421875
],
"size": [
299.1499938964844,
138.5
],
"flags": {},
"order": 5,
"mode": 2,
"inputs": [
{
"name": "sam_model",
"type": "OmniPart_SM_SamModel",
"link": 7
},
{
"name": "rmbg_model",
"type": "OmniPart_SM_SegModel",
"link": 6
},
{
"name": "image",
"type": "IMAGE",
"link": 10
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
8
]
},
{
"name": "dir_prefix",
"type": "STRING",
"links": [
9
]
}
],
"properties": {
"Node name for S&R": "OmniPart_SM_PreImg"
},
"widgets_values": [
1600
]
},
{
"id": 7,
"type": "SaveImage",
"pos": [
542.306640625,
286.7527770996094
],
"size": [
284.29998779296875,
270
],
"flags": {},
"order": 7,
"mode": 2,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 8
},
{
"name": "filename_prefix",
"type": "STRING",
"widget": {
"name": "filename_prefix"
},
"link": 9
}
],
"outputs": [],
"properties": {},
"widgets_values": [
"ComfyUI"
]
},
{
"id": 10,
"type": "LoadImage",
"pos": [
931.633544921875,
236.13815307617188
],
"size": [
270,
314
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
12
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"141311_00001_.png",
"image"
]
},
{
"id": 4,
"type": "OmniPart_SM_MergeImg",
"pos": [
1213.916015625,
301.4980163574219
],
"size": [
285,
102
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "sam_model",
"type": "OmniPart_SM_SamModel",
"link": 5
},
{
"name": "image",
"shape": 7,
"type": "IMAGE",
"link": 12
}
],
"outputs": [
{
"name": "state",
"type": "CONDITIONING",
"links": [
4
]
}
],
"properties": {
"Node name for S&R": "OmniPart_SM_MergeImg"
},
"widgets_values": [
"141311",
"0,8,9;1,2,6,11,12;3;4;5;7;10"
]
},
{
"id": 13,
"type": "Note",
"pos": [
1032.968505859375,
-162.00013732910156
],
"size": [
509.04998779296875,
156.8000030517578
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {},
"widgets_values": [
"1 先禁用stage2 ,启用stage1 ,推理完成后,禁用stage1,启用stage2\n2、dir prefix 输入保存图片的前6位时间戳(在output)\n3、merge input 输入你想要合并的部位\n4、推理\n1, disable stage2 and enable stage1. After inference is complete, disable stage1 and enable stage2\n2. Dir prefix: Input the first 6 timestamps of the saved image\n3. Merge input: Enter the part you want to merge\n4. infer"
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
1,
1,
0,
2,
0,
"OmniPart_SM_Model"
],
[
4,
4,
0,
2,
1,
"CONDITIONING"
],
[
5,
5,
0,
4,
0,
"OmniPart_SM_SamModel"
],
[
6,
5,
1,
6,
1,
"OmniPart_SM_SegModel"
],
[
7,
5,
0,
6,
0,
"OmniPart_SM_SamModel"
],
[
8,
6,
0,
7,
0,
"IMAGE"
],
[
9,
6,
1,
7,
1,
"STRING"
],
[
10,
8,
0,
6,
2,
"IMAGE"
],
[
12,
10,
0,
4,
1,
"IMAGE"
],
[
13,
1,
0,
11,
0,
"OmniPart_SM_Model"
],
[
14,
2,
0,
11,
1,
"CONDITIONING"
],
[
16,
11,
0,
9,
1,
"STRING"
],
[
17,
11,
1,
12,
1,
"STRING"
]
],
"groups": [
{
"id": 1,
"title": "stage 1",
"bounding": [
149.05661010742188,
35.52260208129883,
729.3800048828125,
550.469970703125
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "stage2",
"bounding": [
915.0872802734375,
35.10811996459961,
1436.9989013671875,
850.6489868164062
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.6209213230591553,
"offset": [
72.33415540575886,
284.7602034522187
]
},
"frontendVersion": "1.26.13",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}