通过atc将atlas服务器上的mindir模型文件转换成om模型文件时报错

报错信息如下,不同mindir文件转换时报同一个错误,应该不是mindir文件的问题:

atc --model ./get_position_10240_10.mindir --framework=1 --output=./position --soc_version=Ascend310P1
ATC start working now, please wait for a moment.
[libprotobuf ERROR wire_format_lite.cc:577] String field ‘ge.proto.GraphDef.name’ contains invalid UTF-8 data when parsing a protocol buffer. Use the ‘bytes’ type if you intend to send raw bytes.

ATC run failed, Please check the detail log, Try ‘atc --help’ for more information
E10041: 2026-05-27-14:54:13.903.857 Failed to load the model from [./get_position_10240_10.mindir].
Solution: 1. Check that the model file is valid. 2. Check that the weight file or path is valid when model is more than 2G. 3. Check that the [–framework] argument matches the actual framework of the model file.
TraceBack (most recent call last):
ParseFromFileDescriptor failed, file:/home/y30011219/get_position_10240_10.mindir.[FUNC:LoadFromFile][FILE:model.cc][LINE:217]
Failed to load the model from [./get_position_10240_10.mindir].

[root@tono y30011219]#
[root@tono y30011219]#
[root@tono y30011219]# atc --model ./preliminary_ascend.mindir --framework=1 --output=./position --soc_version=Ascend310P1
ATC start working now, please wait for a moment.
[libprotobuf ERROR wire_format_lite.cc:577] String field ‘ge.proto.GraphDef.name’ contains invalid UTF-8 data when parsing a protocol buffer. Use the ‘bytes’ type if you intend to send raw bytes.

ATC run failed, Please check the detail log, Try ‘atc --help’ for more information
E10041: 2026-05-27-14:54:51.618.442 Failed to load the model from [./preliminary_ascend.mindir].
Solution: 1. Check that the model file is valid. 2. Check that the weight file or path is valid when model is more than 2G. 3. Check that the [–framework] argument matches the actual framework of the model file.
TraceBack (most recent call last):
ParseFromFileDescriptor failed, file:/home/y30011219/preliminary_ascend.mindir.[FUNC:LoadFromFile][FILE:model.cc][LINE:217]
Failed to load the model from [./preliminary_ascend.mindir].

CANN版本号:8.0.RC2

MindSpore版本:v2.7.0

用户您好,已经收到上述问题,会尽快分析答复,请耐心等待下~

建议通过MindSpore Lite提供的转换工具进行模型转换,如果使用MindSpore Lite提供的converter_lite转换工具转换存在报错的话,欢迎在社区提问

converter_lite工具支持将mindir文件转成om吗

能帮忙提供下转换命令吗?看这个上面的描述都是转换成ms

不支持的,mindspore lite的转换工具converter_lite是mindspore lite团队开发的用于将开源的onnx模型等开源框架导出的模型转换成mindspore lite支持的mindir格式;或者将mindspore训练导出的mindir模型转换成mindspore lite支持的mindir格式模型;不支持导出om的模型;

mindspore lite转换工具导出的用于mindspore lite推理的mindir模型是可以在ascend的不同硬件上进行推理的,功能基本等价om的

此话题已在最后回复的 60 分钟后被自动关闭。不再允许新回复。