Coder Social home page Coder Social logo

osvaldlaszlo / yolo2_light Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexeyab/yolo2_light

0.0 1.0 0.0 2.1 MB

Light version of convolutional neural network Yolo v3 & v2 for objects detection with a minimum of dependencies (INT8-inference, BIT1-XNOR-inference)

License: MIT License

Makefile 0.35% C 77.71% Shell 0.18% Python 0.71% Batchfile 0.23% C++ 9.56% Cuda 11.25%

yolo2_light's Introduction

yolo2_light

Light version of convolutional neural network Yolo v3 & v2 for objects detection with a minimum of dependencies (INT8-inference, BIT1-XNOR-inference)

This repository supports:

  • both Windows and Linux
  • both OpenCV <= 3.3.0 and OpenCV 2.4.13
  • both cuDNN >= 7.1.1
  • CUDA >= 8.0

How to compile:

  • To compile for CPU just do make on Linux or build yolo_cpu.sln on Windows

  • To compile for GPU set flag GPU=1 in the Makefile on Linux or build yolo_gpu.sln on Windows

    Required both CUDA >= 8.0 and cuDNN >= 7.1.1

How to start:

  • Download yolov3.weights to the bin directory and run ./yolo.sh on Linux (or yolo_cpu.cmd / yolo_gpu.cmd on Windows)
  • Download yolov3-tiny.cfg to the bin directory and run ./tiny-yolo.sh

How to use INT8-inference:

How to use BIT1-XNOR-inference - only for custom models (you should train it by yourself):

  • You should base your cfg-file on tiny-yolo-obj_xnor.cfg and train it by using this repository as usual https://github.com/AlexeyAB/darknet
  • Then use it for Detection-test or for getting Accuracy (mAP):
    • ./darknet detector test data/obj.names tiny-yolo-obj_xnor.cfg data/tiny-yolo-obj_xnor_5000.weights -thresh 0.15 dog.jpg
    • ./darknet detector map data/obj.data tiny-yolo-obj_xnor.cfg data/tiny-yolo-obj_xnor_5000.weights -thresh 0.15

Other models by the link: https://pjreddie.com/darknet/yolo/

yolo2_light's People

Contributors

alexeyab avatar misko avatar r0l1 avatar

Watchers

 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.