humphd / have-fun-with-machine-learning

An absolute beginner's guide to Machine Learning and Image Classification with Neural Networks
Other
5.07k stars 541 forks source link

classify-samples.py run failed #21

Open alexhegit opened 5 years ago

alexhegit commented 5 years ago

root@8f88fbfbe029:/data/repo/test# python classify-samples.py -c /root/caffe/ -m epoch_30/ -d untrained-samples/ Traceback (most recent call last): File "classify-samples.py", line 113, in main() File "classify-samples.py", line 95, in main classifier = ImageClassifier(model_dir) File "classify-samples.py", line 13, in init self.net = caffe.Net(deploy_file, caffe.TEST, weights=weights_file) Boost.Python.ArgumentError: Python argument types in Net.init(Net, str, int) did not match C++ signature: init(boost::python::api::object, std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >, int)