我正在https://github.com/llSourcell/YOLO_Object_Detection上试用YOLO教程
执行此步骤时:
flow --h
我收到此错误:
File "/anaconda2/bin/flow", line 4, in <module>
from darkflow.cli import cliHandler
ImportError: No module named darkflow.cli
我试图在各处找到解决方案,但是没有运气。然后我尝试跳过该行并继续...
flow --model cfg/yolo-new.cfg --load bin/yolo-tiny.weights --train --gpu 1.0
我收到此错误:
Traceback (most recent call last):
File "flow", line 4, in <module>
from darkflow.cli import cliHandler
File "./YOLO_Object_Detection/darkflow/cli.py", line 3, in <module>
from .net.build import TFNet
File "./YOLO_Object_Detection/darkflow/net/build.py", line 7, in <module>
from .framework import create_framework
File "./YOLO_Object_Detection/darkflow/net/framework.py", line 1, in <module>
from . import yolo
File "./YOLO_Object_Detection/darkflow/net/yolo/__init__.py", line 2, in <module>
from . import predict
File "./YOLO_Object_Detection/darkflow/net/yolo/predict.py", line 7, in <module>
from ...cython_utils.cy_yolo_findboxes import yolo_box_constructor
File "darkflow/cython_utils/cy_yolo_findboxes.pyx", line 1, in init darkflow.cython_utils.cy_yolo_findboxes
import numpy as np
ModuleNotFoundError: No module named 'nms'
任何帮助表示赞赏。谢谢
答案 0 :(得分:0)
在问题跟踪器上讨论了这两个问题。
* ImportError:没有名为darkflow.cli的模块
https://github.com/llSourcell/YOLO_Object_Detection/issues/3
您必须构建cython模块:
cd ./cython_utils
python3 setup.py build_ext --inplace
cd ..
ModuleNotFoundError:没有名为“ nms”的模块
https://github.com/llSourcell/YOLO_Object_Detection/issues/7
有关使用conda
进行安装的信息,请参见https://keponk.wordpress.com/2017/12/07/siraj-darkflow/。