workflows / comfyui-workflows1 /3d-tripoSR-layered-diffusion.json
Luis-Filipe's picture
Upload 424 files
3339706 verified
{
"last_node_id": 68,
"last_link_id": 83,
"nodes": [
{
"id": 25,
"type": "[Comfy3D] Switch Mesh Axis",
"pos": [
1803.1909783117694,
210.53748545919083
],
"size": {
"0": 315,
"1": 130
},
"flags": {},
"order": 26,
"mode": 0,
"inputs": [
{
"name": "mesh",
"type": "MESH",
"link": 34
}
],
"outputs": [
{
"name": "switched_mesh",
"type": "MESH",
"links": [
35
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "[Comfy3D] Switch Mesh Axis"
},
"widgets_values": [
"+y",
"+z",
"+x",
false
]
},
{
"id": 36,
"type": "PreviewImage",
"pos": [
979.0298030114523,
499.35978986425783
],
"size": {
"0": 210,
"1": 246
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 49
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 27,
"type": "CheckpointLoaderSimple",
"pos": [
354.02980301145243,
218.3597898642582
],
"size": {
"0": 315,
"1": 98
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
44
],
"slot_index": 0
},
{
"name": "CLIP",
"type": "CLIP",
"links": [
40,
41
],
"slot_index": 1
},
{
"name": "VAE",
"type": "VAE",
"links": [
43
],
"slot_index": 2
}
],
"properties": {
"Node name for S&R": "CheckpointLoaderSimple"
},
"widgets_values": [
"juggernautXL_v8Rundiffusion.safetensors"
]
},
{
"id": 32,
"type": "LayeredDiffusionApply",
"pos": [
355.02980301145243,
354.35978986425727
],
"size": {
"0": 315,
"1": 82
},
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 44,
"slot_index": 0
}
],
"outputs": [
{
"name": "MODEL",
"type": "MODEL",
"links": [
36
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "LayeredDiffusionApply"
},
"widgets_values": [
"Attention Injection",
1
]
},
{
"id": 35,
"type": "Convert Masks to Images",
"pos": [
987.4543235085223,
435.00000000000006
],
"size": {
"0": 210,
"1": 26
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "masks",
"type": "MASK",
"link": 48
}
],
"outputs": [
{
"name": "IMAGES",
"type": "IMAGE",
"links": [
49
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Convert Masks to Images"
}
},
{
"id": 31,
"type": "VAEDecode",
"pos": [
987.4543235085223,
229
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 42
},
{
"name": "vae",
"type": "VAE",
"link": 43
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
46,
47
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "VAEDecode"
}
},
{
"id": 30,
"type": "CLIPTextEncode",
"pos": [
803.6834241210937,
1087.2178529296932
],
"size": {
"0": 293.58966064453125,
"1": 180.30287170410156
},
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 41
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
38
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"Unreal, Airbrushed, Digital"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 39,
"type": "JoinImageWithAlpha",
"pos": [
1204.8180264559678,
68.90907903151074
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 55
},
{
"name": "alpha",
"type": "MASK",
"link": 56
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
57
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "JoinImageWithAlpha"
}
},
{
"id": 21,
"type": "[Comfy3D] Load TripoSR Model",
"pos": [
1458.9529521484387,
216.5222457275393
],
"size": {
"0": 314.046630859375,
"1": 89.3758316040039
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "tsr_model",
"type": "TSR_MODEL",
"links": [
29
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "[Comfy3D] Load TripoSR Model"
},
"widgets_values": [
"model.ckpt",
8192
]
},
{
"id": 67,
"type": "Seed",
"pos": [
2373.7141777343672,
-0.47833346280171307
],
"size": {
"0": 315,
"1": 142
},
"flags": {
"collapsed": true
},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "seed",
"type": "SEED",
"links": null,
"shape": 3
},
{
"name": "number",
"type": "NUMBER",
"links": [
80
],
"shape": 3,
"slot_index": 1
},
{
"name": "float",
"type": "FLOAT",
"links": null,
"shape": 3
},
{
"name": "int",
"type": "INT",
"links": null,
"shape": 3,
"slot_index": 3
}
],
"properties": {
"Node name for S&R": "Seed"
},
"widgets_values": [
11,
"increment"
]
},
{
"id": 52,
"type": "Text Concatenate",
"pos": [
2373.7141777343672,
109.52166653719863
],
"size": [
315,
178
],
"flags": {
"collapsed": true
},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "text_a",
"type": "STRING",
"link": 70,
"widget": {
"name": "text_a"
},
"slot_index": 0
},
{
"name": "text_b",
"type": "STRING",
"link": 76,
"widget": {
"name": "text_b"
}
},
{
"name": "text_c",
"type": "STRING",
"link": 71,
"widget": {
"name": "text_c"
},
"slot_index": 2
},
{
"name": "text_d",
"type": "STRING",
"link": null,
"widget": {
"name": "text_d"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
69,
82
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Text Concatenate"
},
"widgets_values": [
"",
"true",
"TripoSR_Test/",
"",
".obj",
""
]
},
{
"id": 63,
"type": "Text Concatenate",
"pos": [
2379.7141777343672,
74.52166653719827
],
"size": [
315,
178
],
"flags": {
"collapsed": true
},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "text_a",
"type": "STRING",
"link": 75,
"widget": {
"name": "text_a"
},
"slot_index": 0
},
{
"name": "text_b",
"type": "STRING",
"link": 79,
"widget": {
"name": "text_b"
}
},
{
"name": "text_c",
"type": "STRING",
"link": null,
"widget": {
"name": "text_c"
},
"slot_index": 2
},
{
"name": "text_d",
"type": "STRING",
"link": null,
"widget": {
"name": "text_d"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
76
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Text Concatenate"
},
"widgets_values": [
"",
"true",
"object",
"",
".obj",
""
]
},
{
"id": 49,
"type": "Number to Text",
"pos": [
2376.7141777343672,
37.52166653719844
],
"size": {
"0": 210,
"1": 26
},
"flags": {
"collapsed": true
},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "number",
"type": "NUMBER",
"link": 80,
"slot_index": 0
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
79
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "Number to Text"
}
},
{
"id": 57,
"type": "PrimitiveNode",
"pos": [
2143.714177734366,
-100.47833346280184
],
"size": [
210,
58
],
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
70
],
"widget": {
"name": "text_a"
}
}
],
"title": "SaveDirectory",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
"TripoSR_Test/"
]
},
{
"id": 66,
"type": "PrimitiveNode",
"pos": [
2366.0402636718686,
-98.97614327725489
],
"size": [
210,
58
],
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
75
],
"widget": {
"name": "text_a"
},
"slot_index": 0
}
],
"title": "FileName",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
"object"
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 58,
"type": "PrimitiveNode",
"pos": [
2585.0402636718677,
-97.9761432772549
],
"size": [
246.28564933520374,
58
],
"flags": {},
"order": 5,
"mode": 0,
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
71
],
"widget": {
"name": "text_c"
},
"slot_index": 0
}
],
"title": "OBJ Extension (DON'T TOUCH)",
"properties": {
"Run widget replace on values": false
},
"widgets_values": [
".obj"
]
},
{
"id": 56,
"type": "ShowText|pysssss",
"pos": [
2575.0402636718686,
15.023856722745212
],
"size": [
210,
75.99998664855957
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 69,
"widget": {
"name": "text"
}
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [],
"shape": 6,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"",
"TripoSR_Test/object10.obj"
]
},
{
"id": 40,
"type": "SplitImageWithAlpha",
"pos": [
1433.8180264559678,
67.90907903151074
],
"size": {
"0": 210,
"1": 46
},
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 57
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
58,
62
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
60,
83
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "SplitImageWithAlpha"
}
},
{
"id": 44,
"type": "PreviewImage",
"pos": [
1687,
-128
],
"size": [
200.58783986172557,
246
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 62
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 68,
"type": "MaskPreview+",
"pos": [
1898,
-128
],
"size": [
189.43757690154507,
246
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 83,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "MaskPreview+"
}
},
{
"id": 37,
"type": "PreviewImage",
"pos": [
1213,
505
],
"size": {
"0": 208.85421752929688,
"1": 247.4138641357422
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 50
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 28,
"type": "EmptyLatentImage",
"pos": [
359,
469
],
"size": {
"0": 315,
"1": 106
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
39
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "EmptyLatentImage"
},
"widgets_values": [
1024,
1024,
1
]
},
{
"id": 26,
"type": "KSampler",
"pos": [
689,
219
],
"size": {
"0": 287.609130859375,
"1": 515.0712890625
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "model",
"type": "MODEL",
"link": 36
},
{
"name": "positive",
"type": "CONDITIONING",
"link": 37
},
{
"name": "negative",
"type": "CONDITIONING",
"link": 38
},
{
"name": "latent_image",
"type": "LATENT",
"link": 39,
"slot_index": 3
}
],
"outputs": [
{
"name": "LATENT",
"type": "LATENT",
"links": [
42,
45
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "KSampler"
},
"widgets_values": [
196249468063748,
"randomize",
30,
5,
"dpmpp_2m",
"normal",
1
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 29,
"type": "CLIPTextEncode",
"pos": [
803.6834241210937,
857.2178529296875
],
"size": {
"0": 292.48968505859375,
"1": 179.60287475585938
},
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "clip",
"type": "CLIP",
"link": 40
}
],
"outputs": [
{
"name": "CONDITIONING",
"type": "CONDITIONING",
"links": [
37
],
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "CLIPTextEncode"
},
"widgets_values": [
"3D robot chibi character, green robot, "
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 34,
"type": "PreviewImage",
"pos": [
1123.703006640624,
884.256590722656
],
"size": [
270.78329667968796,
335.0798906433108
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 47
}
],
"properties": {
"Node name for S&R": "PreviewImage"
}
},
{
"id": 20,
"type": "[Comfy3D] TripoSR",
"pos": [
1459.9529521484387,
337.5222457275389
],
"size": {
"0": 313.046630859375,
"1": 122
},
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "tsr_model",
"type": "TSR_MODEL",
"link": 29
},
{
"name": "reference_image",
"type": "IMAGE",
"link": 58
},
{
"name": "reference_mask",
"type": "MASK",
"link": 60
}
],
"outputs": [
{
"name": "MESH",
"type": "MESH",
"links": [
34
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "[Comfy3D] TripoSR"
},
"widgets_values": [
256,
25
]
},
{
"id": 14,
"type": "[Comfy3D] Save 3D Mesh",
"pos": [
1905,
383
],
"size": [
210,
59.29568907474277
],
"flags": {},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "mesh",
"type": "MESH",
"link": 35
},
{
"name": "save_path",
"type": "STRING",
"link": 82,
"widget": {
"name": "save_path"
}
}
],
"outputs": [
{
"name": "save_path",
"type": "STRING",
"links": [
16
],
"shape": 3,
"slot_index": 0
}
],
"properties": {
"Node name for S&R": "[Comfy3D] Save 3D Mesh"
},
"widgets_values": [
"TripoSR_Test/Robot12.obj"
]
},
{
"id": 15,
"type": "[Comfy3D] Preview 3DMesh",
"pos": [
1464.0004882812518,
561.9999389648431
],
"size": [
758.8993225097638,
658.8993225097638
],
"flags": {},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "mesh_file_path",
"type": "STRING",
"link": 16,
"widget": {
"name": "mesh_file_path"
}
}
],
"properties": {
"Node name for S&R": "[Comfy3D] Preview 3DMesh"
},
"widgets_values": [
"",
null
],
"color": "#222",
"bgcolor": "#000"
},
{
"id": 33,
"type": "LayeredDiffusionDecode",
"pos": [
986,
319
],
"size": {
"0": 210,
"1": 78
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "samples",
"type": "LATENT",
"link": 45
},
{
"name": "images",
"type": "IMAGE",
"link": 46
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
50,
55
],
"shape": 3,
"slot_index": 0
},
{
"name": "MASK",
"type": "MASK",
"links": [
48,
56
],
"shape": 3,
"slot_index": 1
}
],
"properties": {
"Node name for S&R": "LayeredDiffusionDecode"
},
"widgets_values": [
16
]
}
],
"links": [
[
16,
14,
0,
15,
0,
"STRING"
],
[
29,
21,
0,
20,
0,
"TSR_MODEL"
],
[
34,
20,
0,
25,
0,
"MESH"
],
[
35,
25,
0,
14,
0,
"MESH"
],
[
36,
32,
0,
26,
0,
"MODEL"
],
[
37,
29,
0,
26,
1,
"CONDITIONING"
],
[
38,
30,
0,
26,
2,
"CONDITIONING"
],
[
39,
28,
0,
26,
3,
"LATENT"
],
[
40,
27,
1,
29,
0,
"CLIP"
],
[
41,
27,
1,
30,
0,
"CLIP"
],
[
42,
26,
0,
31,
0,
"LATENT"
],
[
43,
27,
2,
31,
1,
"VAE"
],
[
44,
27,
0,
32,
0,
"MODEL"
],
[
45,
26,
0,
33,
0,
"LATENT"
],
[
46,
31,
0,
33,
1,
"IMAGE"
],
[
47,
31,
0,
34,
0,
"IMAGE"
],
[
48,
33,
1,
35,
0,
"MASK"
],
[
49,
35,
0,
36,
0,
"IMAGE"
],
[
50,
33,
0,
37,
0,
"IMAGE"
],
[
55,
33,
0,
39,
0,
"IMAGE"
],
[
56,
33,
1,
39,
1,
"MASK"
],
[
57,
39,
0,
40,
0,
"IMAGE"
],
[
58,
40,
0,
20,
1,
"IMAGE"
],
[
60,
40,
1,
20,
2,
"MASK"
],
[
62,
40,
0,
44,
0,
"IMAGE"
],
[
69,
52,
0,
56,
0,
"STRING"
],
[
70,
57,
0,
52,
0,
"STRING"
],
[
71,
58,
0,
52,
2,
"STRING"
],
[
75,
66,
0,
63,
0,
"STRING"
],
[
76,
63,
0,
52,
1,
"STRING"
],
[
79,
49,
0,
63,
1,
"STRING"
],
[
80,
67,
1,
49,
0,
"NUMBER"
],
[
82,
52,
0,
14,
1,
"STRING"
],
[
83,
40,
1,
68,
0,
"MASK"
]
],
"groups": [
{
"title": "LayeredDiffusion",
"bounding": [
342,
136,
1103,
619
],
"color": "#444",
"font_size": 24,
"locked": false
},
{
"title": "TripoSR",
"bounding": [
1452,
138,
675,
334
],
"color": "#444",
"font_size": 24,
"locked": false
},
{
"title": "Input",
"bounding": [
787,
761,
656,
539
],
"color": "#8A8",
"font_size": 24,
"locked": false
},
{
"title": "Bridge",
"bounding": [
1196,
-8,
465,
138
],
"color": "#b58b2a",
"font_size": 24,
"locked": false
},
{
"title": "Output",
"bounding": [
1455,
485,
784,
750
],
"color": "#444",
"font_size": 24,
"locked": false
},
{
"title": "Output File Naming (CHANGE Directory And FileName as you wish)",
"bounding": [
2134,
-178,
732,
301
],
"color": "#444",
"font_size": 24,
"locked": false
}
],
"config": {},
"extra": {},
"version": 0.4
}