私は、コードを使用して、CNNの顔検出器を作成するために、DLIB(v19.6)のPython APIを使用しようとしている:DLIB cnn_face_detection_model_v1 Pythonのエラー
cnn_face_detector = dlib.cnn_face_detection_model_v1('mmod_human_face_detector.dat')
次のようにしかし、私はArgumentError
を得る:
---------------------------------------------------------------------------
ArgumentError Traceback (most recent call last)
<ipython-input-16-c2ca0a6e8dff> in <module>()
----> 1 cnn_face_detector = dlib.cnn_face_detection_model_v1('mmod_human_face_detector.dat')
ArgumentError: Python argument types in
cnn_face_detection_model_v1.__init__(cnn_face_detection_model_v1, str)
did not match C++ signature:
__init__(_object*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)
何が間違っている可能性がありますか?モデルファイルのファイル名を単に文字列として渡すことはできませんか?
私はインストールのために 'python setup.py install --yes USE_AVX_INSTRUCTIONS'を使用しました。私はPythonインタプリタが同じdlibバージョンを使用していることを確認しました。クリーンインストールをやり直してみます。 – chronosynclastic