Image-to-Text
Transformers
ONNX
Safetensors
Japanese
English
vision-encoder-decoder
feature-extraction
ocr
kuzushiji
japanese
historical-documents
custom_code
Instructions to use yuta1984/honkoku-ocr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yuta1984/honkoku-ocr 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="yuta1984/honkoku-ocr", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("yuta1984/honkoku-ocr", trust_remote_code=True) model = AutoModel.from_pretrained("yuta1984/honkoku-ocr", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 414 Bytes
b0bc838 | 1 2 3 4 5 6 7 8 | # sample_data
`finetune.py` / `check_data.py` / `evaluate.py` に渡すデータ形式を示すための**合成データ**です。
画像は擬似的な線画で、実際のくずし字ではありません。動作確認以外に使わないでください。
data.jsonl 1行1件: {"image": "images/line_0000.jpg", "text": "…", "book": "資料名"}
images/ 縦書き1行の切り出し画像
|