Instructions to use microsoft/trocr-small-handwritten with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/trocr-small-handwritten 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/trocr-small-handwritten")# Load model directly from transformers import AutoTokenizer, AutoModelForImageTextToText tokenizer = AutoTokenizer.from_pretrained("microsoft/trocr-small-handwritten") model = AutoModelForImageTextToText.from_pretrained("microsoft/trocr-small-handwritten") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
| 2 |
tags:
|
| 3 |
- trocr
|
| 4 |
- image-to-text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
---
|
| 6 |
|
| 7 |
# TrOCR (small-sized model, fine-tuned on IAM)
|
|
|
|
| 2 |
tags:
|
| 3 |
- trocr
|
| 4 |
- image-to-text
|
| 5 |
+
widget:
|
| 6 |
+
- src: https://fki.tic.heia-fr.ch/static/img/a01-122-02.jpg
|
| 7 |
+
example_title: Note 1
|
| 8 |
+
- src: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSoolxi9yWGAT5SLZShv8vVd0bz47UWRzQC19fDTeE8GmGv_Rn-PCF1pP1rrUx8kOjA4gg&usqp=CAU
|
| 9 |
+
example_title: Note 2
|
| 10 |
+
- src: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRNYtTuSBpZPV_nkBYPMFwVVD9asZOPgHww4epu9EqWgDmXW--sE2o8og40ZfDGo87j5w&usqp=CAU
|
| 11 |
+
example_title: Note 3
|
| 12 |
---
|
| 13 |
|
| 14 |
# TrOCR (small-sized model, fine-tuned on IAM)
|