OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

YOLOV5 Fire Detection

A MIT-licensed code repository demonstrating fire detection in video with YOLOv5 or YOLOv9 object-detection models.

Independent OpenViST project profile, based on linked sources.

YOLOV5 Fire Detection — Trying the included YOLOv5 fire weights on a video
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you need a code-level example for video fire detection or want to adapt the included training workflow to a labeled fire dataset.

Who it is for

  • Developers who want to run fire-detection inference on video using pretrained YOLO weights.
  • AI practitioners who want a documented starting workflow for training a fire detector on labeled images.
  • Readers inspecting YOLOv5 detection outputs and feature-map visualizations.

Documented uses

  • Run a pretrained fire detector over an input video and draw bounding boxes around detected flames.
  • Train a YOLOv5 or YOLOv9 model using fire images and annotations.
  • Inspect YOLOv5 feature maps during a detection run.
Before you choose

Requirements & limits

  • The documented workflow requires the separate YOLOv5 or YOLOv9 repository and installation of its requirements.
  • Training requires a fire dataset placed in the expected folder and preparation of its images and annotation labels.
  • The README documents a false-positive issue involving red emergency lights, so the example should be assessed against the intended video conditions.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Run YOLOv5 fire detection on a video

Apply the included pretrained YOLOv5 weights to an input video and produce fire-detection results.

Before you start

  • Clone this project and install YOLOv5 with its requirements.
  • Provide an input video file.
  • Use the pretrained weights at models/yolov5s_best.pt.

Steps

  1. Clone the project repository.

  2. Clone the Ultralytics YOLOv5 repository and install its requirements with pip install -r requirements.txt.

  3. From the YOLOv5 directory, run python detect.py --source ../input.mp4 --weights ../models/yolov5s_best.pt --conf 0.2, adjusting the source path to the video file.

Expected outcome

YOLOv5 runs detection on the video using the included fire weights and draws bounding boxes for detected fire.

Guide limitations

  • The example reports false detections on red emergency lights; the author notes that the training data had only a few hundred negative samples.
  • The command and example are project instructions, not a guarantee of detection performance on other video.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
19 November 2026
Original website title
spacewalk01/yolov5-fire-detection · Official homepage title · retained in its source language