caffe.TEST报错Boost.Python.ArgumentError: Python argument types in Net.__init__(Net, str, str, int)

报错如下:

Traceback (most recent call last):
  File "get_accuracy_background.py", line 48, in
    caffe.TEST)     # use test mode (e.g., don't perform dropout)
Boost.Python.ArgumentError: Python argument types in
    Net.__init__(Net, str, str, int)
did not match C++ signature:
    __init__(boost::python::api::object, std::string, std::string, int)
    __init__(boost::python::api::object, std::string network_file, int phase, int level=0, boost::python::api::object stages=None, boost::python::api::object weights=None)

解决办法:

参考链接:https://github.com/BVLC/caffe/issues/3220

caffe.TEST报错Boost.Python.ArgumentError: Python argument types in Net.__init__(Net, str, str, int)_第1张图片

修改完以后记得重新make一下

你可能感兴趣的:(caffe)