felix

felix

0个粉丝

6

问答

0

专栏

0

资料

felix  发布于  2024-12-19 18:09:04
采纳率 50%
6个问答
77

SS928V100: atc生成的om文件格式 PICO 和 IMOD 有啥区别?

     

官方的SDK中,查看文件头如下:

(base) ebaina@ubuntu:~/Downloads/SS928V100_SDK_V2.0.2.2/smp/a55_linux/mpp/sample/svp$ hexdump -C ./npu/data/model/resnet50.om|head
00000000  49 4d 4f 44 00 01 00 00  00 00 00 20 00 00 00 00  |IMOD....... ....|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000040  00 00 00 00 00 00 00 00  00 00 00 00 e1 ed 19 03  |................|
00000050  00 00 00 00 52 65 73 4e  65 74 2d 35 30 00 00 00  |....ResNet-50...|
00000060  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000090  00 00 00 00 00 00 00 00  02 00 00 00 01 00 00 00  |................|
000000a0  31 2e 31 31 2e 7a 2e 30  00 00 00 00 00 00 00 00  |1.11.z.0........|
000000b0  00 00 00 00 01 00 00 00  00 00 00 00 00 00 00 00  |................|
(base) ebaina@ubuntu:~/Downloads/SS928V100_SDK_V2.0.2.2/smp/a55_linux/mpp/sample/svp$ hexdump -C ./svp_npu/data/model/resnet50.om|head
00000000  50 49 43 4f 00 00 00 00  67 2c 1a 03 e0 b5 19 03  |PICO....g,......|
00000010  20 00 00 00 00 f0 83 00  67 2c 1a 03 00 00 00 00  | .......g,......|
00000020  9c 54 00 00 71 12 71 12  00 d8 00 d8 00 d8 f0 57  |.T..q.q........W|
00000030  24 04 ff ff ef 09 ef 09  00 d8 00 d8 00 d8 f0 57  |$..............W|
00000040  20 35 ff ff ef 09 ef 09  00 d8 00 d8 00 d8 f0 57  | 5.............W|
00000050  14 ae ff ff 5d 14 5d 14  00 d8 00 d8 00 d8 f0 57  |....].]........W|
00000060  07 43 00 00 ed 12 ed 12  00 d8 00 d8 00 d8 f0 57  |.C.............W|
00000070  46 d1 00 00 cd 0e cd 0e  00 d8 00 d8 00 d8 f0 57  |F..............W|
00000080  46 27 ff ff ef 09 ef 09  00 d8 00 d8 00 d8 f0 57  |F'.............W|
00000090  f1 9c ff ff 82 10 82 10  00 d8 00 d8 00 d8 f0 57  |...............W|

两个路径中都有resnet50.om文件,一个文件头是IMOD,另一个是PICO,而且两个文件不可以替换,替换后会报错 Error, the loaded OM is not the OM of the Pico!,如下:

~/nfs # ./sample_svp_npu_main 0
[level]:Info,[func]:sample_common_svp_check_sys_init [line]:104 [info]:Svp mpi init ok!
[level]:Info,[func]:sample_svp_npu_acl_init [line]:112 [info]:svp acl init success!
[level]:Info,[func]:sample_svp_npu_acl_init [line]:121 [info]:open device 0 success!
[level]:Info,[func]:sample_svp_npu_acl_init [line]:131 [info]:get run mode success!
[Func]:svp_npu_model_load_check_params [Line]:625 [Info]:Error, the loaded OM is not the OM of the Pico!
[Func]:svp_npu_model_load_from_mem [Line]:641 [Info]:Error, check params failed!
 [level]:Error,[func]:sample_common_svp_npu_load_model [line]:247 [info]:load model from mem failed, error code is 100000!

 [level]:Error,[func]:sample_svp_npu_acl_resnet50 [line]:416 [info]:load model failed!

[level]:Info,[func]:sample_svp_npu_acl_deinit [line]:89 [info]:end to reset device is 0
[level]:Info,[func]:sample_svp_npu_acl_deinit [line]:95 [info]:end to finalize acl
[level]:Info,[func]:sample_common_svp_check_sys_exit [line]:120 [info]:Svp mpi exit ok!
~/nfs #

是atc版本不一致吗?如何指定文件头?还是atc参数不一致?

我来回答
回答1个
时间排序
认可量排序

ALLHH

1个粉丝

5

问答

0

专栏

0

资料

ALLHH 2024-12-24 10:26:49
认可1
易百纳技术社区该回答已被题主采纳为最佳答案

ss928有两个架构不同的npu,支持的算子、使用的ATC工具和调用都不相同。在SDK里一个一般叫SVP_NNN或者svp_npu,另一个叫NNN或者NPU

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区