/ 详情

atc模型转换出错

TODO
任务
创建于  
2025-01-13 17:17

cann安装完毕后,推理功能正常,但是使用atc工具转换爆出相关问题:

[root@localhost ascend]# atc --model=./safeHelmet.onnx --framework=5 --output=./out/safeHelmet --soc_version=Ascend310P3 --log warning
[EVENT] PROFILING(2665688,atc.bin):2025-01-13-17:14:06.586.122 [msprof_callback_impl.cpp:334] >>> (tid:2665688) Started to register profiling ctrl callback.
[EVENT] PROFILING(2665688,atc.bin):2025-01-13-17:14:06.586.275 [msprof_callback_impl.cpp:341] >>> (tid:2665688) Started to register profiling hash id callback.
[INFO] PROFILING(2665688,atc.bin):2025-01-13-17:14:06.586.284 [prof_atls_plugin.cpp:117] (tid:2665688) RegisterProfileCallback, callback type is 7
[EVENT] PROFILING(2665688,atc.bin):2025-01-13-17:14:06.586.290 [msprof_callback_impl.cpp:348] >>> (tid:2665688) Started to register profiling enable host freq callback.
[INFO] PROFILING(2665688,atc.bin):2025-01-13-17:14:06.586.296 [prof_atls_plugin.cpp:117] (tid:2665688) RegisterProfileCallback, callback type is 8
[INFO] ATRACE(2665688,atc.bin):2025-01-13-17:14:06.586.901 [trace_attr.c:188](tid:2665688) attr init success, timeout=0ms.
[INFO] ATRACE(2665688,atc.bin):2025-01-13-17:14:06.586.964 [trace_recorder.c:121](tid:2665688) use root path: /root/ascend
ATC start working now, please wait for a moment.
[WARNING] GE(2665688,atc.bin):2025-01-13-17:14:06.692.911 [file_utils.cc:47]2665688 RealPath:[Util][realpath] Get real_path for ./out/safeHelmet.om failed, reason:No such file or directory
[WARNING] GE(2665688,atc.bin):2025-01-13-17:14:06.692.979 [file_utils.cc:47]2665688 RealPath:[Util][realpath] Get real_path for check_result.json failed, reason:No such file or directory
[WARNING] GE(2665688,atc.bin):2025-01-13-17:14:06.692.996 [file_utils.cc:47]2665688 RealPath:[Util][realpath] Get real_path for =/usr/local/Ascend/ascend-toolkit/8.0.RC3/opp/ failed, reason:No such file or directory
[WARNING] GE(2665688,atc.bin):2025-01-13-17:14:06.693.005 [plugin_manager.cc:91]2665688 GetOppPath:[Call][RealPath] File path =/usr/local/Ascend/ascend-toolkit/8.0.RC3/opp/ is invalid.
[WARNING] GE(2665688,atc.bin):2025-01-13-17:14:06.693.023 [plugin_manager.cc:862]2665688 GetOppSupportedOsAndCpuType:Can not get real path:=/usr/local/Ascend/ascend-toolkit/8.0.RC3/opp/built-in/op_proto/lib/, it may be an old version
[ERROR] GE(2665688,atc.bin):2025-01-13-17:14:06.693.122 [option_utils.cc:1401]2665688 CheckHostEnvOsAndHostEnvCpuValid: ErrorNo: 4294967295(failed) [INIT][DEFAULT]The os [linux] not supported, support list is [], the supported os type is same as opp package.
[ERROR] GE(2665688,atc.bin):2025-01-13-17:14:06.693.135 [main_impl.cc:1748]2665688 GenerateOmModel: ErrorNo: 4294967295(failed) [INIT][DEFAULT][Check][Flags] failed! Please check whether some atc params that include semicolons[;] use double quotation marks (") to enclose each argument such as out_nodes, input_shape, dynamic_image_size
...
[WARNING] GE(2665688,atc.bin):2025-01-13-17:14:06.693.159 [main_impl.cc:2078]2665688 CheckRet:ATC generate offline model failed.
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E10001: [PID: 2665688] 2025-01-13-17:14:06.693.056 Value [linux] for parameter [--host_env_os] is invalid. Reason: The os [linux] not supported, support list is [], the supported os type is same as opp package.
        Solution: Try again with a valid argument.

warning排查,对应路径确实存在文件,以下是我的basrc:

. /usr/local/Ascend/ascend-toolkit/set_env.sh
. /usr/local/Ascend/toolbox/set_env.sh
. /usr/local/Ascend/nnae/set_env.sh
. /usr/local/Ascend/nnrt/set_env.sh
. /usr/local/Ascend/nnal/atb/set_env.sh
export TBE_IMPL_PATH=/usr/local/Ascend/ascend-toolkit/8.0.RC3/opp/built-in/op_impl/ai_core/tbe
export ASCEND_OPP_PATH==/usr/local/Ascend/ascend-toolkit/8.0.RC3/opp/
export ASCEND_AICPU_PATH=/usr/local/Ascend/ascend-toolkit/8.0.RC3
export PYTHONPATH=/usr/bin/python3:$PYTHONPATH
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/8.0.RC3/python/site-packages:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$/usr/local/Ascend/ascend-toolkit/latest/aarch64-linux/devlib:$LD_LIBRARY_PATH

请问这个问题产生的原因是什么呢?

评论 (1)

SoulProficiency 创建了任务 3天前

您好,麻烦执行atc --help命令查看“--host_env_os”参数的默认值

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
Puzzle-wzygo SoulProficiency-SoulProficiency