darknetpy - PyPI
pypi.org › project › darknetpyOct 20, 2020 · from darknetpy.detector import Detector detector = Detector ('<absolute-path-to>/darknet/cfg/coco.data', '<absolute-path-to>/darknet/cfg/yolo.cfg', '<absolute-path-to>/darknet/yolo.weights') results = detector.detect ('<absolute-path-to>/darknet/data/dog.jpg') print (results) Runing: python example.py. Result:
darknetpy · PyPI
https://pypi.org/project/darknetpy20.10.2020 · Advanced options (only for pypi installation) GPU=1 pip install darknetpy. to build with CUDA to accelerate by using GPU (CUDA should be in /use/local/cuda). CUDNN=1 pip install darknetpy. to build with cuDNN to accelerate training by using GPU (cuDNN should be in /usr/local/cudnn). OPENCV=1 pip install darknetpy. to build with OpenCV.