Image-to-Text
Transformers
Safetensors
Spanish
Zapotec
vision-encoder-decoder
image-text-to-text
handwritten-text-recognition
htr
ocr
trocr
colonial-zapotec
manuscripts
Eval Results (legacy)
Run this model with HF Jobs
Run maclenn77/ticha-trocr-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/maclenn77/ticha-trocr-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/maclenn77/ticha-trocr-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use maclenn77/ticha-trocr-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maclenn77/ticha-trocr-base 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="maclenn77/ticha-trocr-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("maclenn77/ticha-trocr-base") model = AutoModelForMultimodalLM.from_pretrained("maclenn77/ticha-trocr-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from maclenn77/ticha-trocr-base: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/maclenn77/ticha-trocr-base/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://maclenn77/ticha-trocr-base/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/maclenn77/ticha-trocr-base/resolve/main/tokenizer_config.json
1.25 kB
| { | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<pad>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "2": { | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "3": { | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "50264": { | |
| "content": "<mask>", | |
| "lstrip": true, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "bos_token": "<s>", | |
| "clean_up_tokenization_spaces": false, | |
| "cls_token": "<s>", | |
| "eos_token": "</s>", | |
| "errors": "replace", | |
| "mask_token": "<mask>", | |
| "model_max_length": 512, | |
| "pad_token": "<pad>", | |
| "processor_class": "TrOCRProcessor", | |
| "sep_token": "</s>", | |
| "tokenizer_class": "RobertaTokenizer", | |
| "trim_offsets": true, | |
| "unk_token": "<unk>" | |
| } | |