This should work on nearly any image.
Profil d'exécution
Description de la source
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).
Commentaire généré par l’IA
Explication générée par l’IA à partir des détails de la source et de la configuration. Les suggestions sont clairement signalées.
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.
Suggestion · non vérifié
If nodes appear red, use ComfyUI Manager to download them.
Suggestion · non vérifié
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.
Suggestion · non vérifié
In Extra options, set Batch Count from 1 to 2048, then select Queue Prompt.
Suggestion · non vérifié
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.
Suggestion · non vérifié
Faut-il modifier cela ?
Connectez-vous pour envoyer une demande de modification.
Sources
1 sourceExtraits de sources
1 extraitSource 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
Estimation des besoins VRAM
0 Go estimés
Exigences
Exigences 8Pack de nœud · Unknown
LoadImageFromPath
PossiblePack de nœud · Unknown
Pack de nœud · Unknown
Pack de nœud · Unknown
Pack de nœud · Unknown
Pack de nœud · Unknown
Pack de nœud · Unknown
Pack de nœud · Unknown