This should work on nearly any image.
Perfil de ejecución
Descripción de la fuente
This workflow takes in a text file containing a list of images, uses WD 1.4 tagging to output a list of tags for the image into a file named the same as the image file, but with a .txt extension. Please read below:
#1: If any nodes are red, use ComfyUI Manager to download them. This workflow uses ComfyMath, WAS Node Suite, ComfyUI_lb_CustomNodes, pythongosssss/ComfyUI-Custom-Scripts, pythongosssss/ComfyUI WD 1.4 Tagger, tinyterraNodes, & Quality of life Suite V2.
#2: Fill in the full path to your text file in the Text Load Line From File node. Leave the rest alone.
#3: Incrementing can only occur on the Primitive from 0-2048. When you reach that, any batching will just repeat the tag file creation for 2048 (or whatever value you have in the IntBinaryOperation "a" field + 2048).
Comentario generado por IA
Explicación generada por IA basada en los detalles de la fuente y la configuración. Las sugerencias están claramente identificadas.
Use this ComfyUI workflow to read a text file listing image paths, apply WD 1.4 tagging to those images, and save each image’s tags in a same-named .txt file.
It reads the list through Text Load Line From File, tags images with WD14Tagger|pysssss, then writes tag text with saveTextToFile _O.
Input: a text file listing image paths.
Output: one .txt file per image, named after the image and containing its tags.
Enter the full path to the list file in Text Load Line From File.
Sugerencia · sin verificar
If nodes appear red, use ComfyUI Manager to download them.
Sugerencia · sin verificar
The workflow uses ComfyMath, WAS Node Suite, ComfyUI_lb_CustomNodes, pythongosssss/ComfyUI-Custom-Scripts, pythongosssss/ComfyUI WD 1.4 Tagger, tinyterraNodes, and Quality of life Suite V2.
Named nodes include CM_IntBinaryOperation, LoadImageFromPath, saveTextToFile _O, ShowText|pysssss, Text Load Line From File, Text String Truncate, ttN text3BOX_3WAYconcat, and WD14Tagger|pysssss.
Set the first text field in 3x TXT Loader MultiConcat to the folder where you want the .txt files saved.
Sugerencia · sin verificar
In Extra options, set Batch Count from 1 to 2048, then select Queue Prompt.
Sugerencia · sin verificar
Incrementing is limited to Primitive values 0–2048; beyond that, batching repeats tag-file creation for 2048 or for the value in IntBinaryOperation’s “a” field plus 2048.
For matching output names, listed filenames and paths must have the same length; if they differ, adjust the truncate_to values in both Text String Truncate fields.
Sugerencia · sin verificar
¿Es necesario editarlo?
Inicia sesión para solicitar una edición.
Fuentes
1 fuenteExtractos de fuentes
1 extractoSource context: 831 downloads · Type Workflows · Base model Other
#4: All file names in the list and all paths must be the same length or else you will not get matching file names. You will need to adjust the truncate_to values in the two Text String Truncate fields to provide the correct file name result. The first one strips the front off (the path) and the second strips the end off (the extension). (I know it reads the other way around, but trust me, that's how it works...I dunno, I didn't write the nodes.)
#5: Adjust the first text field in the 3x TXT Loader MultiConcat node to have the path where you want to save the .txt files.
#6: When ready, click Extra options, put in a value from 1-2048 into the Batch Count, then click Queue Prompt. Sit back and watch it go. (I do recommend testing with a small number before running a large batch, just to make sure everything's setup ok.)
Thank you for checking out the workflow and I hope it's useful to you. -soul
Requisito de VRAM estimado
0 GB estimados
Requisitos
8 requisitosPaquete de nodos · Unknown
LoadImageFromPath
PosiblePaquete de nodos · Unknown
Paquete de nodos · Unknown
Paquete de nodos · Unknown
Paquete de nodos · Unknown
Paquete de nodos · Unknown
Paquete de nodos · Unknown
Paquete de nodos · Unknown