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:
- 4844c30142ea828a65e39bf41d28491074710c4f502f73b6d3d3396bf01bab1a
- Size of remote file:
- 990 MB
- SHA256:
- ef91c72d1b16591600dda53cbbeeb0acd52800682bf21b508abbd0468fb7f726
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.