Instructions to use stevenlearns/caption-tool with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stevenlearns/caption-tool with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("image-to-text", model="stevenlearns/caption-tool")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("stevenlearns/caption-tool", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,7 +13,7 @@ pretty_name: Caption Tool
|
|
| 13 |
# Caption Tool
|
| 14 |
|
| 15 |
A small, friendly tool that writes text descriptions (captions) for every image
|
| 16 |
-
in a folder
|
| 17 |
|
| 18 |
- **No API key. No account. No internet** (after the first-time model download).
|
| 19 |
- **Private:** your images never leave your machine.
|
|
@@ -89,7 +89,7 @@ python caption.py
|
|
| 89 |
```
|
| 90 |
|
| 91 |
It will ask you for a folder of images, show the settings, and caption them.
|
| 92 |
-
Sit back
|
| 93 |
|
| 94 |
### Want to skip the questions?
|
| 95 |
|
|
|
|
| 13 |
# Caption Tool
|
| 14 |
|
| 15 |
A small, friendly tool that writes text descriptions (captions) for every image
|
| 16 |
+
in a folder, all on your own computer.
|
| 17 |
|
| 18 |
- **No API key. No account. No internet** (after the first-time model download).
|
| 19 |
- **Private:** your images never leave your machine.
|
|
|
|
| 89 |
```
|
| 90 |
|
| 91 |
It will ask you for a folder of images, show the settings, and caption them.
|
| 92 |
+
Sit back, a progress bar shows how far it's gotten.
|
| 93 |
|
| 94 |
### Want to skip the questions?
|
| 95 |
|