Giter Club home page Giter Club logo

smoke-semantic-segmentation's Introduction

Smoke detection via semantic segmentation using Baseline U-Net model and image augmentation in Keras

This repo is a partial implementation from Kaggle

The main purpose of this use-case is to detect smoke in any background. The smoke can also have variations regarding its source, color, environment etc. We should be able to semantically segment smoke to analyze it's various features like color, intensity, duration of ejection of smoke (from video feed), etc.

The master branch has implementation of U-Net, however another implemetation using LinkNet is provided in different branch.


U-Net

The U-Net is a convolutional neural network that was developed for biomedical image segmentation at the Computer Science Department of the University of Freiburg, Germany. The network is based on the fully convolutional network and its architecture was modified and extended to work with fewer training images and to yield more precise segmentations.

Architecture

U-Net architecture Image source: Computer Science Department of the University of Freiburg, Germany


In Kaggle Airbus ship detection challenge, Kevin Mader has used this model starting with filter size 8, for detection of ships from 768x768 image. However I have used it on 'smoke images' obtained from Google search and resized them to 256x256.


Images and corresponding annotations

Images


Augmented images and corresponding annotations

Augmentations


Results

Results


Scope of improvements

  • The dataset has around 400 images, adding more images to dataset can improve the accuracy
  • Proper annotation of smoke also affects the prediction of the model, maybe the annotations done in the dataset can be improved and it will surely improve accuracy
  • Impelementation of the original U-Net model can also improve accuracy

smoke-semantic-segmentation's People

Contributors

rekon avatar shawnz42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

smoke-semantic-segmentation's Issues

Are there Pre trained Weights Availabe?

I was wondering if the correct pre trained weights could be obtained from somewhere, because the weights provided with the repo are not correspondent to the U-Net model, neither Link-Net.

"Inaccurate" predictions

Hi,

I've tried to train the net (notebook) with provided examples / preferences, so as it is.
I do not get nearly the same accuracy than provided in your example image. Did you train the network for those example figures with other model / training-parameters?
Same linknet <-> unet (unet provides at least some bounding box around smoke, linket basically classifies complete image to be smoke)

The accuracy you provide with the example images would be highly sufficient. Computing resources would be available.

cheers
David

weights

i use your seg_model_weights.best.hdf5 in unet
but it show
"You are trying to load a weight file containing 20 layers into a model with 24 layers."
why?

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.