Downloads · 30 days
348
1% of all-time downloads
armvectores/yolov8n_handwritten_text_detection
yolov8n_handwritten_text_detection is a object detection model from armvectores. Use it when you need objects located in an image. It is set up for ultralytics.
YOLOv8 is the eighth version of the You Only Look Once (YOLO) object detection algorithm. It excels in speed and accuracy, making it an ideal choice for real-time applications. The YOLOv8 model provided here has been…
Downloads · 30 days
348
1% of all-time downloads
All-time downloads
24.4K
Public
Repo size
6.2 MB
Likes
15
Public
Click a slice to open those files.
.pt6.2 MB · 85%
From the Hugging Face model README
YOLOv8 is the eighth version of the You Only Look Once (YOLO) object detection algorithm. It excels in speed and accuracy, making it an ideal choice for real-time applications. The YOLOv8 model provided here has been fine-tuned on a diverse dataset of handwritten texts to improve its specificity in detecting handwritten content as opposed to typed or printed materials.
pip install ultralytics
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
from matplotlib import pyplot as plt
# Load the weights from our repository
model_path = hf_hub_download(local_dir=".",
repo_id="armvectores/yolov8n_handwritten_text_detection",
filename="best.pt")
model = YOLO(model_path)
# Load test blank
test_blank_path = hf_hub_download(local_dir=".",
repo_id="armvectores/yolov8n_handwritten_text_detection",
filename="test_blank.png")
# Do the predictions
res = model.predict(source=test_blank_path, project='.',name='detected', exist_ok=True, save=True, show=False, show_labels=False, show_conf=False, conf=0.5, )
plt.figure(figsize=(15,10))
plt.imshow(plt.imread('detected/test_blank.png'))
plt.show()
The final IoU=0.98
The IoU during training
<p align="center"> <img src="results.png" width="200" /> </p>