The LoRA Caption custom nodes, just like their name suggests, allow you to caption images so they are ready for LoRA training.
https://github.com/LarryJane491/Image-Captioning-in-ComfyUI
git clone https://github.com/LarryJane491/Image-Captioning-in-ComfyUI
comfy node install Image-Captioning-in-ComfyUI