Paddle-Lite icon indicating copy to clipboard operation
Paddle-Lite copied to clipboard

如何在不支持neon的平台上运行口罩检测demo?

Open cgoxopx opened this issue 2 years ago • 3 comments

main.cpp: 在函数‘void neon_mean_scale(const float*, float*, int, std::vector, std::vector)’中: main.cpp:45:5: 错误:‘float32x4_t’ was not declared in this scope; did you mean ‘float_t’? 45 | float32x4_t vmean0 = vdupq_n_f32(mean[0]); | ^~~~~~~~~~~ | float_t main.cpp:46:16: 错误:expected ‘;’ before ‘vmean1’ 46 | float32x4_t vmean1 = vdupq_n_f32(mean[1]); | ^~~~~~~ | ; main.cpp:47:16: 错误:expected ‘;’ before ‘vmean2’ 47 | float32x4_t vmean2 = vdupq_n_f32(mean[2]); | ^~~~~~~ | ; main.cpp:48:16: 错误:expected ‘;’ before ‘vscale0’ 48 | float32x4_t vscale0 = vdupq_n_f32(scale[0]); | ^~~~~~~~ | ; main.cpp:49:16: 错误:expected ‘;’ before ‘vscale1’ 49 | float32x4_t vscale1 = vdupq_n_f32(scale[1]); | ^~~~~~~~ | ; main.cpp:50:16: 错误:expected ‘;’ before ‘vscale2’ 50 | float32x4_t vscale2 = vdupq_n_f32(scale[2]); | ^~~~~~~~ | ; main.cpp:58:9: 错误:‘float32x4x3_t’在此作用域中尚未声明 58 | float32x4x3_t vin3 = vld3q_f32(din); | ^~~~~~~~~~~~~ main.cpp:59:20: 错误:expected ‘;’ before ‘vsub0’ 59 | float32x4_t vsub0 = vsubq_f32(vin3.val[0], vmean0); | ^~~~~~ | ; main.cpp:60:20: 错误:expected ‘;’ before ‘vsub1’ 60 | float32x4_t vsub1 = vsubq_f32(vin3.val[1], vmean1); | ^~~~~~ | ; main.cpp:61:20: 错误:expected ‘;’ before ‘vsub2’ 61 | float32x4_t vsub2 = vsubq_f32(vin3.val[2], vmean2); | ^~~~~~ | ; main.cpp:62:20: 错误:expected ‘;’ before ‘vs0’ 62 | float32x4_t vs0 = vmulq_f32(vsub0, vscale0); | ^~~~ | ; main.cpp:63:20: 错误:expected ‘;’ before ‘vs1’ 63 | float32x4_t vs1 = vmulq_f32(vsub1, vscale1); | ^~~~ | ; main.cpp:64:20: 错误:expected ‘;’ before ‘vs2’ 64 | float32x4_t vs2 = vmulq_f32(vsub2, vscale2); | ^~~~ | ; main.cpp:65:28: 错误:‘vs0’在此作用域中尚未声明 65 | vst1q_f32(dout_c0, vs0); | ^~~ main.cpp:65:9: 错误:‘vst1q_f32’在此作用域中尚未声明 65 | vst1q_f32(dout_c0, vs0); | ^~~~~~~~~ main.cpp:66:28: 错误:‘vs1’在此作用域中尚未声明 66 | vst1q_f32(dout_c1, vs1); | ^~~ main.cpp:67:28: 错误:‘vs2’在此作用域中尚未声明 67 | vst1q_f32(dout_c2, vs2); | ^~~ make: *** [Makefile:2:main] 错误 1

cgoxopx avatar Jun 30 '22 05:06 cgoxopx

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网文档常见问题历史Issue来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQ and Github Issue to get the answer.Have a nice day!

paddle-bot-old[bot] avatar Jun 30 '22 05:06 paddle-bot-old[bot]

注释掉使用neon进行图像预处理的代码,改用原生C++实现的图片预处理代码。

shentanyue avatar Jun 30 '22 06:06 shentanyue

注释掉使用neon进行图像预处理的代码,改用原生C++实现的图片预处理代码。

原生C++实现的图片预处理如何实现?

tomfent avatar Sep 03 '22 03:09 tomfent