Image-to-Text
Transformers
PyTorch
Safetensors
English
git
image-text-to-text
vision
image-captioning
Instructions to use microsoft/git-large-r with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/git-large-r 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-large-r")# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("microsoft/git-large-r") model = AutoModelForMultimodalLM.from_pretrained("microsoft/git-large-r", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 2c7d76a8c7fb1267b6a0fe2785dbbea2f4e3e49c12e4c737c43c5b1be433a9cb
- Size of remote file:
- 1.58 GB
- SHA256:
- 3effa298b6512dbd6d07712b8ee6c5a0cc3d047ae1fd4bbb418cfa0ef30e69a1
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.