色调校正与特效
让画像变亮、提高对比度、添加发光效果让画面更帅气,这对于设计师和画师来说是熟悉的工序。
在图像生成中,有时也会使用这些功能作为“预处理”,将图像调整为 AI 易于处理的状态。
虽然有很多关于图像处理的自定义节点,也能进行更高级的处理,但老实说,在很多场合下,使用习惯的绘图工具会觉得更轻松。
没有必要全部都在 ComfyUI 中完成。
基本加工
Invert image 节点
生成反转了 RGB 值的底片图像。

{
"id": "4868028c-000b-496e-b4e0-958cdd175f4a",
"revision": 0,
"last_node_id": 66,
"last_link_id": 95,
"nodes": [
{
"id": 53,
"type": "LoadImage",
"pos": [
73.72727272727276,
158.8181818181818
],
"size": [
318.5017680965466,
400.92742544483326
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
94
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example.png",
"image"
]
},
{
"id": 65,
"type": "PreviewImage",
"pos": [
662.0453636363629,
158.8181818181818
],
"size": [
361.8754545454541,
401.1706611570247
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 95
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 66,
"type": "ImageInvert",
"pos": [
457.13720223009113,
158.8181818181818
],
"size": [
140,
26
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 94
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
95
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "ImageInvert"
},
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
94,
53,
0,
66,
0,
"IMAGE"
],
[
95,
66,
0,
65,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.8264462809917354,
"offset": [
26.272727272727238,
-58.81818181818181
]
},
"frontendVersion": "1.30.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
Image Sharpen 节点
让轮廓变得清晰。

{
"id": "4868028c-000b-496e-b4e0-958cdd175f4a",
"revision": 0,
"last_node_id": 67,
"last_link_id": 97,
"nodes": [
{
"id": 53,
"type": "LoadImage",
"pos": [
73.72727272727276,
158.8181818181818
],
"size": [
318.5017680965466,
400.92742544483326
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
96
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example.png",
"image"
]
},
{
"id": 65,
"type": "PreviewImage",
"pos": [
754.6073471074372,
158.8181818181818
],
"size": [
361.8754545454541,
401.1706611570247
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 97
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 67,
"type": "ImageSharpen",
"pos": [
438.4181939656283,
158.8181818181818
],
"size": [
270,
106
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 96
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
97
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "ImageSharpen"
},
"widgets_values": [
20,
1,
1
],
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
96,
53,
0,
67,
0,
"IMAGE"
],
[
97,
67,
0,
65,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.9090909090909091,
"offset": [
218.77272727272722,
42.3818181818182
]
},
"frontendVersion": "1.30.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
Image Blur 节点
模糊图像。

{
"id": "4868028c-000b-496e-b4e0-958cdd175f4a",
"revision": 0,
"last_node_id": 68,
"last_link_id": 99,
"nodes": [
{
"id": 65,
"type": "PreviewImage",
"pos": [
754.6073471074372,
158.8181818181818
],
"size": [
361.8754545454541,
401.1706611570247
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 99
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 53,
"type": "LoadImage",
"pos": [
73.72727272727276,
158.8181818181818
],
"size": [
318.5017680965466,
400.92742544483326
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
98
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example.png",
"image"
]
},
{
"id": 68,
"type": "ImageBlur",
"pos": [
442.1372022300911,
158.8181818181818
],
"size": [
262.5619834710744,
82
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 98
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
99
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "ImageBlur"
},
"widgets_values": [
20,
1
],
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
98,
53,
0,
68,
0,
"IMAGE"
],
[
99,
68,
0,
65,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [
148.27272727272725,
58.18181818181819
]
},
"frontendVersion": "1.30.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
Image Quantize 节点
减少颜色数量(色调分离)。

{
"id": "4868028c-000b-496e-b4e0-958cdd175f4a",
"revision": 0,
"last_node_id": 69,
"last_link_id": 102,
"nodes": [
{
"id": 65,
"type": "PreviewImage",
"pos": [
754.6073471074372,
158.8181818181818
],
"size": [
361.8754545454541,
401.1706611570247
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 102
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 53,
"type": "LoadImage",
"pos": [
73.72727272727276,
158.8181818181818
],
"size": [
318.5017680965466,
400.92742544483326
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
101
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example.png",
"image"
]
},
{
"id": 69,
"type": "ImageQuantize",
"pos": [
441.4181939656283,
158.8181818181818
],
"size": [
264,
82
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 101
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
102
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "ImageQuantize"
},
"widgets_values": [
3,
"none"
],
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
101,
53,
0,
69,
0,
"IMAGE"
],
[
102,
69,
0,
65,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [
84.27272727272724,
0.18181818181818699
]
},
"frontendVersion": "1.30.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
ImageAddNoise 节点
向图像添加噪点。

{
"id": "4868028c-000b-496e-b4e0-958cdd175f4a",
"revision": 0,
"last_node_id": 71,
"last_link_id": 104,
"nodes": [
{
"id": 65,
"type": "PreviewImage",
"pos": [
754.6073471074372,
158.8181818181818
],
"size": [
361.8754545454541,
401.1706611570247
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 104
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 53,
"type": "LoadImage",
"pos": [
73.72727272727276,
158.8181818181818
],
"size": [
318.5017680965466,
400.92742544483326
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
103
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example.png",
"image"
]
},
{
"id": 71,
"type": "ImageAddNoise",
"pos": [
438.4181939656283,
158.8181818181818
],
"size": [
270,
106
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 103
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
104
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "ImageAddNoise"
},
"widgets_values": [
1234,
"fixed",
0.5
],
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
103,
53,
0,
71,
0,
"IMAGE"
],
[
104,
71,
0,
65,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1,
"offset": [
26.272727272727238,
-58.81818181818181
]
},
"frontendVersion": "1.30.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
稍微有点小众,但在进行 image2image 时,有一种技巧是特意添加噪点,从而在低 denoise 设置下增加细节。
cf. 向像素图像添加噪点,在低 denoise 的 image2image 中增加细节
形态学转换 (Morphology)
可能不太熟悉这个词,主要是针对黑白蒙版图像进行处理。 可以进行“加粗线条(膨胀)”、“去除噪点(收缩)”等处理。

{
"id": "4868028c-000b-496e-b4e0-958cdd175f4a",
"revision": 0,
"last_node_id": 72,
"last_link_id": 106,
"nodes": [
{
"id": 65,
"type": "PreviewImage",
"pos": [
754.6073471074372,
158.8181818181818
],
"size": [
361.8754545454541,
401.1706611570247
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 106
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "PreviewImage"
},
"widgets_values": []
},
{
"id": 53,
"type": "LoadImage",
"pos": [
73.72727272727276,
158.8181818181818
],
"size": [
318.5017680965466,
400.92742544483326
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
105
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "LoadImage"
},
"widgets_values": [
"example_morphology.png",
"image"
]
},
{
"id": 72,
"type": "Morphology",
"pos": [
443.4958677685951,
158.8181818181818
],
"size": [
270,
82
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 105
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
106
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.71",
"Node name for S&R": "Morphology"
},
"widgets_values": [
"gradient",
5
],
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
105,
53,
0,
72,
0,
"IMAGE"
],
[
106,
72,
0,
65,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.1000000000000003,
"offset": [
26.272727272727238,
-58.81818181818181
]
},
"frontendVersion": "1.30.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
专业的色调校正(自定义节点)
像 Photoshop 那样,添加更实用的图像编辑功能的自定义节点多如繁星。 其中,我推荐一个涵盖了基本功能,并且简单易用的。
ComfyUI-Image-Effects

色相、饱和度、亮度的调整(HSV 调整),或者类似色调曲线的调整,以及各种滤镜等,只要是人类想要调整的功能,大多都包含在内。 详细的功能列表请查看仓库的文档。