Downloads · 30 days
0
eren23/dinov3-yolo11m-distilled-ocr
dinov3-yolo11m-distilled-ocr is a machine learning model from eren23. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a YOLO11-based OCR object detector distilled from a DINOv3 ViT-B/16 teacher using LightlyTrain. The goal: produce a lightweight but high-recall text box detector suitable for OCR, ID scanning,…
Downloads · 30 days
0
Access
Public
Updated Nov 23, 2025
Repo size
295 MB
Likes
0
Public
Click a slice to open those files.
.ckpt255 MB · 86%
From the Hugging Face model README
This repository contains a YOLO11-based OCR object detector distilled from a DINOv3 ViT-B/16 teacher using LightlyTrain.
The goal: produce a lightweight but high-recall text box detector suitable for OCR, ID scanning, document parsing, and multi-language text extraction.
dinov3/vitb16YOLO11s (custom convolutional backbone)distillation (features-only MSE loss).ptexported_models/exported_last.ptThis model is trained to detect text regions inside real-world documents:
It does not perform OCR itself — recognition should be done with a second-stage model (Tesseract, TrOCR, Nougat, PaddleOCR, VietOCR, etc.)
from ultralytics import YOLO
model = YOLO("exported_last.pt")
results = model("/content/example.jpg")
results[0].show() # visualize text boxes
boxes = results[0].boxes.xyxy.cpu().numpy() confs = results[0].boxes.conf.cpu().numpy()
for xyxy, conf in zip(boxes, confs): print(xyxy, conf)
lightly_train.train( out="dinov3_yolo11_distilled", data="/content/unlabeled_idl_images", model="yolo11s", method="distillation", method_args={ "teacher": "dinov3/vitb16", "teacher_weights": "/content/dinov3_vitb16_pretrain.pth" }, epochs=2, batch_size=4, precision="16-mixed" )