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
Devin Zhang commited on
Commit ·
3047011
1
Parent(s): 1aca78c
Delete pytorch_model.bin
Browse files- pytorch_model.bin +0 -3
pytorch_model.bin
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:df3e8cb639d125cba007351a84f47dc095020f9f8949b5aa8841736d414948fc
|
| 3 |
-
size 706590425
|
|
|
|
|
|
|
|
|
|
|
|