您好,登錄后才能下訂單哦!
這篇文章給大家介紹海思NNIE mapper轉(zhuǎn)換模型出錯(cuò)提示:"input shape size is not equal to input name size"怎么辦,內(nèi)容非常詳細(xì),感興趣的小伙伴們可以參考借鑒,希望對大家能有所幫助。
caffe模型在電腦上運(yùn)行正常,使用海思nnie_mapper
轉(zhuǎn)換模型時(shí)失敗,輸出如下:
wuyy@wuyy-VirtualBox:~/dl/weights$ nnie_mapper_12 yolov3_608.cfg Mapper Version 1.2.2.1_B030 (NNIE_1.2) 19090610466402 begin net parsing.... ********************************************************** ERROR: file: parseInputDim line: 2244 input shape size is not equal to input name size! ********************************************************** ERROR: file: parseInputParamOldVersion line: 2151 ERROR: RUN FAILURE in line 2151. Return = 262148 ********************************************************** ERROR: file: parseModel line: 14827 ERROR: RUN FAILURE in line 14827. Return = 262148 ********************************************************** ERROR: file: compile line: 609 ERROR: RUN FAILURE in line 609. Return = 262148 ********************************************************** ERROR: file: iFEPCompile line: 114 ERROR: RUN FAILURE in line 114. Return = 262148 ********************************************************** ERROR: file: main line: 164 iFEPCompile failed(262148) begin quant files writing.... end quant files writing
原因是deploy.prototxt
文件輸入層的格式與海思的nnie_mapper
支持的格式不兼容,海思支持的格式參閱文檔:HiSVP 開發(fā)指南.pdf
,章節(jié):3.2.1 deploy.prototxt 輸入層格式
原來的格式如下:
input: "data" input_dim: 1 input_dim: 3 input_dim: 608 input_dim: 608
修改如下:
input: "data" input_shape { dim: 1 dim: 3 dim: 608 dim: 608 }
修改后重新運(yùn)行nnie_mapper
,轉(zhuǎn)換成功:
wuyy@wuyy-VirtualBox:~/dl/weights$ nnie_mapper_12 yolov3_608.cfg Mapper Version 1.2.2.1_B030 (NNIE_1.2) 19090610466402 begin net parsing.... end net parsing begin prev optimizing.... end prev optimizing.... begin net quantalizing(CPU).... end quantalizing begin optimizing.... end optimizing begin NNIE[0] mem allocation.... end NNIE[0] memory allocating begin NNIE[0] instruction generating.... end NNIE[0] instruction generating begin parameter compressing.... end parameter compressing begin compress index generating.... end compress index generating begin binary code generating.... end binary code generating begin quant files writing.... end quant files writing wuyy@wuyy-VirtualBox:~/dl/weights$ ls cnn_net_tree.dot dog_bike_car.jpg instruction.txt yolov3_416.caffemodel yolov3_608_inst.wk cnn_net_tree_gv.dot dout_nne_para.txt mapper_debug.log yolov3_416.cfg yolov3_608.prototxt cnn_net_tree_org.dot gfpq_param.txt mapper_error.log yolov3_416.prototxt cnn_net_tree_pre.dot ibd_para.txt netmem_info.data yolov3_608.caffemodel cnn_net_tree_pre_org.dot image_ref_list.txt RUNTIME.txt yolov3_608.cfg
關(guān)于海思NNIE mapper轉(zhuǎn)換模型出錯(cuò)提示:"input shape size is not equal to input name size"怎么辦就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,可以學(xué)到更多知識。如果覺得文章不錯(cuò),可以把它分享出去讓更多的人看到。
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。