{"id":18918440,"url":"https://github.com/hacker1649/fire-detection-yolov5","last_synced_at":"2026-03-12T06:30:17.540Z","repository":{"id":239157596,"uuid":"798720925","full_name":"hacker1649/fire-detection-YOLOv5","owner":"hacker1649","description":"Implementing YOLOv5 for fire detection, blazing through images with precision. Harnessing deep learning to swiftly identify flames, safeguarding lives and properties.","archived":false,"fork":false,"pushed_at":"2024-05-15T18:45:24.000Z","size":40655,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T15:50:43.340Z","etag":null,"topics":["computer-vision","deep-learning","python3","ultralytics","yolov5"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hacker1649.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-10T10:37:24.000Z","updated_at":"2024-05-15T18:45:28.000Z","dependencies_parsed_at":"2024-11-08T10:43:59.691Z","dependency_job_id":null,"html_url":"https://github.com/hacker1649/fire-detection-YOLOv5","commit_stats":null,"previous_names":["hacker1649/fire-detection-yolov5"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Ffire-detection-YOLOv5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Ffire-detection-YOLOv5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Ffire-detection-YOLOv5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hacker1649%2Ffire-detection-YOLOv5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hacker1649","download_url":"https://codeload.github.com/hacker1649/fire-detection-YOLOv5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239914929,"owners_count":19717760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["computer-vision","deep-learning","python3","ultralytics","yolov5"],"created_at":"2024-11-08T10:31:54.908Z","updated_at":"2026-03-12T06:30:17.511Z","avatar_url":"https://github.com/hacker1649.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Real Time Fire Detection Using YOLOv5\n\nFire detection task aims to identify fire or flame in an image or a video and put a bounding box around it. This repo includes a demo on how to build a fire detector using YOLOv5. \n\n## 🛠️ Installation\n1. Clone this repo \n``` shell\n# Clone\ngit clone https://github.com/hacker1649/fire-detection-YOLOv5.git\ncd Fire-Detection-YOLOv5\n```\n\n2. Install [YOLOv5](https://github.com/ultralytics/yolov5). \n``` shell\ngit clone https://github.com/ultralytics/yolov5.git \ncd yolov5\npip install -r requirements.txt\n```\n\n## 🏋️ Training\nI set up ```train.ipynb``` script for training the model from scratch. To train the model, download [Fire-Dataset](https://drive.google.com/file/d/1TQKA9nzo0BVwtmojmSusDt5j02KWzIu9/view?usp=sharing) and put it in ```datasets``` folder. This dataset contains samples from both [Fire \u0026 Smoke](https://www.kaggle.com/dataclusterlabs/fire-and-smoke-dataset) and [Fire \u0026 Guns](https://www.kaggle.com/atulyakumar98/fire-and-gun-dataset) datasets on Kaggle. I filtered out images and annotations that contain smokes \u0026 guns as well as images with low resolution, and then changed fire annotation's label in annotation files.\n\n- YOLOv5\n```\npython train.py --img 640 --batch 16 --epochs 10 --data ../fire.yaml --weights yolov5s.pt --workers 0\n```\n\n## 🌱 Inference\n\n- YOLOv5\n  \nIf you train your own model, use the following command for detection:\n``` shell\npython detect.py --source ../input.mp4 --weights runs/train/exp/weights/best.pt --conf 0.2\n```\nOr you can use the pretrained model located in ```models``` folder for detection as follows:\n``` shell\npython detect.py --source ../input.mp4 --weights ../models/yolov5s_best.pt --conf 0.2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacker1649%2Ffire-detection-yolov5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhacker1649%2Ffire-detection-yolov5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhacker1649%2Ffire-detection-yolov5/lists"}