ModuleNotFoundError: No module named darkflow.cli and 'nms'
ModuleNotFoundError: No module named darkflow.cli and 'nms'
我正在 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'
感谢任何帮助。谢谢
问题跟踪器中讨论了这两个问题。
*ImportError: No module named darkflow.cli
https://github.com/llSourcell/YOLO_Object_Detection/issues/3
您必须构建 cython 模块:
cd ./cython_utils
python3 setup.py build_ext --inplace
cd ..
ModuleNotFoundError: No module named 'nms'
https://github.com/llSourcell/YOLO_Object_Detection/issues/7
有关使用 conda
的安装,请参见 https://keponk.wordpress.com/2017/12/07/siraj-darkflow/。
我正在 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'
感谢任何帮助。谢谢
问题跟踪器中讨论了这两个问题。
*ImportError: No module named darkflow.cli
https://github.com/llSourcell/YOLO_Object_Detection/issues/3
您必须构建 cython 模块:
cd ./cython_utils
python3 setup.py build_ext --inplace
cd ..
ModuleNotFoundError: No module named 'nms'
https://github.com/llSourcell/YOLO_Object_Detection/issues/7
有关使用 conda
的安装,请参见 https://keponk.wordpress.com/2017/12/07/siraj-darkflow/。