Object Detection
ultralytics
YOLOv26
PyTorch
yolo
fire-detection
smoke-detection
computer-vision
real-time
safety
Eval Results (legacy)
Instructions to use SalahALHaismawi/yolov26-fire-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use SalahALHaismawi/yolov26-fire-detection with ultralytics:
from ultralytics import YOLOvv26 model = YOLOvv26.from_pretrained("SalahALHaismawi/yolov26-fire-detection") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - YOLOv26
How to use SalahALHaismawi/yolov26-fire-detection with YOLOv26:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
YOLOv26 Fire Detection
Real-time fire and smoke detection model based on YOLOv26 (Ultralytics). Achieves 94.9% mAP@50 on fire/smoke detection tasks.
Model Description
This model detects fire, smoke, and related fire indicators in images and videos. Built on YOLOv26-S architecture and trained on 8,939 annotated images.
Classes
- fire - Active flames
- smoke - Smoke plumes
- other - Related fire indicators
Performance
| Metric | Score |
|---|---|
| mAP@50 | 94.9% |
| mAP@50-95 | 68.0% |
| Precision | 89.6% |
| Recall | 88.8% |
Training Details
| Parameter | Value |
|---|---|
| Base Model | YOLOv26-S |
| Epochs | 100 |
| Batch Size | 16 |
| Image Size | 640x640 |
| Optimizer | AdamW |
| Learning Rate | 0.01 |
Usage
Installation
pip install ultralytics
Inference
from ultralytics import YOLO
# Load model
model = YOLO("path/to/best.pt")
# Run inference
results = model.predict("image.jpg", conf=0.25)
# Process results
for result in results:
boxes = result.boxes
for box in boxes:
cls = int(box.cls[0])
conf = float(box.conf[0])
label = model.names[cls]
print(f"Detected: {label} ({conf:.2f})")
Video Inference
from ultralytics import YOLO
model = YOLO("path/to/best.pt")
results = model.predict("video.mp4", save=True, conf=0.25)
Webcam (Real-time)
from ultralytics import YOLO
model = YOLO("path/to/best.pt")
results = model.predict(source=0, show=True, conf=0.25)
Detection Samples
Training Curves
Use Cases
- Building fire safety monitoring
- Wildfire early detection systems
- Industrial safety surveillance
- Smart home fire detection
- Drone-based fire monitoring
Limitations
- May have reduced accuracy in low-light conditions
- Smoke detection can be affected by fog/steam
- Best performance on images similar to training data
Dataset
Trained on fire detection dataset from Roboflow Universe:
- 8,939 images
- License: CC BY 4.0
Citation
@misc{yolov26-fire-detection,
author = {Salah AL-Haismawi},
title = {YOLOv26 Fire Detection},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/SalahALHaismawi/yolov26-fire-detection}}
}
License
MIT License
Acknowledgments
- Ultralytics for YOLO implementation
- Roboflow for the dataset
- Downloads last month
- 593
Evaluation results
- mAP@50self-reported94.900
- mAP@50-95self-reported68.000
- Precisionself-reported89.600
- Recallself-reported88.800

