FastDeploy
FastDeploy copied to clipboard
Ascend执行OCR推理失败,报环境不支持。
温馨提示:根据社区不完全统计,按照模板提问,可以加快回复和解决问题的速度
环境
- 【FastDeploy版本】: fastdeploy master
- 【编译命令】容器镜像编译FastDeploy 使用5.0rc2和7.0rc1均测试过都不行
- 【系统平台】: Linux aarch64(Ubuntu 18.04)
- 【硬件】: Atlas 300i Pro
- 【Cann-Toolkit】: 7.0.rc1.beta1
- 【编译语言】: C++
问题日志及出现问题的操作流程
- 附上详细的问题日志有助于快速定位分析
- 【模型跑不通】
-
- 先执行
examples
下的部署示例vision/ocr/PP-OCR/infer_demo
- 先执行
- 【报错如下】 `[INFO] fastdeploy/runtime/runtime.cc(354)::CreateLiteBackend Runtime initialized with Backend::PDLITE in Device::ASCEND. [W 1/ 2 7:47:58.861 .../src/driver/huawei_ascend_npu/utility.cc:57 InitializeAscendCL] CANN version mismatch. The build version is 0.0.0, but the current environment version is 5.1.2. [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:41 Context] properties: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:66 Context] selected device ids: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:68 Context] 0 [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:78 Context] profiling path: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:88 Context] dump model path: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:98 Context] precision mode: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:120 Context] op select impl mode: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:130 Context] op type list for impl mode: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:140 Context] enable compressw weight: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:150 Context] auto tune mode: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:160 Context] enable dynamic shape range: [I 1/ 2 7:47:59.223 ...r/src/driver/huawei_ascend_npu/engine.cc:176 Context] initial buffer length of dynamic shape range: -1 [W 1/ 2 7:47:59.223 ...ter/nnadapter/src/runtime/compilation.cc:334 Finish] Warning: Failed to create a program, No model and cache is provided. [W 1/ 2 7:47:59.223 ...le-Lite/lite/kernels/nnadapter/engine.cc:149 LoadFromCache] Warning: Build model failed(3) ! [W 1/ 2 7:47:59.234 ...nnadapter/nnadapter/src/runtime/model.cc:86 GetSupportedOperations] Warning: Failed to get the supported operations for device 'huawei_ascend_npu', because the HAL interface 'validate_program' is not implemented! [W 1/ 2 7:47:59.234 ...kernels/nnadapter/converter/converter.cc:171 Apply] Warning: Failed to get the supported operations for the selected devices, one or more of the selected devices are not supported! [I 1/ 2 7:47:59.234 ...r/src/driver/huawei_ascend_npu/driver.cc:70 CreateProgram] Create program for huawei_ascend_npu. [F 1/ 2 7:48:22.824 ...driver/huawei_ascend_npu/model_client.cc:54 InitAclClientEnv] Check failed: (reinterpret_cast<aclError>(aclrtSetDevice(device_id_)) == ACL_ERROR_NONE): 507033!==0 507033 Unknown ACL error code(507033) terminate called after throwing an instance of 'nnadapter::logging::Exception' what(): NNAdapter C++ Exception: [F 1/ 2 7:48:22.824 ...driver/huawei_ascend_npu/model_client.cc:54 InitAclClientEnv] Check failed: (reinterpret_cast<aclError>(aclrtSetDevice(device_id_)) == ACL_ERROR_NONE): 507033!==0 507033 Unknown ACL error code(507033)
Aborted (core dumped) `
已收到您的问题反馈
遇到了同样的问题,请问怎么解决?