GithubHelp home page GithubHelp logo

coastline7 / fire-smoke-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imsaksham-c/fire-smoke-detection

0.0 0.0 0.0 96.9 MB

Detecting Fire, Smoke using Computer Vision, Open CV and PyTorch

License: MIT License

Jupyter Notebook 100.00%

fire-smoke-detection's Introduction

Fire-Smoke-Detection

Detecting Fire, Smoke using Computer Vision, Open CV and PyTorch

Early fire/smoke detection plays a very important role in protecting many lives also property loss can be reduced and downtime for the operation minimized through early detection. Therefore in this project I have developed an Computer Vision & Deep Learning pipeline for fire and smoke detection.

Demo Output -

Download the Dataset - download

Dataset Folder -

Train
    - Fire
    - Neutral
    - Smoke       
Test
    - Fire
    - Neutral
    - Smoke
    
Dataset contains 1000 images of each class

Model Structure -

For traing the model I have used transfer learning technique. Architecture used here is ResNet50 which is pretrained on ImageNet dataset. I have achieved validation accuracy of 93% using ResNet. For more info about training and graphs - open Training.ipynb

Training Loss

Model Accuracy

Sample Results

Steps -

  1. Clone/Download the repo
  2. Download the dataset
  3. For training - open Training.ipnb
  4. For inference - open Inference.ipynb

Requirements -

Python3

PyTorch

OpenCV

Matplotlib

Numpy

Upcoming Work -

RestAPI (rest api using flask)

References

  1. PyImageSearch - https://www.pyimagesearch.com/2019/11/18/fire-and-smoke-detection-with-keras-and-deep-learning/
  2. DeepQuestAI/Fire-Smoke-Dataset - https://github.com/DeepQuestAI/Fire-Smoke-Dataset

fire-smoke-detection's People

Contributors

imsaksham-c avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.