Darkflow is a Python 3 tool that makes the Darknet open source neural networks available in Python using Tensorflow.
Here's how I got it working on my laptop:
cd /tmp
git clone https://github.com/thtrieu/darkflow
cd darkflow
virtualenv --python=python3 .venv
source .venv/bin/activate
pip install Cython
pip install numpy
pip install tensorflow
pip install opencv-python
pip install .
python setup.py build_ext --inplace
flow --help
mkdir bin
# Downloaded yolo.weights from http://pjreddie.com/darknet/yolo/
cd bin
wget https://pjreddie.com/media/files/yolo.weights
cd ..
flow --imgdir sample_img/ --model cfg/yolo.cfg --load bin/yolo.weights
open sample_img/out/
mkdir my_photos
# Copied some of my photos to my_photos
flow --imgdir my_photos/ --model cfg/yolo.cfg --load bin/yolo.weights
open my_photos/out/
Hello guys, I'm try with windows and I'm facing some errors, Could you please have a look. Thanks
Traceback (most recent call last):
File "C:/Python/YOLO_Object_Detection-master/YOLO_Object_Detection-master/test/test_darkflow.py", line 1, in
from darkflow.net.build import TFNet
File "C:\Python\YOLO_Object_Detection-master\darkflow\net\build.py", line 7, in
from .framework import create_framework
File "C:\Python\YOLO_Object_Detection-master\darkflow\net\framework.py", line 1, in
from . import yolo
File "C:\Python\YOLO_Object_Detection-master\darkflow\net\yolo_init_.py", line 2, in
from . import predict
File "C:\Python\YOLO_Object_Detection-master\darkflow\net\yolo\predict.py", line 7, in
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
ModuleNotFoundError: No module named 'darkflow.cython_utils.cy_yolo_findboxes'