Better ones might already exist.
This is made to quickly caption a folder full of images using Florence 2
-
Clone the Captioner repository:
git clone https://github.com/Iteranya/Captioner.git cd Captioner
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install Python dependencies:
python3 -m pip install -r requirements.txt
-
Insert images into the images folder
-
Run the bot:
python main.py
-
You can find a txt containing the caption inside the images folder.