Alan Rabello
commited on
Commit
·
e786dd0
1
Parent(s):
ff56c26
Readme output_dir example
Browse files
README.md
CHANGED
|
@@ -7,7 +7,7 @@ base_model:
|
|
| 7 |
---
|
| 8 |
# LLM Caption
|
| 9 |
|
| 10 |
-
This CLI script
|
| 11 |
|
| 12 |
## Installation
|
| 13 |
|
|
@@ -26,10 +26,14 @@ pip install -r requirements.txt
|
|
| 26 |
## Usage
|
| 27 |
|
| 28 |
```bash
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
python3 ./caption.py ./test \
|
| 30 |
-
--prompt "Describe this image in detail within 50 words."
|
|
|
|
| 31 |
|
| 32 |
-
python3 ./caption.py ./test
|
| 33 |
```
|
| 34 |
|
| 35 |
## Default prompt
|
|
|
|
| 7 |
---
|
| 8 |
# LLM Caption
|
| 9 |
|
| 10 |
+
This 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.
|
| 11 |
|
| 12 |
## Installation
|
| 13 |
|
|
|
|
| 26 |
## Usage
|
| 27 |
|
| 28 |
```bash
|
| 29 |
+
#EX1
|
| 30 |
+
python3 ./caption.py ./test
|
| 31 |
+
|
| 32 |
+
#EX2
|
| 33 |
python3 ./caption.py ./test \
|
| 34 |
+
--prompt "Describe this image in detail within 50 words." \
|
| 35 |
+
--output_dir /tmp/caption
|
| 36 |
|
|
|
|
| 37 |
```
|
| 38 |
|
| 39 |
## Default prompt
|