Alan Rabello commited on
Commit ·
e786dd0
1
Parent(s): ff56c26
Readme output_dir example
Browse files6 unmodified lines7891011121312 unmodified lines262728293031323334356 unmodified lines---# LLM CaptionThis CLI script creates caption files for all images of a folder. Its saves captions with the same name of the image with txt extension.## Installation12 unmodified lines## Usage```bashpython3 ./caption.py ./test \--prompt "Describe this image in detail within 50 words."python3 ./caption.py ./test```## Default prompt6 unmodified lines7891011121312 unmodified lines26272829303132333435363738396 unmodified lines---# LLM CaptionThis Python CLI script generates caption files for all images within a specified folder. It saves the captions using the same filename as the corresponding image, with a .txt extension, either in the same folder or in the directory specified by the output_dir argument. The script will not create captions for images that already have a corresponding caption file in the output_dir.## Installation12 unmodified lines## Usage```bash#EX1python3 ./caption.py ./test#EX2python3 ./caption.py ./test \--prompt "Describe this image in detail within 50 words." \--output_dir /tmp/caption```## Default prompt
README.md+7-3