CivArchive
    img2caption - v1.0
    NSFW
    Preview 50553135

    img2prompt

    img2prompt is a workflow for ComfyUI that allows users to generate detailed image captions and prompts from input images using state-of-the-art models. The generated prompts are saved to a file for later review and reuse.

    This workflow integrates the following models:

    1. WD14

    2. MiaoshouAI

    3. JoyCaption 2

    4. Florence

    Features

    • Converts input images into detailed and accurate captions or prompts.

    • Utilizes multiple popular image captioning models for diverse output styles.

    • Saves all generated prompts into a file for easy access and future use.

    How to Use

    1. Load an input image in ComfyUI.

    2. Run the img2prompt workflow.

    3. The workflow will process the image using the integrated models and generate prompts/captions.

    4. All generated prompts are automatically saved to a file for later use.

    Output

    The generated prompts are saved in a structured text file. This allows you to:

    • Review and edit the prompts.

    • Use the prompts in other workflows or tools.

    Models Overview

    • WD14: A powerful model for generating descriptive tags and keywords.

    • MiaoshouAI: Known for generating natural and context-aware captions.

    • JoyCaption 2: Provides highly descriptive and aesthetic captions.

    • Florence: A versatile captioning model that excels in creating detailed scene descriptions.

    Acknowledgments

    Special thanks to the creators of ComfyUI and the developers of the integrated models:

    Screenshots


    Enjoy generating amazing image prompts with img2prompt!

    Description

    First release

    FAQ

    Comments (16)

    AIStudio80Jan 9, 2025· 1 reaction
    CivitAI

    Never succeeded to use JoyCaption 2

    kiko9
    Author
    Jan 9, 2025· 1 reaction

    I got it working, and also spend a day rewriting the InternVL2 comfyui one, but was not as good as I hoped so I removed it.

    kiko9
    Author
    Jan 9, 2025

    for what its worth, the JoyCaption 2 is amazing :)

    AIStudio80Jan 9, 2025

    @kiko9 I will let You know after testing. Thanks, for response

    2018cfhJan 20, 2025

    @AIStudio80 have you been able to get it working? I have to wait to get home to download this but I hate spending my limited time making things work instead of making pretty pictures.

    AIStudio80Jan 20, 2025

    @2018cfh Not yet. always gives error. i changed worflow to florence

    AIStudio80Jan 20, 2025

    @2018cfh Not yet. always gives error. i changed worflow to florence

    2018cfhJan 20, 2025· 1 reaction

    @AIStudio80 ya I have one that uses Florence fine but Florence is no good at even remotely NSFW. That's why I been searching for a joy caption one

    AIStudio80Jan 20, 2025

    @2018cfh yes right. same here.after download 14+gb of models Joycaption still gives error

    AIStudio80Jan 20, 2025

    @2018cfhi searched a lot for solutions but still not successful 

    2018cfhJan 20, 2025

    @AIStudio80 well thx for all the effort. I was using a joycaption online node..works great for about 10 or so images then just stops doing anything

    Would probably help if the HF page of his want in Japanese or whatever it is

    AIStudio80Jan 20, 2025

    @2018cfh ok. I never checked online .

    2018cfhJan 20, 2025· 1 reaction

    @AIStudio80 I'm at work now. I can't remember what the node was called...something NY/NJ joy caption online I think

    2018cfhJan 20, 2025
    CivitAI

    I believe this is what I've been looking for. I have a captio ing flow I built but joy caption never seems to work. Does this contain any instructions on how and where to install whatever is needed for the captioning to work?

    kiko9
    Author
    Jan 21, 2025· 1 reaction

    I am out of the country ATM. When I return I will provide installer to help

    2018cfhJan 21, 2025

    @kiko9 that sounds great thank you

    Workflows
    Flux.1 D

    Details

    Downloads
    365
    Platform
    CivitAI
    Platform Status
    Available
    Created
    1/9/2025
    Updated
    6/11/2026
    Deleted
    -

    Files

    img2caption_v10.zip

    Mirrors

    CivitAI (1 mirrors)