Views
No views yet

1from ultralytics import YOLO
2
3model = YOLO("fire_seg_yolo11n.pt")
4
5# image, video file, folder, URL or webcam index all work
6results = model.predict("fire_video.mp4", conf=0.35)
7
8for r in results:
9 if r.masks is not None:
10 print(f"fire instances: {len(r.masks)}")
11 r.show() # or r.save()yolo segment predict model=fire_seg_yolo11n.pt source=fire_video.mp4 conf=0.35| Base model | yolo11n-seg.pt (Ultralytics YOLO11 nano, segmentation) |
| Task | Instance segmentation, 1 class: fire |
| Input size | 640 × 640 |
| Epochs | 60 |
| Mask mAP50 | 0.54 |
| Mask mAP50-95 | 0.29 |
| Box mAP50 | 0.55 |
