CaptionFlow is a tool designed to generate high-fidelity detailed captions for images using the Mistral API.
Inspired by the paper "Visual Fact Checker: Enabling High-Fidelity Detailed Caption Generation"
This project provides a user-friendly GUI to process batches of images and save captions.
The each image is processed by multiple Complex Human Instructions (CHI) for different aspect captions.
For example:
After all CHI processed, a summary would be made based on all previous result and the caption would be refined as precise and accurate.
requirements.txtClone the repository:
git clone https://github.com/lrzjason/CaptionFlow.git
Install dependencies:
pip install -r requirements.txt
Create an api.json file in the root directory with the following structure:
{
"MISTRAL_API_KEY": "your_api_key_here"
}
config.json stores input configurations for future use. Default values are provided if config.json is missing.
Run the following command to launch the Gradio app:
python ui_gradio.py

Access the GUI through the provided local link.
api.json.Captions are saved in the image directory with the specified prefix and are displayed in the GUI.
Contributions are welcome. Please submit issues or pull requests following standard GitHub practices.
This project is licensed under the Apache-2.0 License.
|
Buy me a coffee:
|
WeChat:
|
Special thanks to deepseek v3 help to construct the ui and the readme.
Thank you to SmilingWolf for the inspiration from wd14 tagger.
Special thanks to the authors of "Visual Fact Checker: Enabling High-Fidelity Detailed Caption Generation" for their insightful work.
32 commits
Python
100.0%
CaptionFlow is a tool designed to generate high-fidelity detailed captions for images using the Mistral API.
Inspired by the paper "Visual Fact Checker: Enabling High-Fidelity Detailed Caption Generation"
This project provides a user-friendly GUI to process batches of images and save captions.
The each image is processed by multiple Complex Human Instructions (CHI) for different aspect captions.
For example:
After all CHI processed, a summary would be made based on all previous result and the caption would be refined as precise and accurate.
requirements.txtClone the repository:
git clone https://github.com/lrzjason/CaptionFlow.git
Install dependencies:
pip install -r requirements.txt
Create an api.json file in the root directory with the following structure:
{
"MISTRAL_API_KEY": "your_api_key_here"
}
config.json stores input configurations for future use. Default values are provided if config.json is missing.
Run the following command to launch the Gradio app:
python ui_gradio.py

Access the GUI through the provided local link.
api.json.Captions are saved in the image directory with the specified prefix and are displayed in the GUI.
Contributions are welcome. Please submit issues or pull requests following standard GitHub practices.
This project is licensed under the Apache-2.0 License.
|
Buy me a coffee:
|
WeChat:
|
Special thanks to deepseek v3 help to construct the ui and the readme.
Thank you to SmilingWolf for the inspiration from wd14 tagger.
Special thanks to the authors of "Visual Fact Checker: Enabling High-Fidelity Detailed Caption Generation" for their insightful work.
32 commits
Python
100.0%