Skip to content

DT42/darknet-numpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Make Darknet to support numpy array as input

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published