Toybrick

caffe转换模型问题

慢慢的大米饭

新手上路

积分
43
楼主
发表于 2019-2-15 13:58:46    查看: 11259|回复: 8 | [复制链接]    打印 | 只看该作者
rknn 0.9.8 转换模型报错,具体错误在mobilenet_build.log,请官方支持下

Catch exception when loading caffe model: ./modelconfig.prototxt!
T Traceback (most recent call last):
T   File "rknn/api/rknn_base.py", line 257, in rknn.api.rknn_base.RKNNBase.load_caffe
T   File "rknn/base/rknnlib/converter/caffeloader.py", line 969, in rknn.base.rknnlib.converter.caffeloader.CaffeLoader.load
T   File "rknn/base/rknnlib/converter/caffeloader.py", line 882, in rknn.base.rknnlib.converter.caffeloader.CaffeLoader.parse_connections
T   File "rknn/base/rknnlib/rknnnet.py", line 270, in rknn.base.rknnlib.rknnnet.rknnNet.connect
T   File "rknn/base/rknnlib/layer/rknnlayer.py", line 141, in rknn.base.rknnlib.layer.rknnlayer.rknnLayer.add_input
T   File "rknn/base/rknnlib/layer/rknnlayer.py", line 26, in rknn.base.rknnlib.layer.rknnlayer.IoStruct.add
T   File "rknn/base/rknnlib/rknnlog.py", line 105, in rknn.base.rknnlib.rknnlog.rknnLog.e
T ValueError: Invalid tensor id(1), tensor(@mbox_conf_flatten_217ut0)
done
--> Building model

回复

使用道具 举报

慢慢的大米饭

新手上路

积分
43
沙发
 楼主| 发表于 2019-2-15 14:02:08 | 只看该作者
具体错误如下:
I Set caffe proto to caffe
I Load caffe model ./modelconfig.prototxt
I Parsing net parameters ...
D import clients finished
I Parsing layer parameters ...
D Convert layer data
D Convert layer conv1_1
D Convert layer relu1_1
D Convert layer conv1_2
D Convert layer relu1_2
D Convert layer pool1
D Convert layer conv2_1
D Convert layer relu2_1
D Convert layer conv2_2
D Convert layer relu2_2
D Convert layer pool2
D Convert layer conv3_1
D Convert layer relu3_1
D Convert layer conv3_2
D Convert layer relu3_2
D Convert layer conv3_3
D Convert layer relu3_3
D Convert layer pool3
D Convert layer conv4_1
D Convert layer relu4_1
D Convert layer conv4_2
D Convert layer relu4_2
D Convert layer conv4_3
D Convert layer relu4_3
D Convert layer pool4
D Convert layer conv5_1
D Convert layer relu5_1
D Convert layer conv5_2
D Convert layer relu5_2
D Convert layer conv5_3
D Convert layer relu5_3
D Convert layer pool5
D Convert layer fc6
D Convert layer relu6
D Convert layer fc7
D Convert layer relu7
D Convert layer conv6_1
D Convert layer conv6_1_relu
D Convert layer conv6_2
D Convert layer conv6_2_relu
D Convert layer TL6_1_new
D Convert layer TL6_1_new_bn
D Convert layer TL6_1_new_scale
D Convert layer TL6_1_new_relu
D Convert layer TL6_2_new
D Convert layer TL6_2_new_bn
D Convert layer TL6_2_new_scale
D Convert layer TL6_2_new_relu
D Convert layer P6_new
D Convert layer P6_new_bn
D Convert layer P6_new_scale
D Convert layer P6_new_relu
D Convert layer Context6_1_new
D Convert layer Context6_1_new_bn
D Convert layer Context6_1_new_scale
D Convert layer Context6_1_new_relu
D Convert layer Context6_2red_new
D Convert layer Context6_2red_new_bn
D Convert layer Context6_2red_new_scale
D Convert layer Context6_2red_new_relu
D Convert layer Context6_2a
D Convert layer Context6_2a_bn
D Convert layer Context6_2a_scale
D Convert layer Context6_2a_relu
D Convert layer Context6_2b_1
D Convert layer Context6_2b_1_bn
D Convert layer Context6_2b_1_scale
D Convert layer Context6_2b_1_relu
D Convert layer Context6_2b_2
D Convert layer Context6_2b_2_bn
D Convert layer Context6_2b_2_scale
D Convert layer Context6_2b_2_relu
D Convert layer Context_6
D Convert layer TL5_1_new
D Convert layer TL5_1_new_bn
D Convert layer TL5_1_new_scale
D Convert layer TL5_1_new_relu
D Convert layer TL5_2_new
D Convert layer TL5_2_new_bn
D Convert layer TL5_2_new_scale
D Convert layer P6-up_new
D Convert layer P6-up_new_relu
D Convert layer Elt5_new
D Convert layer Elt5_new_relu_new
D Convert layer P5_new
D Convert layer P5_new_bn
D Convert layer P5_new_scale
D Convert layer P5_new_relu
D Convert layer Context5_1_new
D Convert layer Context5_1_new_bn
D Convert layer Context5_1_new_scale
D Convert layer Context5_1_new_relu
D Convert layer Context5_2red_new
D Convert layer Context5_2red_new_bn
D Convert layer Context5_2red_new_scale
D Convert layer Context5_2red_new_relu
D Convert layer Context5_2a
D Convert layer Context5_2a_bn
D Convert layer Context5_2a_scale
D Convert layer Context5_2a_relu
D Convert layer Context5_2b_1
D Convert layer Context5_2b_1_bn
D Convert layer Context5_2b_1_scale
D Convert layer Context5_2b_1_relu
D Convert layer Context5_2b_2
D Convert layer Context5_2b_2_bn
D Convert layer Context5_2b_2_scale
D Convert layer Context5_2b_2_relu
D Convert layer Context_5
D Convert layer TL4_1_new
D Convert layer TL4_1_new_bn
D Convert layer TL4_1_new_scale
D Convert layer TL4_1_new_relu
D Convert layer TL4_2_new
D Convert layer TL4_2_new_bn
D Convert layer TL4_2_new_scale
D Convert layer P5-up_new
D Convert layer P5-up_new_relu
D Convert layer Elt4_new
D Convert layer Elt4_new_relu_new
D Convert layer P4_new
D Convert layer P4_new_bn
D Convert layer P4_new_scale
D Convert layer P4_new_relu
D Convert layer Context4_1_new
D Convert layer Context4_1_new_bn
D Convert layer Context4_1_new_scale
D Convert layer Context4_1_new_relu
D Convert layer Context4_2red_new
D Convert layer Context4_2red_new_bn
D Convert layer Context4_2red_new_scale
D Convert layer Context4_2red_new_relu
D Convert layer Context4_2a
D Convert layer Context4_2a_bn
D Convert layer Context4_2a_scale
D Convert layer Context4_2a_relu
D Convert layer Context4_2b_1
D Convert layer Context4_2b_1_bn
D Convert layer Context4_2b_1_scale
D Convert layer Context4_2b_1_relu
D Convert layer Context4_2b_2
D Convert layer Context4_2b_2_bn
D Convert layer Context4_2b_2_scale
D Convert layer Context4_2b_2_relu
D Convert layer Context_4
D Convert layer TL3_1_new
D Convert layer TL3_1_new_bn
D Convert layer TL3_1_new_scale
D Convert layer TL3_1_new_relu
D Convert layer TL3_2_new
D Convert layer TL3_2_new_bn
D Convert layer TL3_2_new_scale
D Convert layer P4-up_new
D Convert layer P4-up_new_relu
D Convert layer Elt3_new
D Convert layer Elt3_new_relu_new
D Convert layer P3_new
D Convert layer P3_new_bn
D Convert layer P3_new_scale
D Convert layer P3_new_relu
D Convert layer Context3_1_new
D Convert layer Context3_1_new_bn
D Convert layer Context3_1_new_scale
D Convert layer Context3_1_new_relu
D Convert layer Context3_2red_new
D Convert layer Context3_2red_new_bn
D Convert layer Context3_2red_new_scale
D Convert layer Context3_2red_new_relu
D Convert layer Context3_2a
D Convert layer Context3_2a_bn
D Convert layer Context3_2a_scale
D Convert layer Context3_2a_relu
D Convert layer Context3_2b_1
D Convert layer Context3_2b_1_bn
D Convert layer Context3_2b_1_scale
D Convert layer Context3_2b_1_relu
D Convert layer Context3_2b_2
D Convert layer Context3_2b_2_bn
D Convert layer Context3_2b_2_scale
D Convert layer Context3_2b_2_relu
D Convert layer Context_3
D Convert layer Context_3_mbox_loc
D Convert layer Context_3_mbox_loc_perm
D Convert layer Context_3_mbox_loc_flat
D Convert layer Context_3_mbox_conf_new
D Convert layer Context_3_mbox_conf_new_slice
D Convert layer Context_3_mbox_conf_new_maxout
D Convert layer Context_3_mbox_conf_new_out
D Convert layer Context_3_mbox_conf_new_perm
D Convert layer Context_3_mbox_conf_new_flat
D Convert layer Context_3_mbox_priorbox
D Convert layer Context_4_mbox_loc
D Convert layer Context_4_mbox_loc_perm
D Convert layer Context_4_mbox_loc_flat
D Convert layer Context_4_mbox_conf
D Convert layer Context_4_mbox_conf_perm
D Convert layer Context_4_mbox_conf_flat
D Convert layer Context_4_mbox_priorbox
D Convert layer Context_5_mbox_loc
D Convert layer Context_5_mbox_loc_perm
D Convert layer Context_5_mbox_loc_flat
D Convert layer Context_5_mbox_conf
D Convert layer Context_5_mbox_conf_perm
D Convert layer Context_5_mbox_conf_flat
D Convert layer Context_5_mbox_priorbox
D Convert layer Context_6_mbox_loc
D Convert layer Context_6_mbox_loc_perm
D Convert layer Context_6_mbox_loc_flat
D Convert layer Context_6_mbox_conf
D Convert layer Context_6_mbox_conf_perm
D Convert layer Context_6_mbox_conf_flat
D Convert layer Context_6_mbox_priorbox
D Convert layer mbox_loc
D Convert layer mbox_conf
D Convert layer mbox_priorbox
D Convert layer mbox_conf_reshape
D Convert layer mbox_conf_softmax
D Convert layer mbox_conf_flatten
D Convert layer detection_out
W Unknown caffe layer detectionoutput
I Parsing connections ...
D Connect: data_0,0 to conv1_1_1,0
D Connect: data_0,0 to Context_3_mbox_priorbox_190,1
D Connect: data_0,0 to Context_4_mbox_priorbox_197,1
D Connect: data_0,0 to Context_5_mbox_priorbox_204,1
D Connect: data_0,0 to Context_6_mbox_priorbox_211,1
D Connect: conv1_1_1,0 to relu1_1_2,0
D Connect: relu1_1_2,0 to conv1_2_3,0
D Connect: conv1_2_3,0 to relu1_2_4,0
D Connect: relu1_2_4,0 to pool1_5,0
D Connect: pool1_5,0 to conv2_1_6,0
D Connect: conv2_1_6,0 to relu2_1_7,0
D Connect: relu2_1_7,0 to conv2_2_8,0
D Connect: conv2_2_8,0 to relu2_2_9,0
D Connect: relu2_2_9,0 to pool2_10,0
D Connect: pool2_10,0 to conv3_1_11,0
D Connect: conv3_1_11,0 to relu3_1_12,0
D Connect: relu3_1_12,0 to conv3_2_13,0
D Connect: conv3_2_13,0 to relu3_2_14,0
D Connect: relu3_2_14,0 to conv3_3_15,0
D Connect: conv3_3_15,0 to relu3_3_16,0
D Connect: relu3_3_16,0 to pool3_17,0
D Connect: pool3_17,0 to conv4_1_18,0
D Connect: conv4_1_18,0 to relu4_1_19,0
D Connect: relu4_1_19,0 to conv4_2_20,0
D Connect: conv4_2_20,0 to relu4_2_21,0
D Connect: relu4_2_21,0 to conv4_3_22,0
D Connect: conv4_3_22,0 to relu4_3_23,0
D Connect: relu4_3_23,0 to pool4_24,0
D Connect: relu4_3_23,0 to TL3_1_new_145,0
D Connect: pool4_24,0 to conv5_1_25,0
D Connect: conv5_1_25,0 to relu5_1_26,0
D Connect: relu5_1_26,0 to conv5_2_27,0
D Connect: conv5_2_27,0 to relu5_2_28,0
D Connect: relu5_2_28,0 to conv5_3_29,0
D Connect: conv5_3_29,0 to relu5_3_30,0
D Connect: relu5_3_30,0 to pool5_31,0
D Connect: relu5_3_30,0 to TL4_1_new_109,0
D Connect: pool5_31,0 to fc6_32,0
D Connect: fc6_32,0 to relu6_33,0
D Connect: relu6_33,0 to fc7_34,0
D Connect: fc7_34,0 to relu7_35,0
D Connect: relu7_35,0 to conv6_1_36,0
D Connect: relu7_35,0 to TL5_1_new_73,0
D Connect: conv6_1_36,0 to conv6_1_relu_37,0
D Connect: conv6_1_relu_37,0 to conv6_2_38,0
D Connect: conv6_2_38,0 to conv6_2_relu_39,0
D Connect: conv6_2_relu_39,0 to TL6_1_new_40,0
D Connect: TL6_1_new_40,0 to TL6_1_new_bn_41,0
D Connect: TL6_1_new_bn_41,0 to TL6_1_new_scale_42,0
D Connect: TL6_1_new_scale_42,0 to TL6_1_new_relu_43,0
D Connect: TL6_1_new_relu_43,0 to TL6_2_new_44,0
D Connect: TL6_2_new_44,0 to TL6_2_new_bn_45,0
D Connect: TL6_2_new_bn_45,0 to TL6_2_new_scale_46,0
D Connect: TL6_2_new_scale_46,0 to TL6_2_new_relu_47,0
D Connect: TL6_2_new_relu_47,0 to P6_new_48,0
D Connect: P6_new_48,0 to P6_new_bn_49,0
D Connect: P6_new_bn_49,0 to P6_new_scale_50,0
D Connect: P6_new_scale_50,0 to P6_new_relu_51,0
D Connect: P6_new_relu_51,0 to Context6_1_new_52,0
D Connect: P6_new_relu_51,0 to Context6_2red_new_56,0
D Connect: P6_new_relu_51,0 to P6-up_new_80,0
D Connect: Context6_1_new_52,0 to Context6_1_new_bn_53,0
D Connect: Context6_1_new_bn_53,0 to Context6_1_new_scale_54,0
D Connect: Context6_1_new_scale_54,0 to Context6_1_new_relu_55,0
D Connect: Context6_1_new_relu_55,0 to Context_6_72,0
D Connect: Context6_2red_new_56,0 to Context6_2red_new_bn_57,0
D Connect: Context6_2red_new_bn_57,0 to Context6_2red_new_scale_58,0
D Connect: Context6_2red_new_scale_58,0 to Context6_2red_new_relu_59,0
D Connect: Context6_2red_new_relu_59,0 to Context6_2a_60,0
D Connect: Context6_2red_new_relu_59,0 to Context6_2b_1_64,0
D Connect: Context6_2a_60,0 to Context6_2a_bn_61,0
D Connect: Context6_2a_bn_61,0 to Context6_2a_scale_62,0
D Connect: Context6_2a_scale_62,0 to Context6_2a_relu_63,0
D Connect: Context6_2a_relu_63,0 to Context_6_72,1
D Connect: Context6_2b_1_64,0 to Context6_2b_1_bn_65,0
D Connect: Context6_2b_1_bn_65,0 to Context6_2b_1_scale_66,0
D Connect: Context6_2b_1_scale_66,0 to Context6_2b_1_relu_67,0
D Connect: Context6_2b_1_relu_67,0 to Context6_2b_2_68,0
D Connect: Context6_2b_2_68,0 to Context6_2b_2_bn_69,0
D Connect: Context6_2b_2_bn_69,0 to Context6_2b_2_scale_70,0
D Connect: Context6_2b_2_scale_70,0 to Context6_2b_2_relu_71,0
D Connect: Context6_2b_2_relu_71,0 to Context_6_72,2
D Connect: Context_6_72,0 to Context_6_mbox_loc_205,0
D Connect: Context_6_72,0 to Context_6_mbox_conf_208,0
D Connect: Context_6_72,0 to Context_6_mbox_priorbox_211,0
D Connect: TL5_1_new_73,0 to TL5_1_new_bn_74,0
D Connect: TL5_1_new_bn_74,0 to TL5_1_new_scale_75,0
D Connect: TL5_1_new_scale_75,0 to TL5_1_new_relu_76,0
D Connect: TL5_1_new_relu_76,0 to TL5_2_new_77,0
D Connect: TL5_2_new_77,0 to TL5_2_new_bn_78,0
D Connect: TL5_2_new_bn_78,0 to TL5_2_new_scale_79,0
D Connect: TL5_2_new_scale_79,0 to Elt5_new_82,0
D Connect: P6-up_new_80,0 to P6-up_new_relu_81,0
D Connect: P6-up_new_relu_81,0 to Elt5_new_82,1
D Connect: Elt5_new_82,0 to Elt5_new_relu_new_83,0
D Connect: Elt5_new_relu_new_83,0 to P5_new_84,0
D Connect: P5_new_84,0 to P5_new_bn_85,0
D Connect: P5_new_bn_85,0 to P5_new_scale_86,0
D Connect: P5_new_scale_86,0 to P5_new_relu_87,0
D Connect: P5_new_relu_87,0 to Context5_1_new_88,0
D Connect: P5_new_relu_87,0 to Context5_2red_new_92,0
D Connect: P5_new_relu_87,0 to P5-up_new_116,0
D Connect: Context5_1_new_88,0 to Context5_1_new_bn_89,0
D Connect: Context5_1_new_bn_89,0 to Context5_1_new_scale_90,0
D Connect: Context5_1_new_scale_90,0 to Context5_1_new_relu_91,0
D Connect: Context5_1_new_relu_91,0 to Context_5_108,0
D Connect: Context5_2red_new_92,0 to Context5_2red_new_bn_93,0
D Connect: Context5_2red_new_bn_93,0 to Context5_2red_new_scale_94,0
D Connect: Context5_2red_new_scale_94,0 to Context5_2red_new_relu_95,0
D Connect: Context5_2red_new_relu_95,0 to Context5_2a_96,0
D Connect: Context5_2red_new_relu_95,0 to Context5_2b_1_100,0
D Connect: Context5_2a_96,0 to Context5_2a_bn_97,0
D Connect: Context5_2a_bn_97,0 to Context5_2a_scale_98,0
D Connect: Context5_2a_scale_98,0 to Context5_2a_relu_99,0
D Connect: Context5_2a_relu_99,0 to Context_5_108,1
D Connect: Context5_2b_1_100,0 to Context5_2b_1_bn_101,0
D Connect: Context5_2b_1_bn_101,0 to Context5_2b_1_scale_102,0
D Connect: Context5_2b_1_scale_102,0 to Context5_2b_1_relu_103,0
D Connect: Context5_2b_1_relu_103,0 to Context5_2b_2_104,0
D Connect: Context5_2b_2_104,0 to Context5_2b_2_bn_105,0
D Connect: Context5_2b_2_bn_105,0 to Context5_2b_2_scale_106,0
D Connect: Context5_2b_2_scale_106,0 to Context5_2b_2_relu_107,0
D Connect: Context5_2b_2_relu_107,0 to Context_5_108,2
D Connect: Context_5_108,0 to Context_5_mbox_loc_198,0
D Connect: Context_5_108,0 to Context_5_mbox_conf_201,0
D Connect: Context_5_108,0 to Context_5_mbox_priorbox_204,0
D Connect: TL4_1_new_109,0 to TL4_1_new_bn_110,0
D Connect: TL4_1_new_bn_110,0 to TL4_1_new_scale_111,0
D Connect: TL4_1_new_scale_111,0 to TL4_1_new_relu_112,0
D Connect: TL4_1_new_relu_112,0 to TL4_2_new_113,0
D Connect: TL4_2_new_113,0 to TL4_2_new_bn_114,0
D Connect: TL4_2_new_bn_114,0 to TL4_2_new_scale_115,0
D Connect: TL4_2_new_scale_115,0 to Elt4_new_118,0
D Connect: P5-up_new_116,0 to P5-up_new_relu_117,0
D Connect: P5-up_new_relu_117,0 to Elt4_new_118,1
D Connect: Elt4_new_118,0 to Elt4_new_relu_new_119,0
D Connect: Elt4_new_relu_new_119,0 to P4_new_120,0
D Connect: P4_new_120,0 to P4_new_bn_121,0
D Connect: P4_new_bn_121,0 to P4_new_scale_122,0
D Connect: P4_new_scale_122,0 to P4_new_relu_123,0
D Connect: P4_new_relu_123,0 to Context4_1_new_124,0
D Connect: P4_new_relu_123,0 to Context4_2red_new_128,0
D Connect: P4_new_relu_123,0 to P4-up_new_152,0
D Connect: Context4_1_new_124,0 to Context4_1_new_bn_125,0
D Connect: Context4_1_new_bn_125,0 to Context4_1_new_scale_126,0
D Connect: Context4_1_new_scale_126,0 to Context4_1_new_relu_127,0
D Connect: Context4_1_new_relu_127,0 to Context_4_144,0
D Connect: Context4_2red_new_128,0 to Context4_2red_new_bn_129,0
D Connect: Context4_2red_new_bn_129,0 to Context4_2red_new_scale_130,0
D Connect: Context4_2red_new_scale_130,0 to Context4_2red_new_relu_131,0
D Connect: Context4_2red_new_relu_131,0 to Context4_2a_132,0
D Connect: Context4_2red_new_relu_131,0 to Context4_2b_1_136,0
D Connect: Context4_2a_132,0 to Context4_2a_bn_133,0
D Connect: Context4_2a_bn_133,0 to Context4_2a_scale_134,0
D Connect: Context4_2a_scale_134,0 to Context4_2a_relu_135,0
D Connect: Context4_2a_relu_135,0 to Context_4_144,1
D Connect: Context4_2b_1_136,0 to Context4_2b_1_bn_137,0
D Connect: Context4_2b_1_bn_137,0 to Context4_2b_1_scale_138,0
D Connect: Context4_2b_1_scale_138,0 to Context4_2b_1_relu_139,0
D Connect: Context4_2b_1_relu_139,0 to Context4_2b_2_140,0
D Connect: Context4_2b_2_140,0 to Context4_2b_2_bn_141,0
D Connect: Context4_2b_2_bn_141,0 to Context4_2b_2_scale_142,0
D Connect: Context4_2b_2_scale_142,0 to Context4_2b_2_relu_143,0
D Connect: Context4_2b_2_relu_143,0 to Context_4_144,2
D Connect: Context_4_144,0 to Context_4_mbox_loc_191,0
D Connect: Context_4_144,0 to Context_4_mbox_conf_194,0
D Connect: Context_4_144,0 to Context_4_mbox_priorbox_197,0
D Connect: TL3_1_new_145,0 to TL3_1_new_bn_146,0
D Connect: TL3_1_new_bn_146,0 to TL3_1_new_scale_147,0
D Connect: TL3_1_new_scale_147,0 to TL3_1_new_relu_148,0
D Connect: TL3_1_new_relu_148,0 to TL3_2_new_149,0
D Connect: TL3_2_new_149,0 to TL3_2_new_bn_150,0
D Connect: TL3_2_new_bn_150,0 to TL3_2_new_scale_151,0
D Connect: TL3_2_new_scale_151,0 to Elt3_new_154,0
D Connect: P4-up_new_152,0 to P4-up_new_relu_153,0
D Connect: P4-up_new_relu_153,0 to Elt3_new_154,1
D Connect: Elt3_new_154,0 to Elt3_new_relu_new_155,0
D Connect: Elt3_new_relu_new_155,0 to P3_new_156,0
D Connect: P3_new_156,0 to P3_new_bn_157,0
D Connect: P3_new_bn_157,0 to P3_new_scale_158,0
D Connect: P3_new_scale_158,0 to P3_new_relu_159,0
D Connect: P3_new_relu_159,0 to Context3_1_new_160,0
D Connect: P3_new_relu_159,0 to Context3_2red_new_164,0
D Connect: Context3_1_new_160,0 to Context3_1_new_bn_161,0
D Connect: Context3_1_new_bn_161,0 to Context3_1_new_scale_162,0
D Connect: Context3_1_new_scale_162,0 to Context3_1_new_relu_163,0
D Connect: Context3_1_new_relu_163,0 to Context_3_180,0
D Connect: Context3_2red_new_164,0 to Context3_2red_new_bn_165,0
D Connect: Context3_2red_new_bn_165,0 to Context3_2red_new_scale_166,0
D Connect: Context3_2red_new_scale_166,0 to Context3_2red_new_relu_167,0
D Connect: Context3_2red_new_relu_167,0 to Context3_2a_168,0
D Connect: Context3_2red_new_relu_167,0 to Context3_2b_1_172,0
D Connect: Context3_2a_168,0 to Context3_2a_bn_169,0
D Connect: Context3_2a_bn_169,0 to Context3_2a_scale_170,0
D Connect: Context3_2a_scale_170,0 to Context3_2a_relu_171,0
D Connect: Context3_2a_relu_171,0 to Context_3_180,1
D Connect: Context3_2b_1_172,0 to Context3_2b_1_bn_173,0
D Connect: Context3_2b_1_bn_173,0 to Context3_2b_1_scale_174,0
D Connect: Context3_2b_1_scale_174,0 to Context3_2b_1_relu_175,0
D Connect: Context3_2b_1_relu_175,0 to Context3_2b_2_176,0
D Connect: Context3_2b_2_176,0 to Context3_2b_2_bn_177,0
D Connect: Context3_2b_2_bn_177,0 to Context3_2b_2_scale_178,0
D Connect: Context3_2b_2_scale_178,0 to Context3_2b_2_relu_179,0
D Connect: Context3_2b_2_relu_179,0 to Context_3_180,2
D Connect: Context_3_180,0 to Context_3_mbox_loc_181,0
D Connect: Context_3_180,0 to Context_3_mbox_conf_new_184,0
D Connect: Context_3_180,0 to Context_3_mbox_priorbox_190,0
D Connect: Context_3_mbox_loc_181,0 to Context_3_mbox_loc_perm_182,0
D Connect: Context_3_mbox_loc_perm_182,0 to Context_3_mbox_loc_flat_183,0
D Connect: Context_3_mbox_loc_flat_183,0 to mbox_loc_212,0
D Connect: Context_3_mbox_conf_new_184,0 to Context_3_mbox_conf_new_slice_185,0
D Connect: Context_3_mbox_conf_new_slice_185,0 to Context_3_mbox_conf_new_maxout_186,0
D Connect: Context_3_mbox_conf_new_slice_185,1 to Context_3_mbox_conf_new_maxout_186,1
D Connect: Context_3_mbox_conf_new_slice_185,2 to Context_3_mbox_conf_new_maxout_186,2
D Connect: Context_3_mbox_conf_new_slice_185,3 to Context_3_mbox_conf_new_maxout_186,3
D Connect: Context_3_mbox_conf_new_slice_185,4 to Context_3_mbox_conf_new_out_187,0
D Connect: Context_3_mbox_conf_new_maxout_186,0 to Context_3_mbox_conf_new_out_187,1
D Connect: Context_3_mbox_conf_new_out_187,0 to Context_3_mbox_conf_new_perm_188,0
D Connect: Context_3_mbox_conf_new_perm_188,0 to Context_3_mbox_conf_new_flat_189,0
D Connect: Context_3_mbox_conf_new_flat_189,0 to mbox_conf_213,0
D Connect: Context_3_mbox_priorbox_190,0 to mbox_priorbox_214,0
D Connect: Context_4_mbox_loc_191,0 to Context_4_mbox_loc_perm_192,0
D Connect: Context_4_mbox_loc_perm_192,0 to Context_4_mbox_loc_flat_193,0
D Connect: Context_4_mbox_loc_flat_193,0 to mbox_loc_212,1
D Connect: Context_4_mbox_conf_194,0 to Context_4_mbox_conf_perm_195,0
D Connect: Context_4_mbox_conf_perm_195,0 to Context_4_mbox_conf_flat_196,0
D Connect: Context_4_mbox_conf_flat_196,0 to mbox_conf_213,1
D Connect: Context_4_mbox_priorbox_197,0 to mbox_priorbox_214,1
D Connect: Context_5_mbox_loc_198,0 to Context_5_mbox_loc_perm_199,0
D Connect: Context_5_mbox_loc_perm_199,0 to Context_5_mbox_loc_flat_200,0
D Connect: Context_5_mbox_loc_flat_200,0 to mbox_loc_212,2
D Connect: Context_5_mbox_conf_201,0 to Context_5_mbox_conf_perm_202,0
D Connect: Context_5_mbox_conf_perm_202,0 to Context_5_mbox_conf_flat_203,0
D Connect: Context_5_mbox_conf_flat_203,0 to mbox_conf_213,2
D Connect: Context_5_mbox_priorbox_204,0 to mbox_priorbox_214,2
D Connect: Context_6_mbox_loc_205,0 to Context_6_mbox_loc_perm_206,0
D Connect: Context_6_mbox_loc_perm_206,0 to Context_6_mbox_loc_flat_207,0
D Connect: Context_6_mbox_loc_flat_207,0 to mbox_loc_212,3
D Connect: Context_6_mbox_conf_208,0 to Context_6_mbox_conf_perm_209,0
D Connect: Context_6_mbox_conf_perm_209,0 to Context_6_mbox_conf_flat_210,0
D Connect: Context_6_mbox_conf_flat_210,0 to mbox_conf_213,3
D Connect: Context_6_mbox_priorbox_211,0 to mbox_priorbox_214,3
D Connect: mbox_loc_212,0 to detection_out_218,0
D Connect: mbox_conf_213,0 to mbox_conf_reshape_215,0
D Connect: mbox_priorbox_214,0 to detection_out_218,2
D Connect: mbox_conf_reshape_215,0 to mbox_conf_softmax_216,0
D Connect: mbox_conf_softmax_216,0 to mbox_conf_flatten_217,0
D Connect: mbox_conf_flatten_217,0 to detection_out_218,1
D Connect: detection_out_218,0 to output_219,0,
E Invalid tensor id(1), tensor(@mbox_conf_flatten_217ut0)
E Catch exception when loading caffe model: ./modelconfig.prototxt!
T Traceback (most recent call last):
T   File "rknn/api/rknn_base.py", line 257, in rknn.api.rknn_base.RKNNBase.load_caffe
T   File "rknn/base/rknnlib/converter/caffeloader.py", line 969, in rknn.base.rknnlib.converter.caffeloader.CaffeLoader.load
T   File "rknn/base/rknnlib/converter/caffeloader.py", line 882, in rknn.base.rknnlib.converter.caffeloader.CaffeLoader.parse_connections
T   File "rknn/base/rknnlib/rknnnet.py", line 270, in rknn.base.rknnlib.rknnnet.rknnNet.connect
T   File "rknn/base/rknnlib/layer/rknnlayer.py", line 141, in rknn.base.rknnlib.layer.rknnlayer.rknnLayer.add_input
T   File "rknn/base/rknnlib/layer/rknnlayer.py", line 26, in rknn.base.rknnlib.layer.rknnlayer.IoStruct.add
T   File "rknn/base/rknnlib/rknnlog.py", line 105, in rknn.base.rknnlib.rknnlog.rknnLog.e
T ValueError: Invalid tensor id(1), tensor(@mbox_conf_flatten_217ut0)
model_input or data_input or model_quantize is None, please check it.
回复

使用道具 举报

raul

中级会员

积分
235
板凳
发表于 2019-2-18 09:45:56 | 只看该作者
从日志看,这是由于OP不支持导致的错误,不支持的OP是detection_out,您是否可以在prototxt里将该层删去后再尝试下?后续我们会在版本更新时加入对该OP的支持。
回复

使用道具 举报

GuoBin

注册会员

积分
65
地板
发表于 2019-2-19 17:39:08 | 只看该作者
raul 发表于 2019-2-18 09:45
从日志看,这是由于OP不支持导致的错误,不支持的OP是detection_out,您是否可以在prototxt里将该层删去后 ...

将该层删除后,模型转换成功了!但是去掉detectionoutput层之后,caffe SSD 模型理论上应输出3个output tensor;rknn实际只返回了2个output tensor。在线求解,急!!!
回复

使用道具 举报

raul

中级会员

积分
235
5#
发表于 2019-2-20 11:45:09 | 只看该作者
GuoBin 发表于 2019-2-19 17:39
将该层删除后,模型转换成功了!但是去掉detectionoutput层之后,caffe SSD 模型理论上应输出3个output t ...

这个模型是公开模型吗,能否提供链接我们看下?是否是mobilenet_v1_ssd?
回复

使用道具 举报

raul

中级会员

积分
235
6#
发表于 2019-2-20 11:49:59 | 只看该作者
GuoBin 发表于 2019-2-19 17:39
将该层删除后,模型转换成功了!但是去掉detectionoutput层之后,caffe SSD 模型理论上应输出3个output t ...

或者是否可以把proptxt提供给我们?
回复

使用道具 举报

cuterxy

新手上路

积分
10
7#
发表于 2019-3-18 14:53:38 | 只看该作者
顶一下。遇到了同样的问题。希望能够尽快解决!
回复

使用道具 举报

GuoBin

注册会员

积分
65
8#
发表于 2019-3-21 09:45:41 | 只看该作者
raul 发表于 2019-2-20 11:45
这个模型是公开模型吗,能否提供链接我们看下?是否是mobilenet_v1_ssd?

这是我们公司的网络模型,不方便公开。
回复

使用道具 举报

raul

中级会员

积分
235
9#
发表于 2019-3-21 17:42:08 | 只看该作者
这个缺失的tensor应该是先验框,priors_box,这个tensor是固定的,在训练和inference阶段都是一样的,在caffe训练的时候可以得到这个tensor,后面直接拿来用就可以了。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表