metadata
license: cc-by-nc-4.0
Molmo 7B Flux Dev Image Captioner.
A simple python and gradio script to use Molmo 7B for image captioning. The prompt is currently written to produce captions that work well for Flux Dev LoRA training, but you could adjust it to suit other models captioning style.
Install:
create a python3 venv or use conda to create an environment, eg:
conda create -n caption python=3.11
activate your environment, eg:
conda activate caption
install the dependencies
pip3 install -r requirements.txt
run the gradio version:
python3 main.py
- create a zip file of images
- upload it
- process it
- click the button to download the caption zip file, the link is at the top of the page
run the command-line version:
python3 caption.py
- make sure your images are in the "images" directory
- captions will be placed in the "images" directory