the classification error with python interface

547 views
Skip to first unread message

文小森

unread,
Nov 18, 2015, 7:39:39 AM11/18/15
to Caffe Users
When I use the python interface for classificantion,
it display"classifier.py", line 26, in __init__
    caffe.Net.__init__(self, model_file, pretrained_file)
Boost.Python.ArgumentError: Python argument types in
    Net.__init__(Classifier, str, str)
did not match C++ signature:
    __init__(boost::python::api::object, std::string, std::string, int)
    __init__(boost::python::api::object, std::string, int)
",I can not fix it,someone who can help me,thank you very much!

Derek Rollend

unread,
Dec 2, 2015, 5:16:39 PM12/2/15
to Caffe Users
Which OS and version of boost are you using?  I just had this issue with Ubuntu 15.10 and boost 1.58 from the Ubuntu repositories.  Building/installing boost 1.59 from source, then rebuilding caffe and pycaffe appears to have fixed it for me.
Reply all
Reply to author
Forward
0 new messages