Coder Social home page Coder Social logo

samson6460 / yolo-digit-detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aiwintermuteai/yolo-digit-detector

0.0 1.0 0.0 239.05 MB

A github repository for my article about using YOLO network for object detection with Kendryte K210 chip

Home Page: https://www.instructables.com/id/Object-Detection-With-Sipeed-MaiX-BoardsKendryte-K/

License: MIT License

Python 100.00%

yolo-digit-detector's Introduction

Forked from SVHN yolo-v2 digit detector

This repository is depreciated now. For new version with more features, please go to https://github.com/AIWintermuteAI/aXeleRate

Raccoon

Usage for python code

0. Requirement

  • python 3.6
  • tensorflow 1.14.0
  • keras 2.2.4
  • opencv 3.3.0
  • Etc.

I recommend that you create and use an anaconda env that is independent of your project. You can create anaconda env for this project by following these simple steps. It is recomended that you use Ubuntu (16.04 or 18.04) for this project - you can train the model on Windows, but for conversion step you will need a Linux computer.

$ conda create -n yolo python=3.6
$ activate yolo # in linux "source activate yolo"
(yolo) $ pip install -r requirements.txt
(yolo) $ pip install -e .

1. Training from scratch

This project provides a way to train digit detector from scratch. If you follow the command below, you can build a digit detector with just two images.

  • First, train all layers through the following command(change from_scratch.json to the name of your config file. Use MobileNet as feature extractor).
    • project/root> python train.py -c configs/from_scratch.json
  • Then, evaluate trained digit detector(change the -w argument with the location of your weights)
    • project/root> python evaluate.py -c configs/from_scratch.json -w svhn/weights.h5
    • The prediction result images are saved in the project/detected directory.

Now you can add more images to train a detector with good generalization performance.

3. SVHN dataset in Pascal Voc annotation format

In this project, pascal voc format is used as annotation information to train object detector. An annotation file of this format can be downloaded from svhn-voc-annotation-format.

Raccoon

Copyright

  • See LICENSE for details.
  • This project started at basic-yolo-keras. penny4860 refactored the source code structure of basic-yolo-keras and added the CI test. penny4860 also applied the SVHN dataset to implement the digit detector. Thanks to the Huynh Ngoc Anh for providing a good project as open source.

See Also

If you are interested in other projects with Kendryte K210 chip, please refer to the following projects.

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.