Instructions to use captioner/caption-gen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use captioner/caption-gen 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="captioner/caption-gen")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("captioner/caption-gen") model = AutoModelForMultimodalLM.from_pretrained("captioner/caption-gen") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 6fea67774f5762cf5c0dfb6cbb4b9949a1d80127711f64a3b79907684f458fc7
- Size of remote file:
- 3.9 kB
- SHA256:
- ee35bb505e186fd2206c99cb35996ab068891ef314f196adda561800ca53933d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.