- Added skip_overwrite parameter (BOOLEAN, default False) - When enabled, prevents overwriting existing files - Useful when purging bad captions and re-running workflows to save only missing descriptions 2. LoadImagesFromDirBatch_VL and LoadImagesFromDirList_VL nodes: - Added traverse_subdirs parameter (BOOLEAN, default False) - When enabled, recursively scans all subdirectories - Returns full absolute paths instead of just filenames - When disabled, maintains original behavior (current directory only) - Useful for organizing images in folder structures These enhancements provide better control over file handling in batch image captioning workflows while maintaining full backward compatibility.
522 lines
12 KiB
JSON
522 lines
12 KiB
JSON
{
|
|
"id": "9e07843c-8f59-4563-8826-12739285ffca",
|
|
"revision": 0,
|
|
"last_node_id": 78,
|
|
"last_link_id": 148,
|
|
"nodes": [
|
|
{
|
|
"id": 75,
|
|
"type": "VLNodesFreeMemoryAPI",
|
|
"pos": [
|
|
-130,
|
|
-190
|
|
],
|
|
"size": [
|
|
270,
|
|
58
|
|
],
|
|
"flags": {
|
|
"collapsed": true
|
|
},
|
|
"order": 5,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "anything",
|
|
"type": "*",
|
|
"link": 135
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "output",
|
|
"type": "*",
|
|
"links": [
|
|
136
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-vl-nodes",
|
|
"ver": "389fe97681de4045378f5acbe6ec52a2f58390eb",
|
|
"Node name for S&R": "VLNodesFreeMemoryAPI"
|
|
},
|
|
"widgets_values": [
|
|
false
|
|
]
|
|
},
|
|
{
|
|
"id": 68,
|
|
"type": "ShowText|pysssss",
|
|
"pos": [
|
|
-510,
|
|
420
|
|
],
|
|
"size": [
|
|
270,
|
|
290
|
|
],
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"link": 148
|
|
}
|
|
],
|
|
"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": [
|
|
"J:\\SD\\lora\\workspace\\test\\file1",
|
|
"J:\\SD\\lora\\workspace\\test\\test1\\file2",
|
|
"J:\\SD\\lora\\workspace\\test\\test1\\test2\\file3"
|
|
]
|
|
},
|
|
{
|
|
"id": 77,
|
|
"type": "TextSave_VL",
|
|
"pos": [
|
|
-180,
|
|
200
|
|
],
|
|
"size": [
|
|
306.1015625,
|
|
226
|
|
],
|
|
"flags": {},
|
|
"order": 7,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"link": 140
|
|
},
|
|
{
|
|
"name": "path",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "path"
|
|
},
|
|
"link": 147
|
|
},
|
|
{
|
|
"name": "filename_prefix",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "filename_prefix"
|
|
},
|
|
"link": 146
|
|
}
|
|
],
|
|
"outputs": [],
|
|
"properties": {
|
|
"cnr_id": "comfyui-vl-nodes",
|
|
"ver": "63a96c5447791ed4db75dae27fb97577bbe34185",
|
|
"Node name for S&R": "TextSave_VL"
|
|
},
|
|
"widgets_values": [
|
|
"./ComfyUI/output/[time(%Y-%m-%d)]",
|
|
"ComfyUI",
|
|
"",
|
|
0,
|
|
".txt",
|
|
"utf-8",
|
|
"",
|
|
true
|
|
]
|
|
},
|
|
{
|
|
"id": 41,
|
|
"type": "ShowText|pysssss",
|
|
"pos": [
|
|
160,
|
|
320
|
|
],
|
|
"size": [
|
|
330,
|
|
390
|
|
],
|
|
"flags": {},
|
|
"order": 8,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"link": 136
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "STRING",
|
|
"shape": 6,
|
|
"type": "STRING",
|
|
"links": null
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-custom-scripts",
|
|
"ver": "aac13aa7ce35b07d43633c3bbe654a38c00d74f5",
|
|
"Node name for S&R": "ShowText|pysssss"
|
|
},
|
|
"widgets_values": [
|
|
"ohwx woman, A young woman with long red hair sits on a tennis court, wearing a blue halter top and white shorts. She's wearing white sneakers and has her hands on her knees. The photo is taken from a low angle, looking up at her. The background shows a tennis net and part of the court. The image is clear and well-lit, with natural sunlight casting shadows on the ground. The woman appears relaxed and confident.\n\n=============================\n\nohwx woman, A young woman with long brown hair sits on a rocky beach, wearing a white and pink striped bikini top and pink bikini bottom. She's smiling at the camera while looking up at the sky. The ocean waves crash against the rocks behind her, creating a beautiful contrast between the blue water and the sandy shore. The scene captures a relaxed, summery atmosphere with the woman enjoying the natural beauty of the beach.\n\n=============================\n\nohwx woman, A young woman with long brown hair wearing a blue sports bra and white tennis skirt stands on a tennis court. She has a serious expression and is looking off to the side. The background shows a tennis net and a fence. The image is in color and appears to be a professional photograph."
|
|
]
|
|
},
|
|
{
|
|
"id": 70,
|
|
"type": "ShowText|pysssss",
|
|
"pos": [
|
|
160,
|
|
-220
|
|
],
|
|
"size": [
|
|
330,
|
|
490
|
|
],
|
|
"flags": {},
|
|
"order": 6,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"link": 126
|
|
}
|
|
],
|
|
"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": [
|
|
"ohwx woman, A young woman with long red hair sits on a tennis court, wearing a blue halter top and white shorts. She's wearing white sneakers and has her hands on her knees. The photo is taken from a low angle, looking up at her. The background shows a tennis net and part of the court. The image is clear and well-lit, with natural sunlight casting shadows on the ground. The woman appears relaxed and confident.",
|
|
"ohwx woman, A young woman with long brown hair sits on a rocky beach, wearing a white and pink striped bikini top and pink bikini bottom. She's smiling at the camera while looking up at the sky. The ocean waves crash against the rocks behind her, creating a beautiful contrast between the blue water and the sandy shore. The scene captures a relaxed, summery atmosphere with the woman enjoying the natural beauty of the beach.",
|
|
"ohwx woman, A young woman with long brown hair wearing a blue sports bra and white tennis skirt stands on a tennis court. She has a serious expression and is looking off to the side. The background shows a tennis net and a fence. The image is in color and appears to be a professional photograph."
|
|
]
|
|
},
|
|
{
|
|
"id": 57,
|
|
"type": "LFM2TransformerModelLoader",
|
|
"pos": [
|
|
-510,
|
|
-110
|
|
],
|
|
"size": [
|
|
270,
|
|
154
|
|
],
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "lfm2_hf_model",
|
|
"type": "LFM2_HF_MODEL",
|
|
"links": [
|
|
121
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-vl-nodes",
|
|
"ver": "8e0e876a96488dabe86f09d3696364ef74d1b52e",
|
|
"Node name for S&R": "LFM2TransformerModelLoader",
|
|
"aux_id": "dimtoneff/ComfyUI-VL-Nodes"
|
|
},
|
|
"widgets_values": [
|
|
"LiquidAI/LFM2-VL-450M",
|
|
"none",
|
|
"bfloat16",
|
|
"cuda",
|
|
"enable"
|
|
]
|
|
},
|
|
{
|
|
"id": 72,
|
|
"type": "PrimitiveString",
|
|
"pos": [
|
|
-520,
|
|
-220
|
|
],
|
|
"size": [
|
|
293.4859313964844,
|
|
58
|
|
],
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{
|
|
"name": "STRING",
|
|
"type": "STRING",
|
|
"links": [
|
|
143,
|
|
147
|
|
]
|
|
}
|
|
],
|
|
"title": "DIRECTORY WITH FILES TO CAPTION",
|
|
"properties": {
|
|
"cnr_id": "comfy-core",
|
|
"ver": "0.3.52",
|
|
"Node name for S&R": "PrimitiveString"
|
|
},
|
|
"widgets_values": [
|
|
"J:\\SD\\lora\\workspace\\test"
|
|
],
|
|
"color": "#322",
|
|
"bgcolor": "#533"
|
|
},
|
|
{
|
|
"id": 71,
|
|
"type": "LFM2TransformerImageToText",
|
|
"pos": [
|
|
-200,
|
|
-130
|
|
],
|
|
"size": [
|
|
340,
|
|
280
|
|
],
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "lfm2_hf_model",
|
|
"type": "LFM2_HF_MODEL",
|
|
"link": 121
|
|
},
|
|
{
|
|
"name": "image",
|
|
"type": "IMAGE",
|
|
"link": 144
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "text",
|
|
"type": "STRING",
|
|
"links": [
|
|
135
|
|
]
|
|
},
|
|
{
|
|
"name": "text_list",
|
|
"shape": 6,
|
|
"type": "STRING",
|
|
"links": [
|
|
126,
|
|
140
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-vl-nodes",
|
|
"ver": "1744cefa4de7463aa23edb0b2b94889498b1ef85",
|
|
"Node name for S&R": "LFM2TransformerImageToText"
|
|
},
|
|
"widgets_values": [
|
|
"You are an assistant who perfectly describes images. Fully describe the image as a prompt for Stable Diffusion text2image SDXL model. If you see nsfw stuff describe it too. Do not omit anything! Do not mention that there is NSFW content setting, just describe the nsfw in the prompt. !Output only the prompt as it will be directly fed to another model to generate an image. Be clear and use short sentences to describe the image!",
|
|
"ohwx woman",
|
|
554225580680317,
|
|
"randomize",
|
|
512,
|
|
0.1,
|
|
0.15,
|
|
1.05
|
|
]
|
|
},
|
|
{
|
|
"id": 78,
|
|
"type": "LoadImagesFromDirBatch_VL",
|
|
"pos": [
|
|
-510,
|
|
100
|
|
],
|
|
"size": [
|
|
270,
|
|
262
|
|
],
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{
|
|
"name": "directory",
|
|
"type": "STRING",
|
|
"widget": {
|
|
"name": "directory"
|
|
},
|
|
"link": 143
|
|
}
|
|
],
|
|
"outputs": [
|
|
{
|
|
"name": "IMAGE",
|
|
"type": "IMAGE",
|
|
"links": [
|
|
144
|
|
]
|
|
},
|
|
{
|
|
"name": "MASK",
|
|
"type": "MASK",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "COUNT",
|
|
"type": "INT",
|
|
"links": null
|
|
},
|
|
{
|
|
"name": "FILE_NAME",
|
|
"shape": 6,
|
|
"type": "STRING",
|
|
"links": [
|
|
146,
|
|
148
|
|
]
|
|
}
|
|
],
|
|
"properties": {
|
|
"cnr_id": "comfyui-vl-nodes",
|
|
"ver": "63a96c5447791ed4db75dae27fb97577bbe34185",
|
|
"Node name for S&R": "LoadImagesFromDirBatch_VL"
|
|
},
|
|
"widgets_values": [
|
|
"",
|
|
0,
|
|
0,
|
|
true,
|
|
"Alphabetical (DESC)",
|
|
"false",
|
|
true
|
|
]
|
|
}
|
|
],
|
|
"links": [
|
|
[
|
|
121,
|
|
57,
|
|
0,
|
|
71,
|
|
0,
|
|
"LFM2_HF_MODEL"
|
|
],
|
|
[
|
|
126,
|
|
71,
|
|
1,
|
|
70,
|
|
0,
|
|
"STRING"
|
|
],
|
|
[
|
|
135,
|
|
71,
|
|
0,
|
|
75,
|
|
0,
|
|
"*"
|
|
],
|
|
[
|
|
136,
|
|
75,
|
|
0,
|
|
41,
|
|
0,
|
|
"STRING"
|
|
],
|
|
[
|
|
140,
|
|
71,
|
|
1,
|
|
77,
|
|
0,
|
|
"STRING"
|
|
],
|
|
[
|
|
143,
|
|
72,
|
|
0,
|
|
78,
|
|
0,
|
|
"STRING"
|
|
],
|
|
[
|
|
144,
|
|
78,
|
|
0,
|
|
71,
|
|
1,
|
|
"IMAGE"
|
|
],
|
|
[
|
|
146,
|
|
78,
|
|
3,
|
|
77,
|
|
2,
|
|
"STRING"
|
|
],
|
|
[
|
|
147,
|
|
72,
|
|
0,
|
|
77,
|
|
1,
|
|
"STRING"
|
|
],
|
|
[
|
|
148,
|
|
78,
|
|
3,
|
|
68,
|
|
0,
|
|
"STRING"
|
|
]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {
|
|
"ds": {
|
|
"scale": 1,
|
|
"offset": [
|
|
681.5252866809128,
|
|
515.9898207129279
|
|
]
|
|
},
|
|
"frontendVersion": "1.25.11",
|
|
"VHS_latentpreview": false,
|
|
"VHS_latentpreviewrate": 0,
|
|
"VHS_MetadataImage": true,
|
|
"VHS_KeepIntermediate": true
|
|
},
|
|
"version": 0.4
|
|
} |