Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jjjjjenkins/c80fd4e07174da53ceb315a7da40d301 to your computer and use it in GitHub Desktop.

Select an option

Save jjjjjenkins/c80fd4e07174da53ceb315a7da40d301 to your computer and use it in GitHub Desktop.
These are two comfyui workflows to train a flux lora (one to do training, the other to generate "txt" from sample images)
{
"id": "876a5e28-9915-43e2-bf09-c91497f44b7a",
"revision": 0,
"last_node_id": 173,
"last_link_id": 259,
"nodes": [
{
"id": 2,
"type": "FluxTrainModelSelect",
"pos": [
250,
87
],
"size": [
430,
172
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [
{
"name": "lora_path",
"shape": 7,
"type": "STRING",
"link": null
}
],
"outputs": [
{
"name": "flux_models",
"type": "TRAIN_FLUX_MODELS",
"links": [
179
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainModelSelect",
"widget_ue_connectable": {}
},
"widgets_values": [
"flux1-dev-fp8-kijai.safetensors",
"ae.safetensors",
"clip_l.safetensors",
"t5xxl_fp8_e4m3fn.safetensors"
]
},
{
"id": 4,
"type": "FluxTrainLoop",
"pos": [
1470,
232
],
"size": [
393,
78
],
"flags": {},
"order": 38,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 181
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
7,
162
]
},
{
"name": "steps",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainLoop",
"widget_ue_connectable": {}
},
"widgets_values": [
400
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 8,
"type": "FluxTrainValidate",
"pos": [
1538.6798095703125,
487.5579528808594
],
"size": [
468.5999755859375,
46
],
"flags": {},
"order": 41,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 7
},
{
"name": "validation_settings",
"shape": 7,
"type": "VALSETTINGS",
"link": 60
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
40
]
},
{
"name": "validation_images",
"type": "IMAGE",
"slot_index": 1,
"links": [
8,
112
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainValidate",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 9,
"type": "PreviewImage",
"pos": [
1529,
588
],
"size": [
891.4732666015625,
476.6578063964844
],
"flags": {},
"order": 44,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 8
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "PreviewImage",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 14,
"type": "FluxTrainSave",
"pos": [
2040,
420
],
"size": [
393,
122
],
"flags": {},
"order": 43,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 40
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
72
]
},
{
"name": "lora_path",
"type": "STRING",
"slot_index": 1,
"links": []
},
{
"name": "steps",
"type": "INT",
"slot_index": 2,
"links": [
110
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainSave",
"widget_ue_connectable": {}
},
"widgets_values": [
false,
false
]
},
{
"id": 37,
"type": "FluxTrainValidationSettings",
"pos": [
773,
13
],
"size": [
315,
250
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "validation_settings",
"type": "VALSETTINGS",
"slot_index": 0,
"links": [
58
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainValidationSettings",
"widget_ue_connectable": {}
},
"widgets_values": [
20,
1024,
1024,
3,
42,
"fixed",
true,
0.5,
1.15
]
},
{
"id": 38,
"type": "SetNode",
"pos": [
1137,
43
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "VALSETTINGS",
"type": "VALSETTINGS",
"link": 58
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_validation_settings",
"properties": {
"previousName": "validation_settings",
"widget_ue_connectable": {}
},
"widgets_values": [
"validation_settings"
]
},
{
"id": 40,
"type": "GetNode",
"pos": [
1528.677978515625,
437.5579528808594
],
"size": [
277.0899353027344,
58
],
"flags": {
"collapsed": true
},
"order": 2,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "VALSETTINGS",
"type": "VALSETTINGS",
"slot_index": 0,
"links": [
60
]
}
],
"title": "Get_validation_settings",
"properties": {
"widget_ue_connectable": {}
},
"widgets_values": [
"validation_settings"
]
},
{
"id": 44,
"type": "FluxTrainLoop",
"pos": [
2627,
291
],
"size": [
393,
78
],
"flags": {},
"order": 46,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 72
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
137,
164
]
},
{
"name": "steps",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainLoop",
"widget_ue_connectable": {}
},
"widgets_values": [
400
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 45,
"type": "FluxTrainValidate",
"pos": [
2640,
500
],
"size": [
468.5999755859375,
46
],
"flags": {},
"order": 48,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 137
},
{
"name": "validation_settings",
"shape": 7,
"type": "VALSETTINGS",
"link": 69
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
71
]
},
{
"name": "validation_images",
"type": "IMAGE",
"slot_index": 1,
"links": [
70,
119
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainValidate",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 46,
"type": "PreviewImage",
"pos": [
2654,
609
],
"size": [
850.0181274414062,
452.6767578125
],
"flags": {},
"order": 52,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 70
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "PreviewImage",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 47,
"type": "FluxTrainSave",
"pos": [
3160,
420
],
"size": [
393,
122
],
"flags": {},
"order": 51,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 71
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
97
]
},
{
"name": "lora_path",
"type": "STRING",
"links": null
},
{
"name": "steps",
"type": "INT",
"slot_index": 2,
"links": [
116
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainSave",
"widget_ue_connectable": {}
},
"widgets_values": [
false,
false
]
},
{
"id": 48,
"type": "GetNode",
"pos": [
2630,
450
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VALSETTINGS",
"type": "VALSETTINGS",
"slot_index": 0,
"links": [
69
]
}
],
"title": "Get_validation_settings",
"properties": {
"widget_ue_connectable": {}
},
"widgets_values": [
"validation_settings"
]
},
{
"id": 59,
"type": "FluxTrainLoop",
"pos": [
3697,
338
],
"size": [
393,
78
],
"flags": {},
"order": 55,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 97
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
88,
166
]
},
{
"name": "steps",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainLoop",
"widget_ue_connectable": {}
},
"widgets_values": [
400
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 60,
"type": "FluxTrainValidate",
"pos": [
3716.708740234375,
510
],
"size": [
468.5999755859375,
46
],
"flags": {},
"order": 57,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 88
},
{
"name": "validation_settings",
"shape": 7,
"type": "VALSETTINGS",
"link": 89
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
91
]
},
{
"name": "validation_images",
"type": "IMAGE",
"slot_index": 1,
"links": [
90,
122
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainValidate",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 61,
"type": "PreviewImage",
"pos": [
3707,
610
],
"size": [
809.35400390625,
458.6750793457031
],
"flags": {},
"order": 61,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 90
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "PreviewImage",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 62,
"type": "FluxTrainSave",
"pos": [
4230,
420
],
"size": [
393,
122
],
"flags": {},
"order": 60,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 91
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
92
]
},
{
"name": "lora_path",
"type": "STRING",
"links": null
},
{
"name": "steps",
"type": "INT",
"slot_index": 2,
"links": [
120
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainSave",
"widget_ue_connectable": {}
},
"widgets_values": [
false,
false
]
},
{
"id": 63,
"type": "GetNode",
"pos": [
3706.7109375,
460
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "VALSETTINGS",
"type": "VALSETTINGS",
"slot_index": 0,
"links": [
89
]
}
],
"title": "Get_validation_settings",
"properties": {
"widget_ue_connectable": {}
},
"widgets_values": [
"validation_settings"
]
},
{
"id": 64,
"type": "FluxTrainLoop",
"pos": [
4765,
358
],
"size": [
393,
78
],
"flags": {},
"order": 64,
"mode": 4,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 92
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
93
]
},
{
"name": "steps",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainLoop",
"widget_ue_connectable": {}
},
"widgets_values": [
750
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 65,
"type": "FluxTrainValidate",
"pos": [
4775.216796875,
518.4568481445312
],
"size": [
468.5999755859375,
46
],
"flags": {},
"order": 66,
"mode": 4,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 93
},
{
"name": "validation_settings",
"shape": 7,
"type": "VALSETTINGS",
"link": 94
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
96
]
},
{
"name": "validation_images",
"type": "IMAGE",
"slot_index": 1,
"links": [
95,
126
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainValidate",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 66,
"type": "PreviewImage",
"pos": [
4785,
628
],
"size": [
850.0181274414062,
452.6767578125
],
"flags": {},
"order": 69,
"mode": 4,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 95
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "PreviewImage",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 67,
"type": "FluxTrainSave",
"pos": [
5280,
420
],
"size": [
393,
122
],
"flags": {},
"order": 68,
"mode": 4,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 96
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"slot_index": 0,
"links": [
98,
99
]
},
{
"name": "lora_path",
"type": "STRING",
"slot_index": 1,
"links": []
},
{
"name": "steps",
"type": "INT",
"links": [
125
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainSave",
"widget_ue_connectable": {}
},
"widgets_values": [
false,
false
]
},
{
"id": 68,
"type": "GetNode",
"pos": [
4765.21875,
468.45684814453125
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 5,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "VALSETTINGS",
"type": "VALSETTINGS",
"slot_index": 0,
"links": [
94
]
}
],
"title": "Get_validation_settings",
"properties": {
"widget_ue_connectable": {}
},
"widgets_values": [
"validation_settings"
]
},
{
"id": 69,
"type": "FluxTrainEnd",
"pos": [
5884,
415
],
"size": [
317.4000244140625,
98
],
"flags": {},
"order": 71,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 98
}
],
"outputs": [
{
"name": "lora_name",
"type": "STRING",
"slot_index": 0,
"links": [
103,
213
]
},
{
"name": "metadata",
"type": "STRING",
"links": null
},
{
"name": "lora_path",
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "FluxTrainEnd",
"widget_ue_connectable": {}
},
"widgets_values": [
false
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 70,
"type": "VisualizeLoss",
"pos": [
5586,
-246
],
"size": [
254.40000915527344,
198
],
"flags": {},
"order": 72,
"mode": 4,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 99
}
],
"outputs": [
{
"name": "plot",
"type": "IMAGE",
"slot_index": 0,
"links": [
138
]
},
{
"name": "loss_list",
"type": "FLOAT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "VisualizeLoss",
"widget_ue_connectable": {}
},
"widgets_values": [
"ggplot",
1000,
true,
768,
512,
false
]
},
{
"id": 74,
"type": "Display Any (rgthree)",
"pos": [
6252,
500
],
"size": [
358.62896728515625,
88
],
"flags": {},
"order": 74,
"mode": 0,
"inputs": [
{
"dir": 3,
"name": "source",
"type": "*",
"link": 103
}
],
"outputs": [],
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "5dc53323e07a021038af9f2a4a06ebc071f7218c",
"Node name for S&R": "Display Any (rgthree)",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 78,
"type": "AddLabel",
"pos": [
2023,
1177
],
"size": [
315,
274
],
"flags": {
"collapsed": true
},
"order": 50,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 112
},
{
"name": "caption",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 111
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
200
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "AddLabel",
"widget_ue_connectable": {
"text": true
}
},
"widgets_values": [
10,
2,
48,
32,
"white",
"black",
"FreeMono.ttf",
"Text",
"up"
]
},
{
"id": 79,
"type": "SomethingToString",
"pos": [
1815,
1177
],
"size": [
315,
82
],
"flags": {
"collapsed": true
},
"order": 47,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 110
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
111
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "SomethingToString",
"widget_ue_connectable": {}
},
"widgets_values": [
"steps ",
""
]
},
{
"id": 80,
"type": "AddLabel",
"pos": [
2982,
1177
],
"size": [
315,
274
],
"flags": {
"collapsed": true
},
"order": 59,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 119
},
{
"name": "caption",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 117
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
201
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "AddLabel",
"widget_ue_connectable": {
"text": true
}
},
"widgets_values": [
10,
2,
48,
32,
"white",
"black",
"FreeMono.ttf",
"Text",
"up"
]
},
{
"id": 81,
"type": "SomethingToString",
"pos": [
2774,
1177
],
"size": [
315,
82
],
"flags": {
"collapsed": true
},
"order": 56,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 116
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
117
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "SomethingToString",
"widget_ue_connectable": {}
},
"widgets_values": [
"steps ",
""
]
},
{
"id": 82,
"type": "SomethingToString",
"pos": [
3909,
1177
],
"size": [
315,
82
],
"flags": {
"collapsed": true
},
"order": 65,
"mode": 0,
"inputs": [
{
"name": "input",
"type": "*",
"link": 120
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
121
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "SomethingToString",
"widget_ue_connectable": {}
},
"widgets_values": [
"steps ",
""
]
},
{
"id": 83,
"type": "AddLabel",
"pos": [
4130,
1177
],
"size": [
315,
274
],
"flags": {
"collapsed": true
},
"order": 67,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 122
},
{
"name": "caption",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 121
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
204
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "AddLabel",
"widget_ue_connectable": {
"text": true
}
},
"widgets_values": [
10,
2,
48,
32,
"white",
"black",
"FreeMono.ttf",
"Text",
"up"
]
},
{
"id": 84,
"type": "SomethingToString",
"pos": [
4963,
1177
],
"size": [
315,
82
],
"flags": {
"collapsed": true
},
"order": 73,
"mode": 4,
"inputs": [
{
"name": "input",
"type": "*",
"link": 125
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
124
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "SomethingToString",
"widget_ue_connectable": {}
},
"widgets_values": [
"steps ",
""
]
},
{
"id": 85,
"type": "AddLabel",
"pos": [
5171,
1177
],
"size": [
315,
274
],
"flags": {
"collapsed": true
},
"order": 77,
"mode": 4,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 126
},
{
"name": "caption",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 124
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
207
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "AddLabel",
"widget_ue_connectable": {
"text": true
}
},
"widgets_values": [
10,
2,
48,
32,
"white",
"black",
"FreeMono.ttf",
"Text",
"up"
]
},
{
"id": 88,
"type": "Display Any (rgthree)",
"pos": [
1142,
124
],
"size": [
210,
88
],
"flags": {},
"order": 39,
"mode": 0,
"inputs": [
{
"dir": 3,
"name": "source",
"type": "*",
"link": 182
}
],
"outputs": [],
"title": "Number of epochs",
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "5dc53323e07a021038af9f2a4a06ebc071f7218c",
"Node name for S&R": "Display Any (rgthree)",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 90,
"type": "SaveImage",
"pos": [
5877,
-60
],
"size": [
574.23046875,
414.46881103515625
],
"flags": {},
"order": 76,
"mode": 4,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 138
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "SaveImage",
"widget_ue_connectable": {}
},
"widgets_values": [
"flux_lora_loss_plot"
]
},
{
"id": 95,
"type": "OptimizerConfig",
"pos": [
327,
501
],
"size": [
315,
256
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "optimizer_settings",
"type": "ARGS",
"links": [
180
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "OptimizerConfig",
"widget_ue_connectable": {}
},
"widgets_values": [
"CAME",
1,
"constant",
0,
1,
1,
0,
""
]
},
{
"id": 97,
"type": "VisualizeLoss",
"pos": [
1679,
-592
],
"size": [
303.6300048828125,
198
],
"flags": {},
"order": 42,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 162
}
],
"outputs": [
{
"name": "plot",
"type": "IMAGE",
"slot_index": 0,
"links": [
161
]
},
{
"name": "loss_list",
"type": "FLOAT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "VisualizeLoss",
"widget_ue_connectable": {}
},
"widgets_values": [
"seaborn-v0_8-dark-palette",
100,
true,
768,
512,
false
]
},
{
"id": 98,
"type": "SaveImage",
"pos": [
1888,
-338
],
"size": [
645.9608764648438,
439.37261962890625
],
"flags": {},
"order": 45,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 161
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "SaveImage",
"widget_ue_connectable": {}
},
"widgets_values": [
"flux_lora_loss_plot"
]
},
{
"id": 99,
"type": "VisualizeLoss",
"pos": [
2962,
-550
],
"size": [
403.5296936035156,
198
],
"flags": {},
"order": 49,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 164
}
],
"outputs": [
{
"name": "plot",
"type": "IMAGE",
"slot_index": 0,
"links": [
163
]
},
{
"name": "loss_list",
"type": "FLOAT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "VisualizeLoss",
"widget_ue_connectable": {}
},
"widgets_values": [
"seaborn-v0_8-dark-palette",
100,
true,
768,
512,
false
]
},
{
"id": 100,
"type": "SaveImage",
"pos": [
2980,
-320
],
"size": [
574.23046875,
414.46881103515625
],
"flags": {},
"order": 53,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 163
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "SaveImage",
"widget_ue_connectable": {}
},
"widgets_values": [
"flux_lora_loss_plot"
]
},
{
"id": 101,
"type": "VisualizeLoss",
"pos": [
4070,
-490
],
"size": [
254.40000915527344,
198
],
"flags": {},
"order": 58,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": 166
}
],
"outputs": [
{
"name": "plot",
"type": "IMAGE",
"slot_index": 0,
"links": [
165
]
},
{
"name": "loss_list",
"type": "FLOAT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "VisualizeLoss",
"widget_ue_connectable": {}
},
"widgets_values": [
"seaborn-v0_8-dark-palette",
100,
true,
768,
512,
false
]
},
{
"id": 102,
"type": "SaveImage",
"pos": [
4080,
-340
],
"size": [
574.23046875,
414.46881103515625
],
"flags": {},
"order": 62,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 165
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "SaveImage",
"widget_ue_connectable": {}
},
"widgets_values": [
"flux_lora_loss_plot"
]
},
{
"id": 105,
"type": "Display Any (rgthree)",
"pos": [
483,
-811
],
"size": [
1073.7608642578125,
492.8503112792969
],
"flags": {},
"order": 40,
"mode": 0,
"inputs": [
{
"dir": 3,
"name": "source",
"type": "*",
"link": 183
}
],
"outputs": [],
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "5dc53323e07a021038af9f2a4a06ebc071f7218c",
"Node name for S&R": "Display Any (rgthree)",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 107,
"type": "InitFluxLoRATraining",
"pos": [
767,
315
],
"size": [
443.60101318359375,
934
],
"flags": {},
"order": 37,
"mode": 0,
"inputs": [
{
"name": "flux_models",
"type": "TRAIN_FLUX_MODELS",
"link": 179
},
{
"name": "dataset",
"type": "JSON",
"link": 189
},
{
"name": "optimizer_settings",
"type": "ARGS",
"link": 180
},
{
"name": "resume_args",
"shape": 7,
"type": "ARGS",
"link": null
},
{
"name": "block_args",
"shape": 7,
"type": "ARGS",
"link": null
},
{
"name": "loss_args",
"shape": 7,
"type": "ARGS",
"link": null
},
{
"name": "network_config",
"shape": 7,
"type": "NETWORK_CONFIG",
"link": null
},
{
"name": "output_name",
"type": "STRING",
"widget": {
"name": "output_name"
},
"link": 251
},
{
"name": "output_dir",
"type": "STRING",
"widget": {
"name": "output_dir"
},
"link": 247
},
{
"name": "sample_prompts",
"type": "STRING",
"widget": {
"name": "sample_prompts"
},
"link": 254
}
],
"outputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"links": [
181
]
},
{
"name": "epochs_count",
"type": "INT",
"links": [
182
]
},
{
"name": "args",
"type": "KOHYA_ARGS",
"links": [
183
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "InitFluxLoRATraining",
"widget_ue_connectable": {
"sample_prompts": true,
"output_name": true,
"output_dir": true
}
},
"widgets_values": [
"flux_lora_pulpwaterbottle",
"flux_lora_output_path\\pulpwaterbottle",
16,
1,
0.0004,
1200,
true,
"disk",
"disk",
false,
"logit_normal",
0,
1,
1.29,
"sigmoid",
1,
"raw",
1,
1,
false,
true,
"fp32",
"bf16",
"sdpa",
"pulpwaterbottle a fancy bottle of white with a label that says \"Paul Walker's Pulp Water\", solid black background, white liquid, simple white and black label on the bottle,",
"",
"disabled",
true,
0,
"enabled"
]
},
{
"id": 108,
"type": "TrainDatasetGeneralConfig",
"pos": [
-1118.704833984375,
211.8834686279297
],
"size": [
315,
202
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "dataset_general",
"type": "JSON",
"slot_index": 0,
"links": [
185
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "TrainDatasetGeneralConfig",
"widget_ue_connectable": {}
},
"widgets_values": [
false,
false,
false,
0,
false,
false,
".txt"
]
},
{
"id": 109,
"type": "TrainDatasetAdd",
"pos": [
-768.3215942382812,
201.66082763671875
],
"size": [
281.5897521972656,
354
],
"flags": {},
"order": 29,
"mode": 0,
"inputs": [
{
"name": "dataset_config",
"type": "JSON",
"link": 185
},
{
"name": "regularization",
"shape": 7,
"type": "JSON",
"link": null
},
{
"name": "dataset_path",
"type": "STRING",
"widget": {
"name": "dataset_path"
},
"link": 233
},
{
"name": "class_tokens",
"type": "STRING",
"widget": {
"name": "class_tokens"
},
"link": 222
}
],
"outputs": [
{
"name": "dataset",
"type": "JSON",
"slot_index": 0,
"links": [
187
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "TrainDatasetAdd",
"widget_ue_connectable": {
"class_tokens": true,
"dataset_path": true
}
},
"widgets_values": [
512,
512,
1,
"D:\\Stored-Files\\Documents\\social-videos\\2024-08-31 - paul walker's pulp water\\lora-training\\train",
"pulpwaterbottle",
true,
false,
1,
256,
1024
]
},
{
"id": 111,
"type": "TrainDatasetAdd",
"pos": [
-467,
202
],
"size": [
267.5897521972656,
354
],
"flags": {},
"order": 34,
"mode": 0,
"inputs": [
{
"name": "dataset_config",
"type": "JSON",
"link": 187
},
{
"name": "regularization",
"shape": 7,
"type": "JSON",
"link": null
},
{
"name": "dataset_path",
"type": "STRING",
"widget": {
"name": "dataset_path"
},
"link": 234
},
{
"name": "class_tokens",
"type": "STRING",
"widget": {
"name": "class_tokens"
},
"link": 223
}
],
"outputs": [
{
"name": "dataset",
"type": "JSON",
"slot_index": 0,
"links": [
188
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "TrainDatasetAdd",
"widget_ue_connectable": {
"class_tokens": true,
"dataset_path": true
}
},
"widgets_values": [
768,
768,
1,
"D:\\Stored-Files\\Documents\\social-videos\\2024-08-31 - paul walker's pulp water\\lora-training\\train",
"pulpwaterbottle",
true,
false,
1,
64,
1024
]
},
{
"id": 112,
"type": "TrainDatasetAdd",
"pos": [
-141,
205
],
"size": [
259.5897521972656,
354
],
"flags": {},
"order": 36,
"mode": 0,
"inputs": [
{
"name": "dataset_config",
"type": "JSON",
"link": 188
},
{
"name": "regularization",
"shape": 7,
"type": "JSON",
"link": null
},
{
"name": "dataset_path",
"type": "STRING",
"widget": {
"name": "dataset_path"
},
"link": 235
},
{
"name": "class_tokens",
"type": "STRING",
"widget": {
"name": "class_tokens"
},
"link": 224
}
],
"outputs": [
{
"name": "dataset",
"type": "JSON",
"slot_index": 0,
"links": [
189
]
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "TrainDatasetAdd",
"widget_ue_connectable": {
"class_tokens": true,
"dataset_path": true
}
},
"widgets_values": [
1024,
1024,
1,
"D:\\Stored-Files\\Documents\\ai\\sd\\lora-training\\lora-data-sets\\jimmy",
"jimmyjimmy",
true,
false,
1,
64,
1024
]
},
{
"id": 113,
"type": "Note",
"pos": [
-728.3215942382812,
61.660823822021484
],
"size": [
462.68292236328125,
88
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"For multiresolution training, input same source directory with different dataset resolution. From what I hear, Flux likes multiple resolutions.\n\nFor single resolution training, just add single dataset."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 114,
"type": "OptimizerConfigAdafactor",
"pos": [
331,
780
],
"size": [
315,
328
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "optimizer_settings",
"type": "ARGS",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "OptimizerConfigAdafactor",
"widget_ue_connectable": {}
},
"widgets_values": [
1,
"constant",
0,
1,
1,
false,
false,
false,
1,
5,
""
]
},
{
"id": 115,
"type": "Note",
"pos": [
247,
-48
],
"size": [
462.68292236328125,
88
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"You can use same models as you use for inference in Comfy. When fp8_base is enabled, the model is downcasted to torch.float_e4m3fn on initialize, meaning if you load fp8 model here it should also be in same format."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 116,
"type": "Note",
"pos": [
774,
-107
],
"size": [
308.08209228515625,
88
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"Validation sampling settings are set here for all the sampler nodes."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 117,
"type": "ImageConcatFromBatch",
"pos": [
7101,
145
],
"size": [
315,
106
],
"flags": {},
"order": 31,
"mode": 4,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 195
},
{
"name": "num_columns",
"type": "INT",
"widget": {
"name": "num_columns"
},
"link": 199
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
210
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "ImageConcatFromBatch",
"widget_ue_connectable": {
"num_columns": true
}
},
"widgets_values": [
3,
false,
4096
]
},
{
"id": 119,
"type": "ImageBatchMulti",
"pos": [
6820,
180
],
"size": [
210,
142
],
"flags": {},
"order": 26,
"mode": 4,
"inputs": [
{
"name": "image_1",
"type": "IMAGE",
"link": 202
},
{
"name": "image_2",
"type": "IMAGE",
"link": 203
},
{
"name": "image_3",
"type": "IMAGE",
"link": 206
},
{
"name": "image_4",
"type": "IMAGE",
"link": 208
}
],
"outputs": [
{
"name": "images",
"type": "IMAGE",
"slot_index": 0,
"links": [
195
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"widget_ue_connectable": {}
},
"widgets_values": [
4,
null
]
},
{
"id": 120,
"type": "GetImageSizeAndCount",
"pos": [
6829,
97
],
"size": [
210,
86
],
"flags": {
"collapsed": true
},
"order": 25,
"mode": 4,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 209
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"slot_index": 0,
"links": []
},
{
"name": "width",
"type": "INT",
"links": null
},
{
"name": "height",
"type": "INT",
"links": null
},
{
"name": "count",
"type": "INT",
"slot_index": 3,
"links": [
199
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "GetImageSizeAndCount",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 121,
"type": "SetNode",
"pos": [
2170,
1177
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 54,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 200
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_Sampler1",
"properties": {
"previousName": "Sampler1",
"widget_ue_connectable": {}
},
"widgets_values": [
"Sampler1"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 122,
"type": "SetNode",
"pos": [
3128,
1177
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 63,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 201
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_Sampler2",
"properties": {
"previousName": "Sampler2",
"widget_ue_connectable": {}
},
"widgets_values": [
"Sampler2"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 123,
"type": "GetNode",
"pos": [
6640,
190
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 12,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
202,
209
]
}
],
"title": "Get_Sampler1",
"properties": {
"widget_ue_connectable": {}
},
"widgets_values": [
"Sampler1"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 124,
"type": "GetNode",
"pos": [
6640,
230
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 13,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
203
]
}
],
"title": "Get_Sampler2",
"properties": {
"widget_ue_connectable": {}
},
"widgets_values": [
"Sampler2"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 125,
"type": "SetNode",
"pos": [
4278,
1177
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 70,
"mode": 0,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 204
}
],
"outputs": [
{
"name": "*",
"type": "*",
"slot_index": 0,
"links": []
}
],
"title": "Set_Sampler3",
"properties": {
"previousName": "Sampler3",
"widget_ue_connectable": {}
},
"widgets_values": [
"Sampler3"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 126,
"type": "GetNode",
"pos": [
6650,
280
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 14,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
206
]
}
],
"title": "Get_Sampler3",
"properties": {
"widget_ue_connectable": {}
},
"widgets_values": [
"Sampler3"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 127,
"type": "SetNode",
"pos": [
5319,
1177
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 79,
"mode": 4,
"inputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"link": 207
}
],
"outputs": [
{
"name": "*",
"type": "*",
"links": null
}
],
"title": "Set_Sampler4",
"properties": {
"previousName": "Sampler4",
"widget_ue_connectable": {}
},
"widgets_values": [
"Sampler4"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 128,
"type": "GetNode",
"pos": [
6640,
330
],
"size": [
210,
58
],
"flags": {
"collapsed": true
},
"order": 15,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
208
]
}
],
"title": "Get_Sampler4",
"properties": {
"widget_ue_connectable": {}
},
"widgets_values": [
"Sampler4"
],
"color": "#2a363b",
"bgcolor": "#3f5159"
},
{
"id": 129,
"type": "AddLabel",
"pos": [
7324,
591
],
"size": [
315,
274
],
"flags": {
"collapsed": true
},
"order": 75,
"mode": 4,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 210
},
{
"name": "caption",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "text",
"type": "STRING",
"widget": {
"name": "text"
},
"link": 213
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"slot_index": 0,
"links": [
214
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "AddLabel",
"widget_ue_connectable": {
"text": true
}
},
"widgets_values": [
10,
2,
48,
32,
"white",
"black",
"FreeMono.ttf",
"Text",
"up"
]
},
{
"id": 130,
"type": "SaveImage",
"pos": [
7750,
133
],
"size": [
619.8221435546875,
714.4110107421875
],
"flags": {},
"order": 78,
"mode": 4,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 214
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "SaveImage",
"widget_ue_connectable": {}
},
"widgets_values": [
"flux_lora_trainer_sheet"
]
},
{
"id": 131,
"type": "Note",
"pos": [
478,
-884
],
"size": [
210,
88
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"sanity check that all the args are chosen correctly"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 134,
"type": "VisualizeLoss",
"pos": [
1678,
-885
],
"size": [
303.6300048828125,
198
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "network_trainer",
"type": "NETWORKTRAINER",
"link": null
}
],
"outputs": [
{
"name": "plot",
"type": "IMAGE",
"slot_index": 0,
"links": []
},
{
"name": "loss_list",
"type": "FLOAT",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-fluxtrainer",
"ver": "1.0.2",
"Node name for S&R": "VisualizeLoss",
"widget_ue_connectable": {}
},
"widgets_values": [
"seaborn-v0_8-dark-palette",
100,
true,
768,
512,
false
]
},
{
"id": 163,
"type": "String Literal",
"pos": [
-761.9016723632812,
1460
],
"size": [
210,
88
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
245
]
}
],
"properties": {
"cnr_id": "comfy-image-saver",
"ver": "65e6903eff274a50f8b5cd768f0f96baf37baea1",
"Node name for S&R": "String Literal",
"widget_ue_connectable": {}
},
"widgets_values": [
"flux_lora_output_path\\"
]
},
{
"id": 166,
"type": "String Literal",
"pos": [
-761.9016723632812,
1240
],
"size": [
210,
88
],
"flags": {},
"order": 19,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
249
]
}
],
"properties": {
"cnr_id": "comfy-image-saver",
"ver": "65e6903eff274a50f8b5cd768f0f96baf37baea1",
"Node name for S&R": "String Literal",
"widget_ue_connectable": {}
},
"widgets_values": [
"flux-lora-"
]
},
{
"id": 167,
"type": "JoinStrings",
"pos": [
-481.90167236328125,
850
],
"size": [
210,
87.43765258789062
],
"flags": {},
"order": 30,
"mode": 0,
"inputs": [
{
"name": "string1",
"type": "STRING",
"link": 256
},
{
"name": "string2",
"type": "STRING",
"link": 255
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
254,
257
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "JoinStrings",
"widget_ue_connectable": {}
},
"widgets_values": [
" "
]
},
{
"id": 160,
"type": "JoinStrings",
"pos": [
-471.90167236328125,
1460
],
"size": [
210,
87.43765258789062
],
"flags": {},
"order": 27,
"mode": 0,
"inputs": [
{
"name": "string1",
"type": "STRING",
"link": 245
},
{
"name": "string2",
"type": "STRING",
"link": 246
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
247,
258
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "JoinStrings",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 165,
"type": "JoinStrings",
"pos": [
-471.90167236328125,
1240
],
"size": [
210,
87.43765258789062
],
"flags": {},
"order": 28,
"mode": 0,
"inputs": [
{
"name": "string1",
"type": "STRING",
"link": 249
},
{
"name": "string2",
"type": "STRING",
"link": 250
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
251,
259
]
}
],
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "JoinStrings",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 169,
"type": "Display Any (rgthree)",
"pos": [
-213.7183380126953,
833.8297729492188
],
"size": [
349.45086669921875,
169.91441345214844
],
"flags": {},
"order": 35,
"mode": 0,
"inputs": [
{
"dir": 3,
"name": "source",
"type": "*",
"link": 257
}
],
"outputs": [],
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "5dc53323e07a021038af9f2a4a06ebc071f7218c",
"Node name for S&R": "Display Any (rgthree)",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 170,
"type": "Display Any (rgthree)",
"pos": [
-225.9985809326172,
1218.9952392578125
],
"size": [
379.5034484863281,
122.58151245117188
],
"flags": {},
"order": 33,
"mode": 0,
"inputs": [
{
"dir": 3,
"name": "source",
"type": "*",
"link": 259
}
],
"outputs": [],
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "5dc53323e07a021038af9f2a4a06ebc071f7218c",
"Node name for S&R": "Display Any (rgthree)",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 171,
"type": "Display Any (rgthree)",
"pos": [
-223.74462890625,
1415.8387451171875
],
"size": [
381.0060729980469,
134.6026153564453
],
"flags": {},
"order": 32,
"mode": 0,
"inputs": [
{
"dir": 3,
"name": "source",
"type": "*",
"link": 258
}
],
"outputs": [],
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "5dc53323e07a021038af9f2a4a06ebc071f7218c",
"Node name for S&R": "Display Any (rgthree)",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 173,
"type": "Note",
"pos": [
-1999.3216552734375,
889.4609375
],
"size": [
464.8829345703125,
496.1000061035156
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"UPdate these -->>\n\nFiles directory: E.g.: "
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 143,
"type": "String",
"pos": [
-1312.18212890625,
1016.5088500976562
],
"size": [
389.7802734375,
132.48631286621094
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
222,
223,
224,
246,
250,
256
]
}
],
"title": "keyword String",
"properties": {
"cnr_id": "ComfyLiterals",
"ver": "bdddb08ca82d90d75d97b1d437a652e0284a32ac",
"Node name for S&R": "String",
"widget_ue_connectable": {}
},
"widgets_values": [
"doctorpaul"
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 156,
"type": "String",
"pos": [
-1310.18212890625,
826.5088500976562
],
"size": [
398.377685546875,
121.0516128540039
],
"flags": {},
"order": 22,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
233,
234,
235
]
}
],
"title": "Files directory",
"properties": {
"cnr_id": "ComfyLiterals",
"ver": "bdddb08ca82d90d75d97b1d437a652e0284a32ac",
"Node name for S&R": "String",
"widget_ue_connectable": {}
},
"widgets_values": [
"C:\\files\\doctorpaul\\imgs\\pngs"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 151,
"type": "String",
"pos": [
-1310,
1240
],
"size": [
400,
200
],
"flags": {},
"order": 23,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
255
]
}
],
"title": "sample prompt",
"properties": {
"cnr_id": "ComfyLiterals",
"ver": "bdddb08ca82d90d75d97b1d437a652e0284a32ac",
"Node name for S&R": "String",
"widget_ue_connectable": {}
},
"widgets_values": [
"doctorpaul, The image shows a man wearing a doctor's uniform smiling. Man with brown hair and a beard. He is holding a tablet and looks happy. "
],
"color": "#232",
"bgcolor": "#353"
}
],
"links": [
[
7,
4,
0,
8,
0,
"NETWORKTRAINER"
],
[
8,
8,
1,
9,
0,
"IMAGE"
],
[
40,
8,
0,
14,
0,
"NETWORKTRAINER"
],
[
58,
37,
0,
38,
0,
"*"
],
[
60,
40,
0,
8,
1,
"VALSETTINGS"
],
[
69,
48,
0,
45,
1,
"VALSETTINGS"
],
[
70,
45,
1,
46,
0,
"IMAGE"
],
[
71,
45,
0,
47,
0,
"NETWORKTRAINER"
],
[
72,
14,
0,
44,
0,
"NETWORKTRAINER"
],
[
88,
59,
0,
60,
0,
"NETWORKTRAINER"
],
[
89,
63,
0,
60,
1,
"VALSETTINGS"
],
[
90,
60,
1,
61,
0,
"IMAGE"
],
[
91,
60,
0,
62,
0,
"NETWORKTRAINER"
],
[
92,
62,
0,
64,
0,
"NETWORKTRAINER"
],
[
93,
64,
0,
65,
0,
"NETWORKTRAINER"
],
[
94,
68,
0,
65,
1,
"VALSETTINGS"
],
[
95,
65,
1,
66,
0,
"IMAGE"
],
[
96,
65,
0,
67,
0,
"NETWORKTRAINER"
],
[
97,
47,
0,
59,
0,
"NETWORKTRAINER"
],
[
98,
67,
0,
69,
0,
"NETWORKTRAINER"
],
[
99,
67,
0,
70,
0,
"NETWORKTRAINER"
],
[
103,
69,
0,
74,
0,
"*"
],
[
110,
14,
2,
79,
0,
"*"
],
[
111,
79,
0,
78,
2,
"STRING"
],
[
112,
8,
1,
78,
0,
"IMAGE"
],
[
116,
47,
2,
81,
0,
"*"
],
[
117,
81,
0,
80,
2,
"STRING"
],
[
119,
45,
1,
80,
0,
"IMAGE"
],
[
120,
62,
2,
82,
0,
"*"
],
[
121,
82,
0,
83,
2,
"STRING"
],
[
122,
60,
1,
83,
0,
"IMAGE"
],
[
124,
84,
0,
85,
2,
"STRING"
],
[
125,
67,
2,
84,
0,
"*"
],
[
126,
65,
1,
85,
0,
"IMAGE"
],
[
137,
44,
0,
45,
0,
"NETWORKTRAINER"
],
[
138,
70,
0,
90,
0,
"IMAGE"
],
[
161,
97,
0,
98,
0,
"IMAGE"
],
[
162,
4,
0,
97,
0,
"NETWORKTRAINER"
],
[
163,
99,
0,
100,
0,
"IMAGE"
],
[
164,
44,
0,
99,
0,
"NETWORKTRAINER"
],
[
165,
101,
0,
102,
0,
"IMAGE"
],
[
166,
59,
0,
101,
0,
"NETWORKTRAINER"
],
[
179,
2,
0,
107,
0,
"TRAIN_FLUX_MODELS"
],
[
180,
95,
0,
107,
2,
"ARGS"
],
[
181,
107,
0,
4,
0,
"NETWORKTRAINER"
],
[
182,
107,
1,
88,
0,
"*"
],
[
183,
107,
2,
105,
0,
"*"
],
[
185,
108,
0,
109,
0,
"JSON"
],
[
187,
109,
0,
111,
0,
"JSON"
],
[
188,
111,
0,
112,
0,
"JSON"
],
[
189,
112,
0,
107,
1,
"JSON"
],
[
195,
119,
0,
117,
0,
"IMAGE"
],
[
199,
120,
3,
117,
1,
"INT"
],
[
200,
78,
0,
121,
0,
"*"
],
[
201,
80,
0,
122,
0,
"*"
],
[
202,
123,
0,
119,
0,
"IMAGE"
],
[
203,
124,
0,
119,
1,
"IMAGE"
],
[
204,
83,
0,
125,
0,
"*"
],
[
206,
126,
0,
119,
2,
"IMAGE"
],
[
207,
85,
0,
127,
0,
"*"
],
[
208,
128,
0,
119,
3,
"IMAGE"
],
[
209,
123,
0,
120,
0,
"IMAGE"
],
[
210,
117,
0,
129,
0,
"IMAGE"
],
[
213,
69,
0,
129,
2,
"STRING"
],
[
214,
129,
0,
130,
0,
"IMAGE"
],
[
222,
143,
0,
109,
3,
"STRING"
],
[
223,
143,
0,
111,
3,
"STRING"
],
[
224,
143,
0,
112,
3,
"STRING"
],
[
233,
156,
0,
109,
2,
"STRING"
],
[
234,
156,
0,
111,
2,
"STRING"
],
[
235,
156,
0,
112,
2,
"STRING"
],
[
245,
163,
0,
160,
0,
"STRING"
],
[
246,
143,
0,
160,
1,
"STRING"
],
[
247,
160,
0,
107,
8,
"STRING"
],
[
249,
166,
0,
165,
0,
"STRING"
],
[
250,
143,
0,
165,
1,
"STRING"
],
[
251,
165,
0,
107,
7,
"STRING"
],
[
254,
167,
0,
107,
9,
"STRING"
],
[
255,
151,
0,
167,
1,
"STRING"
],
[
256,
143,
0,
167,
0,
"STRING"
],
[
257,
167,
0,
169,
0,
"*"
],
[
258,
160,
0,
171,
0,
"*"
],
[
259,
165,
0,
170,
0,
"*"
]
],
"groups": [
{
"id": 1,
"title": "Train_01",
"bounding": [
1439,
120,
1107,
975
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 2,
"title": "Settings and init",
"bounding": [
193,
-145,
1174,
1238
],
"color": "#b06634",
"font_size": 24,
"flags": {}
},
{
"id": 3,
"title": "Train_02",
"bounding": [
2602,
124,
1046,
975
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 4,
"title": "Train_03",
"bounding": [
3681,
128,
1047,
986
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 5,
"title": "Train_04",
"bounding": [
4753,
127,
996,
989
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
},
{
"id": 6,
"title": "Dataset",
"bounding": [
-1186,
-152,
1362,
851
],
"color": "#8AA",
"font_size": 24,
"flags": {}
},
{
"id": 7,
"title": "Variables to change",
"bounding": [
-1346,
733,
1520,
836
],
"color": "#3f789e",
"font_size": 24,
"flags": {}
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.6588450000000005,
"offset": [
1700.5841271833197,
89.24610725975087
]
},
"0246.VERSION": [
0,
0,
4
],
"ue_links": [],
"frontendVersion": "1.18.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true,
"links_added_by_ue": []
},
"version": 0.4
}
{
"id": "88b0b34d-45b0-4547-a7bb-647d922ee609",
"revision": 0,
"last_node_id": 129,
"last_link_id": 191,
"nodes": [
{
"id": 94,
"type": "Note",
"pos": [
7690,
2050
],
"size": [
400,
88
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "STEP 5",
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"Queue your prompt. All images in the directory will be captioned, saving a txt file in the same location. Warning!: This will overwrite any existing txt files with the same name."
],
"color": "#323",
"bgcolor": "#535"
},
{
"id": 82,
"type": "Note",
"pos": [
4528.04248046875,
2609.63134765625
],
"size": [
500,
88
],
"flags": {},
"order": 1,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "STEP 2",
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"Paste in your training images folder path"
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 83,
"type": "Note",
"pos": [
5316.5009765625,
2052.43310546875
],
"size": [
300,
88
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "STEP 3",
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"Count to the number of training images.\nSet \"Starting Image Number\" to 0\nWhen you run, run the number of times that there are images in that folder"
],
"color": "#223",
"bgcolor": "#335"
},
{
"id": 50,
"type": "Text Concatenate",
"pos": [
7393.5673828125,
2745.62744140625
],
"size": [
300,
170
],
"flags": {
"collapsed": true
},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "text_a",
"shape": 7,
"type": "STRING",
"link": 155
},
{
"name": "text_b",
"shape": 7,
"type": "STRING",
"link": 113
},
{
"name": "text_c",
"shape": 7,
"type": "STRING",
"link": null
},
{
"name": "text_d",
"shape": 7,
"type": "STRING",
"link": null
}
],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
114,
134
]
}
],
"properties": {
"cnr_id": "was-node-suite-comfyui",
"ver": "1cd8d304eda256c412b8589ce1f00be3c61cf9ec",
"Node name for S&R": "Text Concatenate",
"widget_ue_connectable": {}
},
"widgets_values": [
", ",
"false"
]
},
{
"id": 120,
"type": "Reroute",
"pos": [
6596.7939453125,
2213.660400390625
],
"size": [
75,
26
],
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "",
"type": "*",
"link": 175
}
],
"outputs": [
{
"name": "",
"type": "IMAGE",
"links": [
176,
177
]
}
],
"properties": {
"showOutputText": false,
"horizontal": false,
"widget_ue_connectable": {}
}
},
{
"id": 119,
"type": "ImpactImageBatchToImageList",
"pos": [
6324.0244140625,
2209.018798828125
],
"size": [
202.54061889648438,
26
],
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 187
}
],
"outputs": [
{
"name": "IMAGE",
"shape": 6,
"type": "IMAGE",
"links": [
175
]
}
],
"properties": {
"cnr_id": "comfyui-impact-pack",
"ver": "cd34cfdd638a996fd011be1b490c70a7e0fb505f",
"Node name for S&R": "ImpactImageBatchToImageList",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 20,
"type": "DownloadAndLoadFlorence2Model",
"pos": [
6558.126953125,
1934.284912109375
],
"size": [
400,
110
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{
"name": "lora",
"shape": 7,
"type": "PEFTLORA",
"link": null
}
],
"outputs": [
{
"name": "florence2_model",
"type": "FL2MODEL",
"links": [
25
]
}
],
"properties": {
"cnr_id": "comfyui-florence2",
"ver": "18f62acf57b02f4e94282dcb74ee8f6dd7ca8878",
"Node name for S&R": "DownloadAndLoadFlorence2Model",
"widget_ue_connectable": {}
},
"widgets_values": [
"microsoft/Florence-2-base",
"fp16",
"sdpa"
]
},
{
"id": 19,
"type": "Florence2Run",
"pos": [
7010.89306640625,
2032.50341796875
],
"size": [
400,
364
],
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "image",
"type": "IMAGE",
"link": 176
},
{
"name": "florence2_model",
"type": "FL2MODEL",
"link": 25
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": null
},
{
"name": "mask",
"type": "MASK",
"links": null
},
{
"name": "caption",
"type": "STRING",
"slot_index": 2,
"links": [
113
]
},
{
"name": "data",
"type": "JSON",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-florence2",
"ver": "18f62acf57b02f4e94282dcb74ee8f6dd7ca8878",
"Node name for S&R": "Florence2Run",
"widget_ue_connectable": {}
},
"widgets_values": [
"",
"more_detailed_caption",
true,
false,
1024,
3,
true,
"",
1,
"fixed"
]
},
{
"id": 64,
"type": "PreviewImage",
"pos": [
7714.28466796875,
2170
],
"size": [
400,
270
],
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 177
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "PreviewImage",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 68,
"type": "Save Text File",
"pos": [
7697.94287109375,
2890.897705078125
],
"size": [
400,
202
],
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 134
},
{
"name": "path",
"type": "STRING",
"widget": {
"name": "path"
},
"link": 159
},
{
"name": "filename_prefix",
"type": "STRING",
"widget": {
"name": "filename_prefix"
},
"link": 171
}
],
"outputs": [],
"properties": {
"cnr_id": "was-node-suite-comfyui",
"ver": "1cd8d304eda256c412b8589ce1f00be3c61cf9ec",
"Node name for S&R": "Save Text File",
"widget_ue_connectable": {
"filename_prefix": true,
"path": true
}
},
"widgets_values": [
"E:\\SD\\Training\\Spiritedaway6",
"ComfyUI",
"_",
0,
".txt",
"utf-8",
""
]
},
{
"id": 115,
"type": "Text Find and Replace",
"pos": [
7322.666015625,
2990.4375
],
"size": [
317.4000244140625,
166
],
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 188
}
],
"outputs": [
{
"name": "result_text",
"type": "STRING",
"slot_index": 0,
"links": [
171
]
},
{
"name": "replacement_count_number",
"type": "NUMBER",
"links": null
},
{
"name": "replacement_count_float",
"type": "FLOAT",
"links": null
},
{
"name": "replacement_count_int",
"type": "INT",
"links": null
}
],
"properties": {
"cnr_id": "was-node-suite-comfyui",
"ver": "1cd8d304eda256c412b8589ce1f00be3c61cf9ec",
"Node name for S&R": "Text Find and Replace",
"widget_ue_connectable": {}
},
"widgets_values": [
".jpg",
""
]
},
{
"id": 116,
"type": "Display Any (rgthree)",
"pos": [
6041.1875,
2370.464599609375
],
"size": [
210,
88
],
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"dir": 3,
"name": "source",
"type": "*",
"link": 189
}
],
"outputs": [],
"properties": {
"cnr_id": "rgthree-comfy",
"ver": "5dc53323e07a021038af9f2a4a06ebc071f7218c",
"Node name for S&R": "Display Any (rgthree)",
"widget_ue_connectable": {}
},
"widgets_values": [
""
]
},
{
"id": 126,
"type": "PreviewImage",
"pos": [
6070.53759765625,
1912.2601318359375
],
"size": [
140,
246
],
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 184
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.31",
"Node name for S&R": "PreviewImage",
"widget_ue_connectable": {}
},
"widgets_values": []
},
{
"id": 91,
"type": "Note",
"pos": [
6545.98046875,
1694.7291259765625
],
"size": [
400,
88
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "STEP 4",
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"Adjust Florence settings as needed. Usually \"task\" is all that is needed."
],
"color": "#232",
"bgcolor": "#353"
},
{
"id": 92,
"type": "Note",
"pos": [
5841.13623046875,
2695.3046875
],
"size": [
300,
90
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"You can turn off \"control after generate\" if you want to manually increment through your directory by adjusting the staring image number value. When going this route, you should not use the extra-options batching."
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 81,
"type": "Note",
"pos": [
4474,
2315
],
"size": [
500,
88
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "STEP 1",
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"Enter your trigger word"
],
"color": "#322",
"bgcolor": "#533"
},
{
"id": 100,
"type": "StringConstant",
"pos": [
4516,
2474
],
"size": [
500,
70
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"links": [
155
]
}
],
"title": "Trigger Word",
"properties": {
"cnr_id": "comfyui-kjnodes",
"ver": "c3dc82108a2a86c17094107ead61d63f8c76200e",
"Node name for S&R": "StringConstant",
"widget_ue_connectable": {}
},
"widgets_values": [
"doctorpaul"
]
},
{
"id": 51,
"type": "ShowText|pysssss",
"pos": [
7710.98095703125,
2517.857421875
],
"size": [
400,
270
],
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "text",
"type": "STRING",
"link": 114
}
],
"outputs": [
{
"name": "STRING",
"shape": 6,
"type": "STRING",
"links": null
}
],
"properties": {
"cnr_id": "comfyui-custom-scripts",
"ver": "aac13aa7ce35b07d43633c3bbe654a38c00d74f5",
"Node name for S&R": "ShowText|pysssss",
"widget_ue_connectable": {}
},
"widgets_values": [
"doctorpaul, The image shows a young man wearing a white lab coat and a stethoscope around his neck. He is standing in an office with his arms crossed and is smiling at the camera. He appears to be a doctor or a medical professional. The background shows a modern office with white walls and a large window. There is a desk and a chair in the foreground. The overall mood of the image is confident and professional."
]
},
{
"id": 107,
"type": "KepStringLiteral",
"pos": [
4636.720703125,
2762.33251953125
],
"size": [
400,
200
],
"flags": {},
"order": 8,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "STRING",
"type": "STRING",
"slot_index": 0,
"links": [
159,
190
]
}
],
"properties": {
"cnr_id": "ComfyLiterals",
"ver": "bdddb08ca82d90d75d97b1d437a652e0284a32ac",
"Node name for S&R": "KepStringLiteral",
"widget_ue_connectable": {}
},
"widgets_values": [
"C:\\files\\doctorpaul\\imgs"
]
},
{
"id": 128,
"type": "Load Image Batch",
"pos": [
5699.8505859375,
2187.45703125
],
"size": [
293.416015625,
270
],
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "index",
"type": "INT",
"widget": {
"name": "index"
},
"link": 191
},
{
"name": "path",
"type": "STRING",
"widget": {
"name": "path"
},
"link": 190
}
],
"outputs": [
{
"name": "image",
"type": "IMAGE",
"links": [
184,
187
]
},
{
"name": "filename_text",
"type": "STRING",
"links": [
188,
189
]
}
],
"properties": {
"cnr_id": "was-node-suite-comfyui",
"ver": "1cd8d304eda256c412b8589ce1f00be3c61cf9ec",
"Node name for S&R": "Load Image Batch",
"widget_ue_connectable": {}
},
"widgets_values": [
"single_image",
765371180233810,
"randomize",
2,
"Batch 001",
"",
"*",
"false",
"true"
]
},
{
"id": 129,
"type": "PrimitiveNode",
"pos": [
5308.0791015625,
2243.724365234375
],
"size": [
300,
82
],
"flags": {},
"order": 9,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "INT",
"type": "INT",
"widget": {
"name": "index"
},
"slot_index": 0,
"links": [
191
]
}
],
"title": "Starting Image Number",
"properties": {
"Run widget replace on values": false,
"widget_ue_connectable": {}
},
"widgets_values": [
2,
"increment"
]
},
{
"id": 93,
"type": "Note",
"pos": [
6863.75732421875,
3094.39990234375
],
"size": [
400,
88
],
"flags": {},
"order": 10,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"text": "",
"widget_ue_connectable": {}
},
"widgets_values": [
"If you don't like the caption, you can change the \"control after generate\" option to increment or random and then run again. This is best done if manually incrementing the start image in step 3."
],
"color": "#432",
"bgcolor": "#653"
}
],
"links": [
[
25,
20,
0,
19,
1,
"FL2MODEL"
],
[
113,
19,
2,
50,
1,
"STRING"
],
[
114,
50,
0,
51,
0,
"STRING"
],
[
134,
50,
0,
68,
0,
"STRING"
],
[
155,
100,
0,
50,
0,
"STRING"
],
[
159,
107,
0,
68,
1,
"STRING"
],
[
171,
115,
0,
68,
2,
"STRING"
],
[
175,
119,
0,
120,
0,
"*"
],
[
176,
120,
0,
19,
0,
"IMAGE"
],
[
177,
120,
0,
64,
0,
"IMAGE"
],
[
184,
128,
0,
126,
0,
"IMAGE"
],
[
187,
128,
0,
119,
0,
"IMAGE"
],
[
188,
128,
1,
115,
0,
"STRING"
],
[
189,
128,
1,
116,
0,
"*"
],
[
190,
107,
0,
128,
1,
"STRING"
],
[
191,
129,
0,
128,
0,
"INT"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 0.45,
"offset": [
-4724.402291250578,
-1433.430424912465
]
},
"ue_links": [],
"links_added_by_ue": [],
"frontendVersion": "1.18.6",
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment