我使用的是昇腾EA200I-DK AI开发套件,Ascend310B4,Ascend-cann-toolkit_8.0.RC1.alpha003_linux-aarch64;python3.10,使用ptocrv5-server和mobile模型,执行/opt/PaddleOCR-NPU# python quick_ocr.py --image_dir doc/imgs/1.jpg报错了,错误信息如下:
🔥 Quick OCR - 简化的OCR命令行工具
🚀 初始化OCR实例...
使用华为NPU设备: npu:0
Warning: since the loaded file is not a zipfile, only "torch.device" and "str" type parameters are currently supported for parameter types of map_locationIf parameter types of map_location is "Callable[[torch.Tensor, str], torch.Tensor]" or "Dict[str, str]", which is only support for zipfile,all tensors are currently loaded onto the CPU, which may introduce problems
model is loaded: ./models/ptocr_v5_mobile_det.pth
[W compiler_depend.ts:387] Warning: EH9999: Inner Error!
EH9999 [Init][Env]init env failed![FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145]
TraceBack (most recent call last):
build op model failed, result = 500001[FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145]
(function ExecFunc)
PytorchPaddleOCR 初始化失败: The Inner error is reported as above. The process exits for this inner error, and the current working operator name is Identity.
Since the operator is called asynchronously, the stacktrace may be inaccurate. If you want to get the accurate stacktrace, pleace set the environment variable ASCEND_LAUNCH_BLOCKING=1.
[ERROR] 2025-08-11-12:48:09 (PID:171124, Device:0, RankID:-1) ERR00100 PTA call acl api failed
❌ OCR实例初始化失败: The Inner error is reported as above. The process exits for this inner error, and the current working operator name is Identity.
Since the operator is called asynchronously, the stacktrace may be inaccurate. If you want to get the accurate stacktrace, pleace set the environment variable ASCEND_LAUNCH_BLOCKING=1.
[ERROR] 2025-08-11-12:48:09 (PID:171124, Device:0, RankID:-1) ERR00100 PTA call acl api failed
请问paddleocr-npu使用的昇腾环境是哪个呢?
我使用的是昇腾EA200I-DK AI开发套件,Ascend310B4,Ascend-cann-toolkit_8.0.RC1.alpha003_linux-aarch64;python3.10,使用ptocrv5-server和mobile模型,执行/opt/PaddleOCR-NPU# python quick_ocr.py --image_dir doc/imgs/1.jpg报错了,错误信息如下:
🔥 Quick OCR - 简化的OCR命令行工具
🚀 初始化OCR实例...
使用华为NPU设备: npu:0
Warning: since the loaded file is not a zipfile, only "torch.device" and "str" type parameters are currently supported for parameter types of map_locationIf parameter types of map_location is "Callable[[torch.Tensor, str], torch.Tensor]" or "Dict[str, str]", which is only support for zipfile,all tensors are currently loaded onto the CPU, which may introduce problems
model is loaded: ./models/ptocr_v5_mobile_det.pth
[W compiler_depend.ts:387] Warning: EH9999: Inner Error!
EH9999 [Init][Env]init env failed![FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145]
TraceBack (most recent call last):
build op model failed, result = 500001[FUNC:ReportInnerError][FILE:log_inner.cpp][LINE:145]
(function ExecFunc)
PytorchPaddleOCR 初始化失败: The Inner error is reported as above. The process exits for this inner error, and the current working operator name is Identity.
Since the operator is called asynchronously, the stacktrace may be inaccurate. If you want to get the accurate stacktrace, pleace set the environment variable ASCEND_LAUNCH_BLOCKING=1.
[ERROR] 2025-08-11-12:48:09 (PID:171124, Device:0, RankID:-1) ERR00100 PTA call acl api failed
❌ OCR实例初始化失败: The Inner error is reported as above. The process exits for this inner error, and the current working operator name is Identity.
Since the operator is called asynchronously, the stacktrace may be inaccurate. If you want to get the accurate stacktrace, pleace set the environment variable ASCEND_LAUNCH_BLOCKING=1.
[ERROR] 2025-08-11-12:48:09 (PID:171124, Device:0, RankID:-1) ERR00100 PTA call acl api failed
请问paddleocr-npu使用的昇腾环境是哪个呢?