Instructions to use agomberto/trocr-base-printed-fr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use agomberto/trocr-base-printed-fr 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="agomberto/trocr-base-printed-fr")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("agomberto/trocr-base-printed-fr") model = AutoModelForMultimodalLM.from_pretrained("agomberto/trocr-base-printed-fr") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- 0a678ff55d089f9bc08bf0453cf30b4010b35b8b432348bb83809aa77eef7a04
- Size of remote file:
- 903 MB
- SHA256:
- bd1c5ad08c90dfefefe65d21ea838a11b1d8d32871d767be63d487236094d917
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.