Code Monkey home page Code Monkey logo

tf2-eager-yolo3's Introduction

Build Status codecov

TF2 eager implementation of Yolo-v3

I have implemented yolo-v3 detector using tf2 eager execution.

Usage for python code

0. Requirement

  • python 3.6
  • tensorflow 2.0.0-beta1
  • 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. This process has been verified on Windows 10 and ubuntu 16.04.

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

1. Object detection using original yolo3-weights

  • Run object detection through the following command.

    • project/root> python pred.py -c configs/predict_coco.json -i imgs/dog.jpg
    • Running this script will download the original yolo3-weights file and display the object detection results for the input image.
  • You can see the following results:

2. Training from scratch

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

  • project/root> python train_eager.py -c configs/svhn.json

After training, you can evaluate the performance of the detector with the following command.

  • project/root> python eval.py -c configs/svhn.json
    • Running this script will evaluate the annotation dataset specified in train_annot_folder. The evaluation results are output in the following manner.
    • {'fscore': 1.0, 'precision': 1.0, 'recall': 1.0}

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

Other Results

  • Pretrained weight file is stored at raccoon
  • Evaluation (200-images)
    • fscore / precision / recall: 0.97, 0.96, 0.98

  • Pretrained weight file is stored at svhn
  • Evaluation (33402-images)
    • fscore / precision / recall: 0.90, 0.83, 0.97

  • Pretrained weight file is stored at udacity
  • Evaluation (9217-images)
    • fscore / precision / recall: 0.80, 0.76, 0.87

4. Kitti object detection dataset : http://www.cvlibs.net/datasets/kitti/eval_object.php

  • Pretrained weight file is stored at kitti
  • Evaluation (7481-images)
    • fscore / precision / recall: 0.93, 0.93, 0.94

Copyright

tf2-eager-yolo3's People

Contributors

penny4860 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.