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, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("agomberto/trocr-base-printed-fr") model = AutoModelForImageTextToText.from_pretrained("agomberto/trocr-base-printed-fr") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,9 +19,6 @@ widget:
|
|
| 19 |
- src: >-
|
| 20 |
https://raw.githubusercontent.com/agombert/trocr-base-printed-fr/main/sample_imgs/1.jpg
|
| 21 |
example_title: Example 3
|
| 22 |
-
- src: >-
|
| 23 |
-
https://raw.githubusercontent.com/agombert/trocr-base-printed-fr/main/sample_imgs/2.jpg
|
| 24 |
-
example_title: Example 4
|
| 25 |
---
|
| 26 |
|
| 27 |
# TrOCR for French
|
|
|
|
| 19 |
- src: >-
|
| 20 |
https://raw.githubusercontent.com/agombert/trocr-base-printed-fr/main/sample_imgs/1.jpg
|
| 21 |
example_title: Example 3
|
|
|
|
|
|
|
|
|
|
| 22 |
---
|
| 23 |
|
| 24 |
# TrOCR for French
|