Image-to-Text
Transformers
Safetensors
PyTorch
ONNX
English
Ukrainian
htr-convtext
feature-extraction
ocr
icr
handwriting-recognition
ukrainian
ctc
custom_code
Instructions to use Valerii02/ukr-htr-convtext with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Valerii02/ukr-htr-convtext 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="Valerii02/ukr-htr-convtext", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Valerii02/ukr-htr-convtext", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from Valerii02/ukr-htr-convtext: direct link, hf CLI and curl.
- Browser
- Download file 241 Bytes
-
https://huggingface.co/Valerii02/ukr-htr-convtext/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://Valerii02/ukr-htr-convtext/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/Valerii02/ukr-htr-convtext/resolve/main/preprocessor_config.json
241 Bytes
| { | |
| "processor_class": "HTRProcessor", | |
| "auto_map": { | |
| "AutoProcessor": "processing_htr.HTRProcessor" | |
| }, | |
| "vocab_file": "alphabet.json", | |
| "image_height": 64, | |
| "image_max_width": 3072, | |
| "width_stride": 32, | |
| "resample": "bilinear" | |
| } |