Image-to-Text
Transformers
Safetensors
PyTorch
ONNX
English
Ukrainian
htr-convtext
image-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)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Valerii02/ukr-htr-convtext", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Valerii Sielikhov commited on
Commit ·
962e061
1
Parent(s): e721d41
Add auto_map configuration for HTRProcessor in preprocessor_config.json
Browse files- preprocessor_config.json +3 -0
preprocessor_config.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"processor_class": "HTRProcessor",
|
|
|
|
|
|
|
|
|
|
| 3 |
"vocab_file": "alphabet.json",
|
| 4 |
"image_height": 64,
|
| 5 |
"image_max_width": 3072,
|
|
|
|
| 1 |
{
|
| 2 |
"processor_class": "HTRProcessor",
|
| 3 |
+
"auto_map": {
|
| 4 |
+
"AutoProcessor": "processing_htr.HTRProcessor"
|
| 5 |
+
},
|
| 6 |
"vocab_file": "alphabet.json",
|
| 7 |
"image_height": 64,
|
| 8 |
"image_max_width": 3072,
|