ANU*_*NGH 1 c++ face-detection training-data dlib
我试图通过在代码中描述的helen 数据集上执行train_dlib_shape_predictor_ex.cpp来训练Dlib的形状预测器,我将测试图像放在形状预测器的当前目录中的面部文件夹中.但是,当我运行代码时,它抛出以下异常:
C:\train_shape_predictor_ex\Release>train_shape_predictor_ex test
exception thrown!
ERROR: unable to open test/training_with_face_landmarks.xml for reading.
Run Code Online (Sandbox Code Playgroud)
as no training_with_face_landmarks.xml和testing_with_face_landmarks.xmlhelen数据集中的文件可用于以下页面:link
有一个名为annotation的文件夹,其中包含一个文本文件,其中包含数据集中每个图像的194个地标点位置.如何将此文件转换为training_with_face_landmarks.xml.
我为总共2000张图像的海伦训练图像(第1,2,3和4部分)创建了training_with_face_landmarks.xml.
下载链接:https://www.dropbox.com/s/jk98moqm8vopp5b/training_with_face_landmarks_2000.zip?dl = 0
脚步:
在项目train_shape_predictor_ex.cpp中,注释掉这些部分/行
一个.参考testing_with_face_landmarks.xml及其用法b.培训师set_oversampling_amount(100)c.培训师set_nu(0.05)d.培训师set_tree_depth(3)
请享用 :)
关心Gopi.Ĵ