Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.12 KB

README.md

File metadata and controls

35 lines (26 loc) · 1.12 KB

darknet-numpy: Make Darknet to support numpy array as input

To prevent us from maintaining a diverged repo, we make numpy support as independent plugin w/o touching Darknet's source codes.

Note

  1. The C code was wrote by TheMikeyR in this comment
  2. I will try to send merge request to upstream. If it is accepted, this repository will be retired.

How to Use

$ git clone https://github.com/pjreddie/darknet
$ git clone https://github.com/DT42/darknet-numpy
$ cd darknet-numpy
$ ./patch_darknet ../darknet
$ cd ../darknet
$ # Manual action: Prepare tiny-yolo model
$ # Manual action: Update Makefile configuration if needed
$ # Manual action: Install python3-numpy package if needed
$ make  # use -j <cpu-number> to speedup compilation
$ make -f Makefile.numpy
$ python3 darknet_npinput.py

How to Release with darknet-numpy

Additional library, libdarknet_numpy.so, will be created. You need to install it with libdarknet.so together.

Example

Please refer to darknet_npinput.py and darknet_npinput_rpi.py.