Image-to-Text
Transformers
PyTorch
Safetensors
English
git
image-text-to-text
vision
image-captioning
Instructions to use microsoft/git-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/git-base 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="microsoft/git-base")# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("microsoft/git-base") model = AutoModelForImageTextToText.from_pretrained("microsoft/git-base") - Notebooks
- Google Colab
- Kaggle
Checkpoint compatibility
3
#8 opened over 1 year ago
by
donnadamus
How to increase the max length of the output?
#7 opened almost 2 years ago
by
AeroDEmi
[AUTOMATED] Model Memory Requirements
#6 opened over 2 years ago
by
model-sizer-bot
error when load checkpoints
1
#5 opened over 2 years ago
by
Gin11111
Video Inference or training
1
#4 opened about 3 years ago
by
dosun
Unknown Error in the Hosted Inference API
2
#2 opened over 3 years ago
by
annie-surla
Unable to load processor or model from pretrained model
1
#1 opened over 3 years ago
by
Kajih