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
|
@@ -11,14 +11,17 @@ metrics:
|
|
| 11 |
- wer
|
| 12 |
widget:
|
| 13 |
- src: >-
|
| 14 |
-
https://raw.githubusercontent.com/agombert/trocr-base-printed-fr/main/sample_imgs/
|
| 15 |
example_title: Example 1
|
| 16 |
- src: >-
|
| 17 |
-
https://raw.githubusercontent.com/agombert/trocr-base-printed-fr/main/sample_imgs/
|
| 18 |
example_title: Example 2
|
| 19 |
- src: >-
|
| 20 |
-
https://raw.githubusercontent.com/agombert/trocr-base-printed-fr/main/sample_imgs/
|
| 21 |
example_title: Example 3
|
|
|
|
|
|
|
|
|
|
| 22 |
---
|
| 23 |
|
| 24 |
# TrOCR for French
|
|
|
|
| 11 |
- wer
|
| 12 |
widget:
|
| 13 |
- src: >-
|
| 14 |
+
https://raw.githubusercontent.com/agombert/trocr-base-printed-fr/main/sample_imgs/3.jpg
|
| 15 |
example_title: Example 1
|
| 16 |
- src: >-
|
| 17 |
+
https://raw.githubusercontent.com/agombert/trocr-base-printed-fr/main/sample_imgs/0.jpg
|
| 18 |
example_title: Example 2
|
| 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
|