Downloads · 30 days
83
24% of all-time downloads
Manas-Maahir/violence-detection-yolov26
violence-detection-yolov26 is a object detection model from Manas-Maahir. Use it when you need objects located in an image. It is set up for ultralytics. The card lists the license as agpl-3.0.
A single-class object detector that localizes violence in images/video frames. Fine-tuned from Ultralytics yolo26s.pt (COCO-pretrained).
Downloads · 30 days
83
24% of all-time downloads
All-time downloads
342
Public
Repo size
60.2 MB
Likes
0
Public
Click a slice to open those files.
.pt60.2 MB · 100%
From the Hugging Face model README
A single-class object detector that localizes violence in images/video frames.
Fine-tuned from Ultralytics yolo26s.pt (COCO-pretrained).
| Architecture | YOLOv26-s (Ultralytics), task: detect |
| Base weights | yolo26s.pt (COCO-pretrained) |
| Classes | 1 — Violence |
| Input size | 512 × 512 |
| Training | 20 epochs, batch 12, cosine LR, AMP |
| Framework | Ultralytics 8.4.12 |
| Metric | Value |
|---|---|
| mAP@50 | 0.928 |
| mAP@50-95 | 0.901 |
| Precision | 0.918 |
| Recall | 0.784 |
Trained on a custom YOLO-format dataset derived from surveillance/anomaly sources. The dataset-preparation scripts reference:
⚠️ These source datasets are released under their own academic/research-use terms and are not redistributed here. Only the fine-tuned weights are shared. Verify you have the right to use this model for your use case.
from ultralytics import YOLO
model = YOLO("best.pt")
results = model("image.jpg") # or a video / webcam stream
for r in results:
r.show() # display detections
print(r.boxes.xyxy, r.boxes.conf) # boxes + confidence
This model is derived from Ultralytics YOLO, which is AGPL-3.0. The weights are therefore distributed under AGPL-3.0. For closed-source/commercial use, obtain an Ultralytics Enterprise License.