Instructions to use fhswf/TrOCR_Math_handwritten with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fhswf/TrOCR_Math_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="fhswf/TrOCR_Math_handwritten")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("fhswf/TrOCR_Math_handwritten") model = AutoModelForMultimodalLM.from_pretrained("fhswf/TrOCR_Math_handwritten", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -53,7 +53,7 @@ You can use the raw model for optical character recognition (OCR) on images cont
|
|
| 53 |
|
| 54 |
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 55 |
|
| 56 |
-
This model was finetuned on [mathwriting](https://github.com/google-research/google-research/tree/master/mathwriting).
|
| 57 |
|
| 58 |
|
| 59 |
|
|
|
|
| 53 |
|
| 54 |
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 55 |
|
| 56 |
+
This model was finetuned on a part of the [mathwriting](https://github.com/google-research/google-research/tree/master/mathwriting) dataset converted from InkML files into images.
|
| 57 |
|
| 58 |
|
| 59 |
|