All Projects → danielgatis → Darknetpy

danielgatis / Darknetpy

darknetpy is a simple binding for darknet's yolo detector

Projects that are alternatives of or similar to Darknetpy

Fire Detect Yolov4
fire-smoke-detection-dataset and fire-detection-yolov4-v5,火灾检测,烟雾检测
Stars: ✭ 280 (+409.09%)
Mutual labels:  jupyter-notebook, darknet
Yolo Powered robot vision
Stars: ✭ 133 (+141.82%)
Mutual labels:  jupyter-notebook, darknet
Tensorflow 2.x Yolov3
YOLOv3 implementation in TensorFlow 2.3.1
Stars: ✭ 300 (+445.45%)
Mutual labels:  jupyter-notebook, darknet
Yolov4 Cloud Tutorial
This repository walks you through how to Build and Run YOLOv4 Object Detections with Darknet in the Cloud with Google Colab.
Stars: ✭ 153 (+178.18%)
Mutual labels:  jupyter-notebook, darknet
Realtimefacedetection
基于YOLO-lite的web实时人脸检测,tfjs人脸检测,目标检测
Stars: ✭ 38 (-30.91%)
Mutual labels:  jupyter-notebook, darknet
Github Paper
Plos in Computational Biology paper related with github for researchers, code, source and document
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Ctr model zoo
some ctr model, implemented by PyTorch, such as Factorization Machines, Field-aware Factorization Machines, DeepFM, xDeepFM, Deep Interest Network
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook
Blog
Read and Write
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Very Deep Convolutional Networks For Natural Language Processing In Tensorflow
implement the paper" Very Deep Convolutional Networks for Natural Language Processing"(https://arxiv.org/abs/1606.01781 ) in tensorflow
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Reinforcement Learning
Implementation of Reinforcement Learning algorithms in Python, based on Sutton's & Barto's Book (Ed. 2)
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook
Ko en neural machine translation
Korean English NMT(Neural Machine Translation) with Gluon
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook
Mmdetection object detection demo
How to train an object detection model with mmdetection
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook
Whitehat
Information about my experiences on ethical hacking 💀
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Introduction To Machine Learning
Introductory Course on Machine Learning in Python
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook
Emotion Detector
A python code to detect emotions from text
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Sta 663 2018
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook
Modernai
Materials for Modern AI Course / Cloud Day 2.0
Stars: ✭ 54 (-1.82%)
Mutual labels:  jupyter-notebook
Da detection
Progressive Domain Adaptation for Object Detection
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook
Mri Analysis Pytorch
MRI analysis using PyTorch and MedicalTorch
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook
Graph Pointer Network
Stars: ✭ 55 (+0%)
Mutual labels:  jupyter-notebook

========= Darknetpy

|Downloads| |DownloadsMonth| |DownloadsWeek|

.. |Downloads| image:: https://pepy.tech/badge/darknetpy :target: https://pepy.tech/project/darknetpy

.. |DownloadsMonth| image:: https://pepy.tech/badge/darknetpy/month :target: https://pepy.tech/project/darknetpy/month

.. |DownloadsWeek| image:: https://pepy.tech/badge/darknetpy/week :target: https://pepy.tech/project/darknetpy/week

Darknetpy is a simple binding for darknet's yolo (v4) detector.

.. image:: https://raw.githubusercontent.com/danielgatis/darknetpy/master/example/example.png

Installation

Install it from pypi

::

curl https://sh.rustup.rs -sSf | sh

::

rustup default nightly

::

pip install darknetpy

Install a pre-built binary

::

pip install https://github.com/danielgatis/darknetpy/raw/master/dist/darknetpy-4.2-cp37-cp37m-linux_x86_64.whl

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.

::

OPENMP=1 pip install darknetpy

to build with OpenMP support to accelerate Yolo by using multi-core CPU.

Usage

In example.py::

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::

[{'right': 194, 'bottom': 353, 'top': 264, 'class': 'dog', 'prob': 0.8198755383491516, 'left': 71}]

Build

On the project root directory

::

docker run --rm -v `pwd`:/io quay.io/pypa/manylinux2010_x86_64 /io/build-wheels.sh

Buy me a coffee

Liked some of my work? Buy me a coffee (or more likely a beer)

|BuyMeACoffee|

.. |BuyMeACoffee| image:: https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png :target: https://www.buymeacoffee.com/danielgatis

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].