Replaced with a new CLI tool that does its job way better and has more options. See joy-caption-cli
A minimal app using clip-interrogator and blip for captioning lots of images quickly.
The application served to caption custom images which had only basic names like IMAGE_001.png and such.
This program has an optionated way on captioning images. May open it up more by implementing some more parameters for customizing captioning.
Well you can either use it as a CLI tool using following commands:
py -m venv venv
py -m pip install -r requirements.txt
py main.py C:\Users\<username>\OneDrive\Pictures\test_picture_01.png C:\Users\<username>\OneDrive\Pictures\test_picture_02.png # Caption as many images as you like.py main.py C:\Users\<username>\OneDrive\Pictures\test_picture_01.png C:\Users\<username>\OneDrive\Pictures\test_picture_02.png # Caption as many images as you like.This creates an "outputs" directory with a new subfolder (current date & time) where images get saved with a new captioned filename and their respective extension.
py main.py C:\Users\<username>\OneDrive\Pictures\test_picture_01.png C:\Users\<username>\OneDrive\Pictures\test_picture_02.png --output_files
py app.py # Starts an gradio instance which can be accessed via browserFrontend for hugginface spaces. Simplify CLI tool usage.
- Gallery Image of Sailboat by Michelle McEwen on Unsplash
