xiaoqiang0008 / YOLOV2-predict-use-tensorflow

加载tensorflow的pb模型,实现目标检测功能

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

已被解决,请删除此issue,谢谢

rkmy opened this issue · comments

commented

(tensorflow) D:\学习\python\2019年联合毕业设计-无物理防护\电脑端检测>python setup.py build_ext --inplace
Compiling lib/nms.pyx because it depends on E:\anaconda\envs\tensorflow\lib\site-packages\Cython\Includes\numpy_init_.pxd.
Compiling lib/cy_yolo2_findboxes.pyx because it changed.
Compiling lib/cy_yolo_findboxes.pyx because it depends on E:\anaconda\envs\tensorflow\lib\site-packages\Cython\Includes\numpy_init_.pxd.
[1/3] Cythonizing lib/cy_yolo2_findboxes.pyx
E:\anaconda\envs\tensorflow\lib\site-packages\Cython\Compiler\Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: D:\学习\python\2019年联合毕业设计-无物理 防护\电脑端检测\lib\cy_yolo2_findboxes.pyx
tree = Parsing.p_module(s, pxd, full_module_name)

Error compiling Cython file:

...
cimport numpy as np
cimport cython
ctypedef np.float_t DTYPE_t
from libc.math cimport exp
#from ..utils.box import BoundBox
from lib.nms cimport NMS
^

lib\cy_yolo2_findboxes.pyx:10:0: 'lib\nms.pxd' not found

Error compiling Cython file:

...
cimport numpy as np
cimport cython
ctypedef np.float_t DTYPE_t
from libc.math cimport exp
#from ..utils.box import BoundBox
from lib.nms cimport NMS
^

lib\cy_yolo2_findboxes.pyx:10:0: 'lib\nms\NMS.pxd' not found

Error compiling Cython file:

...
if(tempc > threshold):
probs[row, col, box_loop, class_loop] = tempc

#NMS
return NMS(np.ascontiguousarray(probs).reshape(H*W*B,C), np.ascontiguousarray(Bbox_pred).reshape(H*B*W,5))
      ^

lib\cy_yolo2_findboxes.pyx:100:11: 'NMS' is not a constant, variable or function identifier
Traceback (most recent call last):
File "setup.py", line 69, in
ext_modules = cythonize(ext_modules)
File "E:\anaconda\envs\tensorflow\lib\site-packages\Cython\Build\Dependencies.py", line 1097, in cythonize
cythonize_one(*args)
File "E:\anaconda\envs\tensorflow\lib\site-packages\Cython\Build\Dependencies.py", line 1220, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: lib/cy_yolo2_findboxes.pyx