我的计算机上运行3D上下文增强型基于区域的卷积神经网络的代码存在一些问题

时间:2019-05-22 14:48:32

标签: python mxnet

在我的计算机上运行3D上下文增强型基于区域的卷积神经网络的代码存在一些问题。代码链接如下:https://github.com/rsummers11/CADLab/tree/master/lesion_detector_3DCE

结果在我的计算机上运行:

/usr/bin/python /Applications/PyCharm.app/Contents/helpers/pydev/pydevconsole.py 56863 56864
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['/Users/harrypotter/Desktop/nih-deeplesion-subset'])
PyDev console: starting.
Python 2.7.10 (default, Feb 22 2019, 21:55:15) 
[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] on darwin
runfile('/Users/harrypotter/Desktop/nih-deeplesion-subset/CADLab-master/lesion_detector_3DCE/rcnn/tools/train.py', wdir='/Users/harrypotter/Desktop/nih-deeplesion-subset/CADLab-master/lesion_detector_3DCE/rcnn/tools')
dyld: warning, LC_RPATH ${ORIGIN} in /Users/harrypotter/Library/Python/2.7/lib/python/site-packages/mxnet/libmxnet.so being ignored in restricted program because it is a relative path
/Users/harrypotter/.pyxbld/temp.macosx-10.14-intel-2.7/pyrex/rcnn/cython/bbox.c:593:10: fatal error: 'numpy/arrayobject.h' file not found
#include "numpy/arrayobject.h"
         ^~~~~~~~~~~~~~~~~~~~~
1 error generated.
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_umd.py", line 197, in runfile
    pydev_imports.execfile(filename, global_vars, local_vars)  # execute the script
  File "/Users/harrypotter/Desktop/nih-deeplesion-subset/CADLab-master/lesion_detector_3DCE/rcnn/tools/train.py", line 18, in <module>
    from rcnn.symbol import *
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 20, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/Users/harrypotter/Desktop/nih-deeplesion-subset/CADLab-master/lesion_detector_3DCE/rcnn/tools/../../rcnn/symbol/__init__.py", line 1, in <module>
    from symbol_vgg import *
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 20, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/Users/harrypotter/Desktop/nih-deeplesion-subset/CADLab-master/lesion_detector_3DCE/rcnn/tools/../../rcnn/symbol/symbol_vgg.py", line 2, in <module>
    import proposal
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 20, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/Users/harrypotter/Desktop/nih-deeplesion-subset/CADLab-master/lesion_detector_3DCE/rcnn/tools/../../rcnn/symbol/proposal.py", line 12, in <module>
    from rcnn.processing.bbox_transform import bbox_pred, clip_boxes
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 20, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/Users/harrypotter/Desktop/nih-deeplesion-subset/CADLab-master/lesion_detector_3DCE/rcnn/tools/../../rcnn/processing/bbox_transform.py", line 2, in <module>
    from ..cython.bbox import bbox_overlaps_cython
  File "/Applications/PyCharm.app/Contents/helpers/pydev/_pydev_bundle/pydev_import_hook.py", line 20, in do_import
    module = self._system_import(name, *args, **kwargs)
  File "/Users/harrypotter/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 462, in load_module
    language_level=self.language_level)
  File "/Users/harrypotter/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 233, in load_module
    exec("raise exc, None, tb", {'exc': exc, 'tb': tb})
  File "/Users/harrypotter/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 215, in load_module
    inplace=build_inplace, language_level=language_level)
  File "/Users/harrypotter/Library/Python/2.7/lib/python/site-packages/pyximport/pyximport.py", line 191, in build_module
    reload_support=pyxargs.reload_support)
  File "/Users/harrypotter/Library/Python/2.7/lib/python/site-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Users/harrypotter/Library/Python/2.7/lib/python/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.py", line 337, in run
    self.build_extensions()
  File "/Users/harrypotter/Library/Python/2.7/lib/python/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
    self.build_extension(ext)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.py", line 496, in build_extension
    depends=ext.depends)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/unixccompiler.py", line 125, in _compile
    raise CompileError, msg
ImportError: Building module rcnn.cython.bbox failed: ["CompileError: command 'cc' failed with exit status 1\n"]

0 个答案:

没有答案