Pyrovision
Computer vision library for wildfire detection.
https://github.com/pyronear/pyro-vision
Category: Biosphere
Sub Category: Wildfire
Keywords
computer-vision deep-learning image-classification keypoint-detection object-detection onnx python pytorch wildfire
Keywords from Contributors
jekyll dash-server plotly-dash web-app wildfires wildfire-management onnxruntime
Last synced: 19 minutes ago
JSON representation
Repository metadata
Computer vision library for wildfire detection 🌲 Deep learning models in PyTorch & ONNX for inference on edge devices (e.g. Raspberry Pi)
- Host: GitHub
- URL: https://github.com/pyronear/pyro-vision
- Owner: pyronear
- License: apache-2.0
- Created: 2019-09-08T13:15:41.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-04-12T00:53:18.000Z (about 2 years ago)
- Last Synced: 2026-06-07T04:04:02.521Z (8 days ago)
- Topics: computer-vision, deep-learning, image-classification, keypoint-detection, object-detection, onnx, python, pytorch, wildfire
- Language: Python
- Homepage: https://pyronear.org/pyro-vision/
- Size: 7.66 MB
- Stars: 65
- Watchers: 10
- Forks: 24
- Open Issues: 10
- Releases: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
README.md

Pyrovision: wildfire early detection
The increasing adoption of mobile phones have significantly shortened the time required for firefighting agents to be alerted of a starting wildfire. In less dense areas, limiting and minimizing this duration remains critical to preserve forest areas.
Pyrovision aims at providing the means to create a wildfire early detection system with state-of-the-art performances at minimal deployment costs.
Quick Tour
Automatic wildfire detection in PyTorch
You can use the library like any other python package to detect wildfires as follows:
from pyrovision.models import rexnet1_0x
from torchvision import transforms
import torch
from PIL import Image
# Init
normalize = transforms.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
tf = transforms.Compose([transforms.Resize(size=(448)), transforms.CenterCrop(size=448),
transforms.ToTensor(), normalize])
model = rexnet1_0x(pretrained=True).eval()
# Predict
im = tf(Image.open("path/to/your/image.jpg").convert('RGB'))
with torch.no_grad():
pred = model(im.unsqueeze(0))
is_wildfire = torch.sigmoid(pred).item() >= 0.5
Setup
Python 3.6 (or higher) and pip/conda are required to install PyroVision.
Stable release
You can install the last stable release of the package using pypi as follows:
pip install pyrovision
or using conda:
conda install -c pyronear pyrovision
Developer installation
Alternatively, if you wish to use the latest features of the project that haven't made their way to a release yet, you can install the package from source:
git clone https://github.com/pyronear/pyro-vision.git
pip install -e pyro-vision/.
What else
Documentation
The full package documentation is available here for detailed specifications.
Demo app
The project includes a minimal demo app using Gradio

You can check the live demo, hosted on 🤗 HuggingFace Spaces 🤗 over here 👇
Docker container
If you wish to deploy containerized environments, a Dockerfile is provided for you build a docker image:
docker build . -t <YOUR_IMAGE_TAG>
Minimal API template
Looking for a boilerplate to deploy a model from PyroVision with a REST API? Thanks to the wonderful FastAPI framework, you can do this easily. Follow the instructions in ./api to get your own API running!
Reference scripts
If you wish to train models on your own, we provide training scripts for multiple tasks!
Please refer to the ./references folder if that's the case.
Citation
If you wish to cite this project, feel free to use this BibTeX reference:
@misc{pyrovision2019,
title={Pyrovision: wildfire early detection},
author={Pyronear contributors},
year={2019},
month={October},
publisher = {GitHub},
howpublished = {\url{https://github.com/pyronear/pyro-vision}}
}
Contributing
Please refer to CONTRIBUTING to help grow this project!
License
Distributed under the Apache 2 License. See LICENSE for more information.
Owner metadata
- Name: PyroNear
- Login: pyronear
- Email:
- Kind: organization
- Description: Preserving forests from wildfires one commit at a time
- Website: https://pyronear.org/
- Location: Paris
- Twitter: pyro_near
- Company:
- Icon url: https://avatars.githubusercontent.com/u/61667887?v=4
- Repositories: 23
- Last ynced at: 2024-10-30T02:43:17.535Z
- Profile URL: https://github.com/pyronear
GitHub Events
Total
- Fork event: 1
- Watch event: 10
Last Year
- Fork event: 1
- Watch event: 2
Committers metadata
Last synced: 2 days ago
Total Commits: 140
Total Committers: 10
Avg Commits per committer: 14.0
Development Distribution Score (DDS): 0.457
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| F-G Fernandez | f****3@h****r | 76 |
| x0s | g****a@g****m | 29 |
| lostanlen | m****n@g****m | 20 |
| dependabot[bot] | 4****] | 6 |
| blenzi | B****i@c****h | 4 |
| fe51 | 5****1 | 1 |
| Serhii Kupriienko | 7****a | 1 |
| Nidham Tekaya | 6****m | 1 |
| Ankit Dobhal | d****t@p****m | 1 |
| Akidlitu | 5****u | 1 |
Committer domains:
- cern.ch: 1
Issue and Pull Request metadata
Last synced: 22 days ago
Total issues: 46
Total pull requests: 139
Average time to close issues: 5 months
Average time to close pull requests: 26 days
Total issue authors: 9
Total pull request authors: 10
Average comments per issue: 1.65
Average comments per pull request: 1.86
Merged pull request: 116
Bot issues: 0
Bot pull requests: 13
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- frgfm (27)
- MateoLostanlen (9)
- blenzi (3)
- Akilditu (2)
- x0s (1)
- TekayaNidham (1)
- alizeeeeeee (1)
- KevinJMcEntee (1)
- fe51 (1)
Top Pull Request Authors
- frgfm (73)
- MateoLostanlen (31)
- dependabot[bot] (16)
- x0s (8)
- blenzi (5)
- Akilditu (2)
- fe51 (2)
- powerexploit (2)
- skupr-anaconda (1)
- TekayaNidham (1)
Top Issue Labels
- help wanted (17)
- type: enhancement (13)
- module: datasets (12)
- module: models (11)
- type: bug (10)
- ext: references (6)
- ext: tests (5)
- wontfix (4)
- topic: documentation (3)
- topic: build (3)
- invalid (2)
- question (2)
- ext: demo (1)
- module: utils (1)
Top Pull Request Labels
- type: enhancement (47)
- topic: documentation (36)
- topic: build (35)
- module: datasets (30)
- type: bug (21)
- ext: tests (16)
- dependencies (16)
- ext: api (15)
- ext: references (14)
- module: models (13)
- topic: ci (13)
- type: new feature (10)
- module: utils (5)
- ext: docs (5)
- type: code quality (5)
- module: nn (3)
- ext: scripts (3)
- topic: docker (2)
- type: breaking change (2)
- ext: demo (2)
- type: misc (1)
- question (1)
- invalid (1)
Package metadata
- Total packages: 2
-
Total downloads:
- pypi: 407 last-month
- Total dependent packages: 0 (may contain duplicates)
- Total dependent repositories: 1 (may contain duplicates)
- Total versions: 7
- Total maintainers: 1
proxy.golang.org: github.com/pyronear/pyro-vision
- Homepage:
- Documentation: https://pkg.go.dev/github.com/pyronear/pyro-vision#section-documentation
- Licenses: apache-2.0
- Latest release: v0.2.0 (published almost 4 years ago)
- Last Synced: 2026-06-13T10:28:53.277Z (2 days ago)
- Versions: 4
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 5.395%
- Average: 5.576%
- Dependent repos count: 5.758%
pypi.org: pyrovision
Datasets and models for wildfire detection in PyTorch
- Homepage:
- Documentation: https://pyrovision.readthedocs.io/
- Licenses: Apache Software License
- Latest release: 0.2.0 (published almost 4 years ago)
- Last Synced: 2026-06-13T10:28:50.912Z (2 days ago)
- Versions: 3
- Dependent Packages: 0
- Dependent Repositories: 1
- Downloads: 407 Last month
-
Rankings:
- Dependent packages count: 10.095%
- Dependent repos count: 21.615%
- Average: 23.637%
- Downloads: 39.2%
- Maintainers (1)
Dependencies
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- actions/setup-python v1 composite
- abatilo/actions-poetry v2.0.0 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- JamesIves/github-pages-deploy-action 3.7.1 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- webfactory/ssh-agent v0.4.1 composite
- actions/checkout master composite
- gaurav-nelson/github-action-markdown-link-check master composite
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/labeler v4 composite
- actions/setup-python v2 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- conda-incubator/setup-miniconda v2 composite
- docker/build-push-action v1 composite
- actions/checkout v2 composite
- actions/setup-python v1 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/setup-python v2 composite
- actions/cache v2 composite
- actions/checkout v2 composite
- actions/download-artifact v2 composite
- actions/setup-python v1 composite
- actions/upload-artifact v2 composite
- codecov/codecov-action v1 composite
- frgfm/validate-python-headers main composite
- python 3.8.1-slim build
- tiangolo/uvicorn-gunicorn-fastapi python3.8-slim build
- anyio 3.6.1
- atomicwrites 1.4.1
- attrs 21.4.0
- certifi 2023.7.22
- charset-normalizer 2.1.0
- click 8.1.3
- colorama 0.4.5
- fastapi 0.78.0
- filelock 3.7.1
- flatbuffers 2.0
- h11 0.12.0
- httpcore 0.15.0
- httpx 0.23.0
- huggingface-hub 0.8.1
- idna 3.3
- iniconfig 1.1.1
- numpy 1.23.1
- onnxruntime 1.11.1
- packaging 21.3
- pillow 9.3.0
- pluggy 1.0.0
- protobuf 4.21.6
- py 1.11.0
- pydantic 1.9.1
- pyparsing 3.0.9
- pytest 7.1.2
- pytest-asyncio 0.18.3
- python-multipart 0.0.5
- pyyaml 6.0
- requests 2.31.0
- rfc3986 1.5.0
- six 1.16.0
- sniffio 1.2.0
- starlette 0.19.1
- tomli 2.0.1
- tqdm 4.64.0
- typing-extensions 4.3.0
- urllib3 1.26.10
- uvicorn 0.18.2
- httpx >=0.23.0 develop
- pytest >=5.3.2,<8.0.0 develop
- pytest-asyncio >=0.14.0,<1.0.0 develop
- requests ^2.31.0 develop
- Pillow >=8.4.0
- fastapi >=0.65.2,<1.0.0
- huggingface-hub >=0.4.0,<1.0.0
- numpy ^1.19.5
- onnxruntime ^1.10.0
- python ^3.8
- python-multipart ==0.0.5
- uvicorn >=0.11.1
- Pillow >=8.4.0
- gradio >=3.0.2,<4.0.0
- huggingface-hub >=0.4.0,<1.0.0
- numpy >=1.19.5,<2.0.0
- onnxruntime >=1.10.0,<2.0.0
- huggingface-hub >=0.4.0
- pylocron >=0.2.1,<1.0.0
- requests >=2.20.0,<3.0.0
- torch >=1.11.0,<2.0.0
- torchvision >=0.12.0,<1.0.0
- tqdm >=4.1.0
Score: 12.633788362573158