This repository contains the custom YOLOv8s model trained by Pyronear for early wildfire detection. Our model leverages the powerful capabilities of the Ultralytics YOLOv8 framework to accurately identify potential wildfire hotspots in real-time.
Install the ultralytics package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.
For alternative installation methods including Conda, Docker, and Git, please refer to the
Ultralytics Quickstart Guide.
1from ultralytics import YOLO
2from PIL import Image
3
4# Load the model
5model = YOLO('pyronear/yolov8s.pt')
6
7# Run inference
8results = model('path/to/your/image.jpg', conf=0.2, iou=0.1)
9
10# Display results
11results.show()
For more examples and detailed usage, see the
YOLOv8 Python Docs.
This project utilizes the
Ultralytics YOLOv8 framework. Special thanks to the Ultralytics team for their support and contributions to the open-source community.