Downloads · 30 days
16
9% of all-time downloads
mikoy92/PP-OCRv6-tiny-det-mlx
PP-OCRv6-tiny-det-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-OCRv6tinydetsafetensors for use with mlx-vlm.
Downloads · 30 days
16
9% of all-time downloads
All-time downloads
172
Public
Parameters
438K
1.8 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.8 MB · 98%
From the Hugging Face model README
This is an MLX-format conversion of PaddlePaddle/PP-OCRv6_tiny_det_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-det-mlx")
image = Image.open("document.png")
inputs = processor(image)
outputs = model(**inputs)
mx.eval(outputs.logits)
result = processor.post_process_object_detection(
outputs,
target_sizes=inputs["target_sizes"],
)[0]
print(result["boxes"])