Git Product home page Git Product logo

tensorflow_vgg_classify's Introduction

tensorflow_vgg19_classify

This repository aims to implement a VGG19 with tensorflow . it gives a pretrain weight (vgg19.npy), you can download from here.The training file contains 668 images(223 fire images and 445 non-fire images). The testing files only have 50 fire images and 50 non-fire images.Such few images impacted the precision and recall,which have lower results.We sincerely suggest you to download more images to train. We built this VGG19 with Tensorflow and Keras in Windows , it's very convenient for most of you to train the net.

Requirements

  • Python 3.5
  • TensorFlow 1.0
  • Numpy
  • fire and non-fire images here

Modifications

  • image_generator: We abandoned the image iterator used in previous Alexnet, and created a new gennerator with tensorflow queue.
  • In this VGG19 Net, we used precision, recall and f1 to measure the performance of the net, those parameters are always used in Statistics.

Notes:

  • The vgg19 net and datagenerator files have been builded, you don't have to modify it. But if you have more concise or effective codes, please do share them with us.
  • finetune.py is aimed to tune the weights and bias in the full connected layer, you must define some varibles,functions,and class numbers according to your own classification projects.

Results:

  • precision = 60%
  • recall = 95%
  • f1 = 72%

Example output:

We choosed some pictures from the internet to validate the VGG19 Net, the sunset images or warm lights images are difficult to identify, and some non-fire images misidentified. See the results below:

2017-11-23-09-50-55

2017-11-23-09-51-45

2017-11-23-09-52-29

2017-11-23-09-54-41

2017-11-23-09-56-39

2017-11-23-09-58-28

2017-11-23-09-59-03

2017-11-23-10-02-12

tensorflow_vgg_classify's People

Contributors

vickyyoumay avatar stephen-v 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.