Giter Site home page Giter Site logo

shiguangbl / firesmokedetectionbyefficientnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from midasklr/firesmokedetectionbyefficientnet

0.0 1.0 0.0 1.89 MB

Fire and smoke classification and detection using efficientnet

License: Apache License 2.0

Python 100.00%

firesmokedetectionbyefficientnet's Introduction

FireSmokeDetectionByEfficientNet

EfficientNet is a wonderful classification network. the efficientnet implementation refer to [EfficientNet-PyTorch](https://github.com/lukemelas/EfficientNet-PyTorch). I refer much of the code from the above implementation, and construct a network with the efficientnet feature extract layers and a fc layer of 3 output node for my fire & smoke detection task.

1. Introduction

Fire and smoke classification and detection by training an efficientnet classifier,detections are implemented through classify crop patch of the input image.

2. Requirements

Python 3.7、PyTorch1.3...

3. Running demos

Download the pretrained model and simkai.ttf font from BaiduNetDisk: code: awnf

simple run:

python fire_smoke_demo.py

will get the classification results as follows:

avatar

or try the detection demo:

python fire_smoke_detection.py

will get results:

avatar

4. Visual the CNN

I visual the activation of some of the feature map as follows:

avatar

avatar

As we can see, the cnn can automatically learn the edge or shape or ROI of the predict targets,

some of the filters can recognize the fire, some can deal with other features.

5. Train Custom Dataset

here offer a scrip to train ur own classification model using EfficientNet:

python train.py --data [ur dataset path] --arch [efficientnet model:efficientnet-b0-7] --num_cls [ur task class num]  

Refer to the cold for args details.

For inference, u should change the label map txt for ur task.

In my task:

python train.py --data ./cropdata --arch efficientnet-b0 --num_cls 3 

avatar

Dataset

https://pan.baidu.com/s/1eRXtYVrn6baJ6PRMOTjyzQ code: srav

firesmokedetectionbyefficientnet's People

Contributors

midasklr avatar

Watchers

James Cloos 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.