Image-to-Text
Transformers
Safetensors
Tibetan
vision-encoder-decoder
image-text-to-text
ocr
tibetan
document-ai
trocr
Instructions to use TibetanCodexAITeam/PechaBridgeOCR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TibetanCodexAITeam/PechaBridgeOCR 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="TibetanCodexAITeam/PechaBridgeOCR")# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("TibetanCodexAITeam/PechaBridgeOCR") model = AutoModelForMultimodalLM.from_pretrained("TibetanCodexAITeam/PechaBridgeOCR", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 446 Bytes
c122017 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | {
"unicode_normalization": "NFC",
"newline_normalization": "\\r\\n and \\r -> \\n",
"special_token_cleanup": "tokenizer.batch_decode(skip_special_tokens=True) plus explicit string removal of tokenizer.all_special_tokens",
"zero_width_removed": [
"\\u200b",
"\\u200c",
"\\u200d",
"\\ufeff"
],
"whitespace_normalization": "collapse horizontal spaces/tabs, trim around newlines, strip",
"metric_newline_token": "<NL>"
} |