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
Download .gitignore from stevenlearns/caption-tool: direct link, hf CLI and curl.
- Browser
- Download file 125 Bytes
-
https://huggingface.co/stevenlearns/caption-tool/resolve/main/.gitignore
- Command line
-
hf download hf://stevenlearns/caption-tool/.gitignore
-
curl -L -o .gitignore https://huggingface.co/stevenlearns/caption-tool/resolve/main/.gitignore
125 Bytes
| # Python | |
| __pycache__/ | |
| *.pyc | |
| *.pyo | |
| # Virtual environment (created by install.sh) | |
| .venv/ | |
| # OS / editor noise | |
| .DS_Store | |
| *.swp | |