Image-to-Text
PEFT
Safetensors
Arabic
English
lora
qlora
dora
vision-language
manuscript
arabic
ocr
qwen2.5-vl
Eval Results (legacy)
Instructions to use HassanB4/Ketaba-OCR-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use HassanB4/Ketaba-OCR-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("sherif1313/Arabic-English-handwritten-OCR-v3") model = PeftModel.from_pretrained(base_model, "HassanB4/Ketaba-OCR-LoRA") - Notebooks
- Google Colab
- Kaggle
| { | |
| "image_processor": { | |
| "data_format": "channels_first", | |
| "default_to_square": true, | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "image_processor_type": "Qwen2VLImageProcessorFast", | |
| "image_std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ], | |
| "merge_size": 2, | |
| "patch_size": 14, | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "longest_edge": 12845056, | |
| "shortest_edge": 3136 | |
| }, | |
| "temporal_patch_size": 2 | |
| }, | |
| "processor_class": "Qwen2_5_VLProcessor", | |
| "video_processor": { | |
| "data_format": "channels_first", | |
| "default_to_square": true, | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "do_sample_frames": false, | |
| "image_mean": [ | |
| 0.48145466, | |
| 0.4578275, | |
| 0.40821073 | |
| ], | |
| "image_std": [ | |
| 0.26862954, | |
| 0.26130258, | |
| 0.27577711 | |
| ], | |
| "max_frames": 768, | |
| "merge_size": 2, | |
| "min_frames": 4, | |
| "patch_size": 14, | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "return_metadata": false, | |
| "size": { | |
| "longest_edge": 12845056, | |
| "shortest_edge": 3136 | |
| }, | |
| "temporal_patch_size": 2, | |
| "video_processor_type": "Qwen2VLVideoProcessor" | |
| } | |
| } | |