Image-Text-to-Text
PEFT
Safetensors
Vietnamese
English
ocr
handwriting
vietnamese
lora
paddleocr-vl
document-ai
conversational
Instructions to use trunghlt/senocr-vi-htr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use trunghlt/senocr-vi-htr with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("VietAlphaLabs/SenOCR-Vi") model = PeftModel.from_pretrained(base_model, "trunghlt/senocr-vi-htr") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from trunghlt/senocr-vi-htr: direct link, hf CLI and curl.
- Browser
- Download file 749 Bytes
-
https://huggingface.co/trunghlt/senocr-vi-htr/resolve/main/processor_config.json
- Command line
-
hf download hf://trunghlt/senocr-vi-htr/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/trunghlt/senocr-vi-htr/resolve/main/processor_config.json
749 Bytes
| { | |
| "image_processor": { | |
| "auto_map": { | |
| "AutoImageProcessor": "image_processing_paddleocr_vl.PaddleOCRVLImageProcessor", | |
| "AutoProcessor": "processing_paddleocr_vl.PaddleOCRVLProcessor" | |
| }, | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "PaddleOCRVLImageProcessor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "merge_size": 2, | |
| "patch_size": 14, | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "longest_edge": 1003520, | |
| "shortest_edge": 112896 | |
| }, | |
| "temporal_patch_size": 1 | |
| }, | |
| "processor_class": "PaddleOCRVLProcessor" | |
| } | |