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")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("microsoft/trocr-small-handwritten") model = AutoModelForMultimodalLM.from_pretrained("microsoft/trocr-small-handwritten", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update preprocessor_config.json
Verified signatureb4648cf -
Update preprocessor_config.json (#5)
Verified signature- Update preprocessor_config.json (14a8564b2ba3400344cc28317496227a2a476eff) Co-authored-by: Rohit <rohit5895@users.noreply.huggingface.co>f902cb3
-
Adding generation config file(s)
55eb201
-
Update README.md
6582f59
-
Update README.md (#1)
- Update README.md (fa83d6f36d3aca1977311c1ec2a4d41cd6257d80) Co-authored-by: Loïck BOURDOIS <lbourdois@users.noreply.huggingface.co>9354dd5
-
Update code example
bb14f6d
-
Update from Minghao Li
Minghao Licbb9551 -
add model
5e384e4 -
initial commit
502a29c