-
Notifications
You must be signed in to change notification settings - Fork 477
windows下 c++部署fastdeploy后,测试facelandmark1000,结果完全不对 #2611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
这是什么问题,代码编译没问题,模型官网下载的,用法也是仿照示例写的,怎么检测结果是这个呢 |
@juncaipeng 这个问题我解决了,windows x64是正常了,我现在想再高通的arm64平台上使用facelandmark,然后编译facedeploy的arm64版本,编译1000多个错误,我看文档好像是不支持,确定是不支持么?编译命令如下: cmake .. -G "Visual Studio 16 2019" -A arm64 msbuild fastdeploy.sln /m /p:Configuration=Debug /p:Platform=arm64 粘贴一小部分错误: |
arm64架构不支持PADDLE_BACKEND, 要用PaddleLite |
你的脸咋这么大 |
温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度
环境
cd FastDeploy
mkdir build && cd build
cmake .. -G "Visual Studio 16 2019" -A x64
-DENABLE_ORT_BACKEND=ON
-DENABLE_PADDLE_BACKEND=ON
-DENABLE_OPENVINO_BACKEND=ON
-DENABLE_VISION=ON
-DCMAKE_INSTALL_PREFIX="D:\code\LSM\DemoCOM\compiled_fastdeploy"
msbuild fastdeploy.sln /m /p:Configuration=Debug /p:Platform=x64
msbuild INSTALL.vcxproj /m /p:Configuration=Debug /p:Platform=x64
问题日志及出现问题的操作流程
void CFaceLandmark::testCam() {
cv::VideoCapture cap(0);
if (!cap.isOpened()) {
std::cerr << "can not open camera." << std::endl;
return;
}
cv::Mat frame;
auto option = fastdeploy::RuntimeOption();
if (!CreateRuntimeOption(&option)) {
return;
}
std::string modelFile = "D:\code\xxx\testPro\x64\Release\model\FaceLandmark.onnx";
auto model = fastdeploy::vision::facealign::FaceLandmark1000(modelFile, "", option);
if (!model.Initialized()) {
std::cerr << "Failed to initialize." << std::endl;
return;
}
while (1) {
cap >> frame;
if (frame.empty()) {
std::cerr << "can not read video." << std::endl;
return;
}
}
}
测试结果:
The text was updated successfully, but these errors were encountered: