Downloads · 30 days
0
electricsheepafrica/Lara
Lara is a object detection model from electricsheepafrica. Use it when you need objects located in an image. The card lists the license as mit.
Lara is a state-of-the-art YOLOv8-based object detection model specifically trained for malaria parasite detection in blood smear microscopy images. This model achieves world-class performance with 99.14% mAP50 and is…
Downloads · 30 days
0
Access
Public
Updated Aug 27, 2025
Repo size
31.1 MB
Likes
0
Public
Click a slice to open those files.
.torchscript12.5 MB · 40%
From the Hugging Face model README
Lara is a state-of-the-art YOLOv8-based object detection model specifically trained for malaria parasite detection in blood smear microscopy images. This model achieves world-class performance with 99.14% mAP50 and is designed for clinical deployment.
| Metric | Value |
|---|---|
| mAP50 | 99.14% |
| mAP50-95 | 99.13% |
| Precision | 97.18% |
| Recall | 96.39% |
This repository includes multiple model formats for different deployment scenarios:
best_model.pt - PyTorch format (6.2MB) - For training and researchbest_model.onnx - ONNX format (12.3MB) - For cross-platform inferencebest_model.torchscript - TorchScript format (12.5MB) - For production deploymentfrom ultralytics import YOLO
import cv2
# Load model
model = YOLO('best_model.pt')
# Run inference
image = cv2.imread('blood_smear.jpg')
results = model(image)
# Process results
for result in results:
boxes = result.boxes
for box in boxes:
confidence = box.conf[0]
if confidence > 0.5: # Confidence threshold
print(f"Malaria parasite detected with {confidence:.2%} confidence")
import onnxruntime as ort
import numpy as np
from PIL import Image
# Load ONNX model
session = ort.InferenceSession('best_model.onnx')
# Preprocess image
image = Image.open('blood_smear.jpg').resize((640, 640))
image_array = np.array(image).transpose(2, 0, 1).astype(np.float32) / 255.0
image_array = np.expand_dims(image_array, axis=0)
# Run inference
outputs = session.run(None, {'images': image_array})
This model has been validated on a held-out test set of 2,756 images and demonstrates:
If you use this model in your research, please cite:
@misc{lara_malaria_2024,
title={Lara: Clinical-Grade Malaria Parasite Detection using YOLOv8},
author={Electric Sheep Africa},
year={2024},
publisher={HuggingFace Hub},
url={https://huggingface.co/electricsheepafrica/Lara}
}
This model was trained on the Malaria Parasite Detection Dataset, which contains 27,558 annotated images in YOLO format.
Training code and deployment scripts are available at: GitHub Repository
For questions about this model or collaboration opportunities, please contact Electric Sheep Africa.
Disclaimer: This model is for research and development purposes. Clinical validation and regulatory approval are required before use in diagnostic applications.