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
Upload folder using huggingface_hub
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.
|
|
@@ -117,8 +117,8 @@ detailed, but uses more VRAM.
|
|
| 117 |
|
| 118 |
| Model | Size | Best for |
|
| 119 |
| --- | --- | --- |
|
| 120 |
-
| **florence2-large** (default) | ~1.5 GB |
|
| 121 |
-
| **florence2-base** | ~0.45 GB | when you want it fast. |
|
| 122 |
|
| 123 |
If your card only has 2 GB of VRAM, choose **florence2-base**.
|
| 124 |
|
|
|
|
| 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.
|
|
|
|
| 117 |
|
| 118 |
| Model | Size | Best for |
|
| 119 |
| --- | --- | --- |
|
| 120 |
+
| **florence2-large** (default) | ~1.5 GB | Slightly less accurate. Needs a normal GPU. |
|
| 121 |
+
| **florence2-base** | ~0.45 GB | **2 GB GPUs**, or when you want it fast. |
|
| 122 |
|
| 123 |
If your card only has 2 GB of VRAM, choose **florence2-base**.
|
| 124 |
|