Files
APZmedia-Comfyui-LightDirec…/example/TEST-Light_source_estimation-v2.json

1342 lines
23 KiB
JSON

{
"id": "230501c2-1bdf-4de9-acf4-029d44a5be8a",
"revision": 0,
"last_node_id": 65,
"last_link_id": 187,
"nodes": [
{
"id": 4,
"type": "PreviewImage",
"pos": [
-272.3358154296875,
-10290.228515625
],
"size": [
140,
246
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 179
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 11,
"type": "ShowText|pysssss",
"pos": [
-518.1137084960938,
-10147.5849609375
],
"size": [
140,
76
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 172
}
],
"outputs": [
{
"name": "STRING",
"shape": 6,
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-custom-scripts",
"ver": "f2838ed5e59de4d73cde5c98354b87a8d3200190",
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"below"
]
},
{
"id": 36,
"type": "PreviewImage",
"pos": [
-1001.032958984375,
-10869.7724609375
],
"size": [
140,
246
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 101
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 35,
"type": "PreviewImage",
"pos": [
-1000.0613403320312,
-11126.2275390625
],
"size": [
140,
246
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 100
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 23,
"type": "LBM_DepthNormal",
"pos": [
-1851.126220703125,
-10596.0146484375
],
"size": [
271.40234375,
150
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 164
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
43,
56,
99,
169
]
}
],
"properties": {
"cnr_id": "comfyui-lbm",
"ver": "1.1.0",
"Node name for S&R": "LBM_DepthNormal"
},
"widgets_values": [
"normal",
28,
"bf16",
0.1
]
},
{
"id": 22,
"type": "PreviewImage",
"pos": [
-1378.55908203125,
-10602.494140625
],
"size": [
144.06028747558594,
263.2562561035156
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 43
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 9,
"type": "PreviewImage",
"pos": [
-1380.06298828125,
-10133.265625
],
"size": [
140,
246
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 7
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 40,
"type": "ShowText|pysssss",
"pos": [
-525.6565551757812,
-10006.40625
],
"size": [
140,
76
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 173
}
],
"outputs": [
{
"name": "STRING",
"shape": 6,
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-custom-scripts",
"ver": "f2838ed5e59de4d73cde5c98354b87a8d3200190",
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"below-left"
]
},
{
"id": 7,
"type": "rgb2x",
"pos": [
-1845.685791015625,
-10165.0966796875
],
"size": [
270,
130
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 163
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
7,
113
]
}
],
"properties": {
"cnr_id": "comfyui_rgbx_wrapper",
"ver": "1.0.1",
"Node name for S&R": "rgb2x"
},
"widgets_values": [
"irradiance",
638473917044985,
"randomize",
56
]
},
{
"id": 54,
"type": "PreviewImage",
"pos": [
89.37258911132812,
-10291.7216796875
],
"size": [
140,
246
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 182
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.62",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 17,
"type": "PreviewImage",
"pos": [
-86.15929412841797,
-10291.986328125
],
"size": [
140,
246
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 180
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 55,
"type": "PreviewImage",
"pos": [
242.4046173095703,
-10289.0888671875
],
"size": [
140,
246
],
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 183
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.62",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 28,
"type": "PreviewImage",
"pos": [
402.8526306152344,
-10319.2578125
],
"size": [
443.6752014160156,
302.71405029296875
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 181
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 10,
"type": "ShowText|pysssss",
"pos": [
-507.6148376464844,
-10315.732421875
],
"size": [
140,
76
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 171
}
],
"outputs": [
{
"name": "STRING",
"shape": 6,
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-custom-scripts",
"ver": "f2838ed5e59de4d73cde5c98354b87a8d3200190",
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"left"
]
},
{
"id": 34,
"type": "SplitImageChannels",
"pos": [
-1374.5909423828125,
-10992.7822265625
],
"size": [
172.97518920898438,
86
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 99
}
],
"outputs": [
{
"name": "red",
"type": "IMAGE",
"links": [
100,
112
]
},
{
"name": "green",
"type": "IMAGE",
"links": null
},
{
"name": "blue",
"type": "IMAGE",
"links": [
101
]
},
{
"name": "mask",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "1.1.6",
"Node name for S&R": "SplitImageChannels"
},
"widgets_values": []
},
{
"id": 44,
"type": "ImageBlend",
"pos": [
-783.8257446289062,
-10934.4375
],
"size": [
270,
102
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 112
},
{
"name": "image2",
"type": "IMAGE",
"link": 113
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
114
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.62",
"Node name for S&R": "ImageBlend"
},
"widgets_values": [
1,
"difference"
]
},
{
"id": 45,
"type": "PreviewImage",
"pos": [
-378.05706787109375,
-10963.8818359375
],
"size": [
140,
246
],
"flags": {},
"order": 25,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 114
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.62",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 25,
"type": "Image Comparer (rgthree)",
"pos": [
-1096.887939453125,
-10581.80859375
],
"size": [
378.0091857910156,
356.197021484375
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"dir": 3,
"name": "image_a",
"type": "IMAGE",
"link": 56
},
{
"dir": 3,
"name": "image_b",
"type": "IMAGE",
"link": 166
}
],
"outputs": [],
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "0fb1e239a903e93ef626a8c20589b38f46e39dff",
"comparer_mode": "Slide"
},
"widgets_values": [
[
{
"name": "A",
"selected": true,
"url": "/api/view?filename=rgthree.compare._temp_vxgec_00001_.png&type=temp&subfolder=&rand=0.4116569896454545"
},
{
"name": "B",
"selected": true,
"url": "/api/view?filename=rgthree.compare._temp_vxgec_00002_.png&type=temp&subfolder=&rand=0.342576321220867"
}
]
]
},
{
"id": 61,
"type": "ImageResizeKJv2",
"pos": [
-2217.976806640625,
-10378.5341796875
],
"size": [
270,
336
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 167
},
{
"name": "mask",
"shape": 7,
"type": "MASK",
"link": null
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
163,
164,
165,
166,
170,
184
]
},
{
"name": "width",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
},
{
"name": "mask",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "1.1.6",
"Node name for S&R": "ImageResizeKJv2"
},
"widgets_values": [
1280,
1280,
"nearest-exact",
"resize",
"0, 0, 0",
"center",
2,
"cpu"
]
},
{
"id": 63,
"type": "PreviewImage",
"pos": [
-1635.828125,
-9798.4189453125
],
"size": [
140,
26
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 184
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.62",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 2,
"type": "LoadImage",
"pos": [
-2588.37939453125,
-10386.6181640625
],
"size": [
270,
314
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
167,
185
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"Soft-right.png",
"image"
]
},
{
"id": 65,
"type": "AILab_MaskPreview",
"pos": [
-1782.2584228515625,
-9650.0732421875
],
"size": [
320,
246
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "mask",
"type": "MASK",
"link": 186
}
],
"outputs": [
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-rmbg",
"ver": "2.9.2",
"Node name for S&R": "AILab_MaskPreview"
},
"widgets_values": [],
"color": "#2e3e57",
"bgcolor": "#4b5b73"
},
{
"id": 62,
"type": "NormalMapLightEstimator",
"pos": [
-1042.2467041015625,
-10141.666015625
],
"size": [
281.759765625,
514
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "normal_map",
"type": "IMAGE",
"link": 169
},
{
"name": "luma_image",
"type": "IMAGE",
"link": 170
},
{
"name": "exclusion_mask",
"shape": 7,
"type": "MASK",
"link": 187
}
],
"outputs": [
{
"name": "x_direction",
"type": "STRING",
"links": [
171
]
},
{
"name": "y_direction",
"type": "STRING",
"links": [
172
]
},
{
"name": "combined_direction",
"type": "STRING",
"links": [
173
]
},
{
"name": "hard_soft_index",
"type": "STRING",
"links": [
174
]
},
{
"name": "x_confidence",
"type": "STRING",
"links": []
},
{
"name": "y_confidence",
"type": "STRING",
"links": []
},
{
"name": "overall_confidence",
"type": "STRING",
"links": []
},
{
"name": "spread_value",
"type": "STRING",
"links": []
},
{
"name": "debug_mask",
"type": "IMAGE",
"links": [
179
]
},
{
"name": "lit_normals_viz",
"type": "IMAGE",
"links": [
180
]
},
{
"name": "cluster_delta_chart",
"type": "IMAGE",
"links": [
181
]
},
{
"name": "x_threshold_preview",
"type": "IMAGE",
"links": [
182
]
},
{
"name": "y_threshold_preview",
"type": "IMAGE",
"links": [
183
]
}
],
"properties": {
"aux_id": "APZmedia/Comfyui-LightDirection-estimation",
"ver": "95107916681a73057800254f9d66057ef630e840",
"Node name for S&R": "NormalMapLightEstimator"
},
"widgets_values": [
0.5,
"s_curve",
0.4,
0.1,
0.3,
0.15,
0.35,
"auto",
"DirectX",
"advanced"
]
},
{
"id": 57,
"type": "ShowText|pysssss",
"pos": [
-519.0623779296875,
-9863.427734375
],
"size": [
140,
76
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 174
}
],
"outputs": [
{
"name": "STRING",
"shape": 6,
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-custom-scripts",
"ver": "f2838ed5e59de4d73cde5c98354b87a8d3200190",
"Node name for S&R": "ShowText|pysssss"
},
"widgets_values": [
"Hard"
]
},
{
"id": 30,
"type": "PreviewImage",
"pos": [
-1361.0015869140625,
-9786.2705078125
],
"size": [
140,
246
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 165
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.59",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 64,
"type": "RMBG",
"pos": [
-2221.221923828125,
-9897.4501953125
],
"size": [
340,
302
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 185
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": null
},
{
"name": "MASK",
"type": "MASK",
"links": [
186,
187
]
},
{
"name": "MASK_IMAGE",
"type": "IMAGE",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-rmbg",
"ver": "2.9.2",
"Node name for S&R": "RMBG"
},
"widgets_values": [
"RMBG-2.0",
1,
1024,
0,
0,
false,
false,
"Alpha",
"#222222"
],
"color": "#222e40",
"bgcolor": "#364254"
}
],
"links": [
[
7,
7,
0,
9,
0,
"IMAGE"
],
[
43,
23,
0,
22,
0,
"IMAGE"
],
[
56,
23,
0,
25,
0,
"IMAGE"
],
[
99,
23,
0,
34,
0,
"IMAGE"
],
[
100,
34,
0,
35,
0,
"IMAGE"
],
[
101,
34,
2,
36,
0,
"IMAGE"
],
[
112,
34,
0,
44,
0,
"IMAGE"
],
[
113,
7,
0,
44,
1,
"IMAGE"
],
[
114,
44,
0,
45,
0,
"IMAGE"
],
[
163,
61,
0,
7,
0,
"IMAGE"
],
[
164,
61,
0,
23,
0,
"IMAGE"
],
[
165,
61,
0,
30,
0,
"IMAGE"
],
[
166,
61,
0,
25,
1,
"IMAGE"
],
[
167,
2,
0,
61,
0,
"IMAGE"
],
[
169,
23,
0,
62,
0,
"IMAGE"
],
[
170,
61,
0,
62,
1,
"IMAGE"
],
[
171,
62,
0,
10,
0,
"STRING"
],
[
172,
62,
1,
11,
0,
"STRING"
],
[
173,
62,
2,
40,
0,
"STRING"
],
[
174,
62,
3,
57,
0,
"STRING"
],
[
179,
62,
8,
4,
0,
"IMAGE"
],
[
180,
62,
9,
17,
0,
"IMAGE"
],
[
181,
62,
10,
28,
0,
"IMAGE"
],
[
182,
62,
11,
54,
0,
"IMAGE"
],
[
183,
62,
12,
55,
0,
"IMAGE"
],
[
184,
61,
0,
63,
0,
"IMAGE"
],
[
185,
2,
0,
64,
0,
"IMAGE"
],
[
186,
64,
1,
65,
0,
"MASK"
],
[
187,
64,
1,
62,
2,
"MASK"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.8385987047315239,
"offset": [
2174.328177055079,
10447.854172965668
]
},
"frontendVersion": "1.26.13"
},
"version": 0.4
}