Git Product home page Git Product logo

keras-yolo's Introduction

keras-yolo

Keras implementation of YOLO - real-time object detection system.

Current progress and usage

For now this package's functionality implementation is in progress.

Current plan:

  • add weights loading from darknet config (in progress)
  • [?] add script to compare run results vs darknet (currently I compare results with darknet manually).

Weights loading is more complex than it looks: there are several differences between keras and darknet, which should be carefully examined. For example, darknet allows batch normalization to be incorporated to layer, keras layers have no such an option and provides distinct BatchNormalization class instead.

To check currently implemented, run

python scripts/rebuild_and_load_weights.py

from the main project directory. This scripts expects to tiny-yolo.weights to be located at data folder, it also uses corresponding network config to create it and to load weights. But before that it builds necessary cython library with distutils.

If you run

python scripts/rebuild_and_load_weights.py ../darknet/dog.jpg

it tries to load image from given path and to predict its class (this is in progress).

As a result of this command, file predicted.jpg will be generated and it will look similar to this:

Generated image with detections

There still remains a pythonish problem with precision - that's why detection borders at resulting image slightly differ from what you see when you run darknet.

Requirements

  • keras
  • distutils
  • cython

For development I use python 2, but this implementation is planned to be run with both python 2 & 3.

keras-yolo's People

Contributors

ivandrokin avatar latticetower 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

keras-yolo's Issues

Load .weights

Thank you for your wonderful work. I believe it would be helpful if you could add the a function for loading their official .weights files.

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.