Downloads · 30 days
17
15% of all-time downloads
mikoy92/PP-OCRv6-tiny-rec-mlx
PP-OCRv6-tiny-rec-mlx is a image-to-text model from mikoy92. Use it when you need a caption or text from an image. It is set up for mlx. The card lists the license as apache-2.0.
This is an MLX-format conversion of PaddlePaddle/PP-OCRv6tinyrecsafetensors for use with mlx-vlm.
Downloads · 30 days
17
15% of all-time downloads
All-time downloads
112
Public
Parameters
1.1M
4.5 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.5 MB · 98%
From the Hugging Face model README
This is an MLX-format conversion of PaddlePaddle/PP-OCRv6_tiny_rec_safetensors for use with mlx-vlm.
import mlx.core as mx
from PIL import Image
from mlx_vlm import load
model, processor = load("mikoy92/PP-OCRv6-tiny-rec-mlx")
image = Image.open("word.png")
inputs = processor(image)
outputs = model(**inputs)
mx.eval(outputs.logits)
print(processor.post_process_text_recognition(outputs)[0])