thtrieu / darkflow

Translate darknet to tensorflow. Load trained weights, retrain/fine-tune using tensorflow, export constant graph def to mobile devices
GNU General Public License v3.0
6.13k stars 2.08k forks source link

No module named 'darkflow.cython_utils.cy_yolo_findboxes' #914

Closed kocica closed 5 years ago

kocica commented 5 years ago

I've succesfully installed darkflow on the Windows 10 using the pip install . command. After this, I'm trying to run python flow --h, which gives me following error:

Traceback (most recent call last): File "flow", line 4, in from darkflow.cli import cliHandler File "C:\Users\filda\Desktop\FIT_VUT\BP\YOLO\YOLO_keras\darkflow\darkflow\cli.py", line 3, in from .net.build import TFNet File "C:\Users\filda\Desktop\FIT_VUT\BP\YOLO\YOLO_keras\darkflow\darkflow\net\build.py", line 7, in from .framework import create_framework File "C:\Users\filda\Desktop\FIT_VUT\BP\YOLO\YOLO_keras\darkflow\darkflow\net\framework.py", line 1, in from . import yolo File "C:\Users\filda\Desktop\FIT_VUT\BP\YOLO\YOLO_keras\darkflow\darkflow\net\yolo__init__.py", line 2, in from . import predict File "C:\Users\filda\Desktop\FIT_VUT\BP\YOLO\YOLO_keras\darkflow\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'

So i tried to build the Cython extensions using the python setup.py build_ext --inplace command, which gives me error:

c1: fatal error C1083: Cannot open source file: 'darkflow/cython_utils/nms.c': No such file or directory

May somebody tell me what am i doing wrong ?

kocica commented 5 years ago

For those who would face the same issue: https://stackoverflow.com/questions/52581584/darkflow-no-module-named-darkflow-cython-utils-cy-yolo-findboxes