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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Xet hash:
- a83bdca760c62d7189113a9705ad60445a5fda3a0bc7db6789a4ae7e6c935fe5
- Size of remote file:
- 14.5 kB
- SHA256:
- ee8d5021bec0c13c8f4ae57179321d5fa50b72faf1ab34a51fab510959d87aeb
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.