ATC 模型转换失败咋回事呢,错误信息为:EC0010
收藏回复举报
ATC 模型转换失败咋回事呢,错误信息为:EC0010
t('forum.solved') 已解决
发表于2023-09-22 21:45:05
0 查看

我想要把 yolov5 的 .onnx 模型转换成 .om 离线模型,但报错了


执行 ATC 命令:

atc --model=./weights/best_sim.onnx --framework=5 --output=./weights --soc_version=Ascend310B4

报错信息:

EC0010: Failed to import Python module [ModuleNotFoundError: No module named 'tbe'.].
        Solution: Check that all required components are properly installed and the specified Python path matches the Python installation directory. (If the path does not match the directory, run set_env.sh in the installation package.)
        TraceBack (most recent call last):
        [GraphOpt][InitializeInner][InitTbeFunc] Failed to init tbe.[FUNC:InitializeInner][FILE:tbe_op_store_adapter.cc][LINE:1586]
        [SubGraphOpt][PreCompileOp][InitAdapter] InitializeAdapter adapter [tbe_op_adapter] failed! Ret [4294967295][FUNC:InitializeAdapter][FILE:op_store_adapter_manager.cc][LINE:86]
        [SubGraphOpt][PreCompileOp][Init] Initialize op store adapter failed, OpsStoreName[tbe-custom].[FUNC:Initialize][FILE:op_store_adapter_manager.cc][LINE:133]
        [FusionMngr][Init] Op store adapter manager init failed.[FUNC:Initialize][FILE:fusion_manager.cc][LINE:109]
        PluginManager InvokeAll failed.[FUNC:Initialize][FILE:ops_kernel_manager.cc][LINE:102]
        OpsManager initialize failed.[FUNC:InnerInitialize][FILE:gelib.cc][LINE:236]
        GELib::InnerInitialize failed.[FUNC:Initialize][FILE:gelib.cc][LINE:165]

true


尝试这个,也不行:
source /usr/local/Ascend/ascend-toolkit/set_env.sh

用系统自带的 Python 也不行

true


.bashrc文件内容 true

本帖最后由 匿名用户2023/09/22 21:46:09 编辑

我要发帖子