Aller au contenu
ModelPrésentéExterne
Télécharger

PP OCRv6 Small Det Mlx

This is an MLX-format conversion of PaddlePaddle/PP-OCRv6smalldetsafetensors for use with mlx-vlm.

TypeOtherModèle de basePaddlePaddle/PP-OCRv6_small_det_safetensorsVersionRevision 321099fBClasse

Source du modèle

Type
Other
Taille du fichier
9,48 MB
Modèle de base
PaddlePaddle/PP-OCRv6_small_det_safetensors
Version
vRevision 321099f
Mis à jour
23 oct. 2026
Téléchargements
126
Source
Hugging Face

Description de la source

PP-OCRv6 small text detection MLX

This is an MLX-format conversion of PaddlePaddle/PP-OCRv6_small_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-small-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"])

Sources

1 source
Hugging FacePrincipalVersion 321099f33e1fff2addccea6e6a2637139ef35b59
huggingface.co/mikoy92/PP-OCRv6-small-det-mlx/tree/321099f33e1fff2addccea6e6a2637139ef35b59

Vérifié 23 oct.

Artefacts du modèle

1 artefact

model.safetensors

safetensors · 9,48 MB · SHA-256 964b98f7a768…6f79 · Hugging Face

Download file

Extraits de sources

3 extraits

--- license: apache-2.0 library_name: mlx language: - en - zh pipeline_tag: image-to-text tags: - OCR - PaddlePaddle - PaddleOCR - textline_detection - mlx base_model: PaddlePaddle/PP-OCRv6_small_det_safetensors --- # PP-OCRv6 small text detection MLX This is an MLX-format conversion of `PaddlePaddle/PP-OCRv6_small_det_safetensors` for use with `mlx-vlm`. ```python import mlx.core as mx from PIL import Image from mlx_vlm import load model, processor = load("mikoy92/PP-OCRv6-small-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"]) ```

Source context: 126 downloads · 0 likes · Pipeline image-to-text · Library mlx · Repo mikoy92/PP-OCRv6-small-det-mlx

Source context: 70 downloads · 0 likes · Pipeline image-to-text · Library mlx · Repo mikoy92/PP-OCRv6-small-det-mlx