版权声明:如需转载请注明出处,谢谢 https://blog.csdn.net/qinglv1/article/details/84976819
报错如下:
Traceback (most recent call last):
File "get_accuracy_background.py", line 48, in <module>
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
修改完以后记得重新make一下