Downloads · 30 days
0
JJJHHHH/cloth_surgical_mask_detection_yolov8
cloth_surgical_mask_detection_yolov8 is a object detection model from JJJHHHH. Use it when you need objects located in an image. The card lists the license as apache-2.0.
This YOLOv8-based object detection model is fine-tuned to detect and classify surgical and cloth masks from images. It is designed for real-time or batch processing in medical and public settings where distinguishing…
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2025
Repo size
22.5 MB
Likes
1
Public
Click a slice to open those files.
.pt22.5 MB · 100%
From the Hugging Face model README
This YOLOv8-based object detection model is fine-tuned to detect and classify surgical and cloth masks from images. It is designed for real-time or batch processing in medical and public settings where distinguishing between mask types is relevant for safety monitoring, compliance checks, or health-related research.
yolov8s and yolov8m variantssurgical mask, cloth maskyolov8s_baseline — chosen for its superior fine-grained localization performance (highest [email protected]:0.95)from ultralytics import YOLO
from huggingface_hub import snapshot_download
import os
# Load model from Hugging Face Hub
repo_id = "JJJHHHH/cloth_surgical_mask_detection_yolov8"
model_dir = snapshot_download(repo_id)
model = YOLO(os.path.join(model_dir, "best.pt"))
# Run inference on an image
results = model("your_image.jpg", conf=0.5, iou=0.6)
results[0].show()