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, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("captioner/caption-gen") model = AutoModelForImageTextToText.from_pretrained("captioner/caption-gen") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 6afad2f5a7781d9b75c21a87e1848d673752182a4f67b0fe05042c1dcb96e686
- Size of remote file:
- 990 MB
- SHA256:
- 28768b4e2e1cbf83e3e642da3e0cc7fc17bc2d7c6089fd96ea9020cbe289f30d
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.