Instructions to use Beehzod/yolov26-fire-smoke-detection_v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use Beehzod/yolov26-fire-smoke-detection_v3 with ultralytics:
from ultralytics import YOLOvv26 model = YOLOvv26.from_pretrained("Beehzod/yolov26-fire-smoke-detection_v3") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - YOLOv26
How to use Beehzod/yolov26-fire-smoke-detection_v3 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-smoke-detection_v3
Fine-tuned from yolov26-fire-detection (YOLOv26-S) using Ultralytics.
Classes
FireSmoke
Dataset
- Images: 3202 train / 403 valid / 395 test
- Check the dataset page above for its license -- not necessarily the same as this repo's
licensefield, which reflects the base model's license.
Training
| Parameter | Value |
|---|---|
| Epochs | 100 |
| Image size | 640 |
| Batch size | 16 |
| Optimizer | AdamW |
| Initial LR (lr0) | 0.001 |
| Patience (early stop) | 20 |
Results (held-out validation split)
| Metric | Value |
|---|---|
| mAP50 | 0.7262 |
| mAP50-95 | 0.4937 |
| Precision | 0.7062 |
| Recall | 0.6608 |
Usage
from ultralytics import YOLO
model = YOLO("best.pt")
results = model.predict("image.jpg", conf=0.25)
for r in results:
for box in r.boxes:
print(model.names[int(box.cls[0])], float(box.conf[0]))
- Downloads last month
- -
Evaluation results
- mAP50self-reported0.726
- mAP50-95self-reported0.494
- precisionself-reported0.706
- recallself-reported0.661