Added pre & post text fields for caption
Runtime profile
Source description
This is a simple workflow that will let you automatically generate text captions for a folder full of images AND save the text files with the correct names in that same folder. I got tired of doing it in multiple steps. It uses the Florence2 model for caption generation.
Use the comfyui manager to install any missing nodes.
Run the workflow to automatically download the Florence2 model.
(added a pre and post text field in v1.1)
Estimated VRAM requirement
0 GB estimated
AI-generated commentary
AI-generated explanation based on source and configuration details. Suggestions are clearly labeled.
Automatic Captioning Workflow - FLUX/Stable Diffusion 3.5 - ComfyUI is for captioning a folder of images: it uses Florence2 to generate text captions and saves matching text files in the same folder.
The workflow reads images from a folder, generates captions with Florence2, and writes the caption text files back to that folder.
It includes steps for loading images from a directory, running Florence2, previewing images, and saving text files.
Input: a folder full of images. Output: caption text files saved in the same folder with the images' correct names.
Before running, use the ComfyUI Manager to install any missing nodes.
Suggestion · not verified
Running the workflow is described as automatically downloading the Florence2 model.
Check your ComfyUI installation for Florence2ModelLoader, Florence2Run, DF_Text_Box, LoadImageListFromDir //Inspire, and Fast Groups Bypasser (rgthree).
Suggestion · not verified
Also check for CR Text Replace, JWStringSplit, String Switch // RvTools, Text Concatenate, Save Text File, PreviewImage, ShowText|pysssss, and String.
Suggestion · not verified
Version v1.1 adds pre- and post-text fields for captions.
Flux.1 D is the listed base model.
License terms are not specified, so verify the applicable terms before use.
Suggestion
Does this need to be edited?
Sign in to send an edit request.
Sources
1 sourceSource excerpts
2 excerptsSource context: 1142 downloads · Type Workflows · Base model Flux.1 D
Requirements
13 requirementsNode pack · Unknown
DF_Text_Box
Not resolvedNode pack · Unknown
Fast Groups Bypasser (rgthree)
Not resolvedNode pack · Unknown
Florence2ModelLoader
PossibleNode pack · Unknown
Florence2Run
PossibleNode pack · Unknown
JWStringSplit
Not resolvedNode pack · Unknown
Node pack · Unknown
PreviewImage
PossibleNode pack · Unknown
Node pack · Unknown
Node pack · Unknown
String
PossibleNode pack · Unknown
String Switch // RvTools
Not resolvedNode pack · Unknown
Text Concatenate
PossibleNode pack · Unknown
Source context: 1115 downloads · Type Workflows · Base model Flux.1 D