Downloads · 30 days
61
15% of all-time downloads
leeyunjai/yolo11-cls-mask
yolo11-cls-mask is a image classification model from leeyunjai. Use it when you need a label for an image. It is set up for ultralytics.
To use this model in your project, follow the steps below:
Downloads · 30 days
61
15% of all-time downloads
All-time downloads
420
Public
Repo size
70.3 MB
Likes
0
Public
Click a slice to open those files.
.pt68.1 MB · 97%
From the Hugging Face model README
To use this model in your project, follow the steps below:
Ensure you have the ultralytics library installed, which is used for YOLO models:
pip install ultralytics
# class
with_mask
without_mask
You can load the model and perform detection on an image as follows:
from ultralytics import YOLO
# Load the model
model = YOLO("./mask-11x-224.pt")
# Perform detection on an image
results = model("image.png", imgsz=224)
# Display or process the results
results.show() # This will display the image with detected objects
The results object contains bounding boxes, labels (e.g., numbers or operators), and confidence scores for each detected object.
Access them like this:
# View results
for r in results:
print(r.probs) # print the Probs object containing the detected class probabilities
