Toybrick

AttributeError: 'NoneType' object has no attribute 'shape'

zengwubin

中级会员

积分
274
发表于 2020-10-15 19:47:15    查看: 527|回复: 1 | [复制链接]    打印 | 显示全部楼层
tookit==1.4.0 toych=1.2  onnx==1.4.1
yolov4-tiny ONNX模型转rknn, onnx模型能正常推理;以下转换报错:

D Save log info to: log.txt
I Current ONNX Model use ir_version 4 opset_version 9
D calc tensor shape of Split_128ut0 [[1, 32, 104, 104], [1, 32, 104, 104]]
D calc tensor shape of Split_145ut0 [[1, 64, 52, 52], [1, 64, 52, 52]]
D calc tensor shape of Split_162ut1 [[1, 128, 26, 26], [1, 128, 26, 26]]
D import clients finished
I build output layer attach_Conv_output0ut0
I build output layer attach_Conv_output1ut0
I Try match Conv_output1ut0
I Match r_conv [['Conv_output1', 'Initializer_yolo_headP4.1.weight', 'Initializer_yolo_headP4.1.bias']] [['Conv', 'Constant_0', 'Constant_1']] to [['convolution']]
I Try match Conv_output0ut0
I Match r_conv [['Conv_output0', 'Initializer_yolo_headP5.1.weight', 'Initializer_yolo_headP5.1.bias']] [['Conv', 'Constant_0', 'Constant_1']] to [['convolution']]
I Try match LeakyRelu_217ut0
I Match r_leakrelu [['LeakyRelu_217']] [['LeakyRelu']] to [['leakyrelu']]
I Try match LeakyRelu_184ut0
I Match r_leakrelu [['LeakyRelu_184']] [['LeakyRelu']] to [['leakyrelu']]
I Try match BatchNormalization_216ut0
I Match r_bn_v6 [['BatchNormalization_216', 'Initializer_yolo_headP4.0.bn.weight', 'Initializer_yolo_headP4.0.bn.bias', 'Initializer_yolo_headP4.0.bn.running_mean', 'Initializer_yolo_headP4.0.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match BatchNormalization_183:out0
I Match r_bn_v6 [['BatchNormalization_183', 'Initializer_yolo_headP5.0.bn.weight', 'Initializer_yolo_headP5.0.bn.bias', 'Initializer_yolo_headP5.0.bn.running_mean', 'Initializer_yolo_headP5.0.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match Conv_215:out0
I Match r_conv_no_bias [['Conv_215', 'Initializer_yolo_headP4.0.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Conv_182:out0
I Match r_conv_no_bias [['Conv_182', 'Initializer_yolo_headP5.0.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Concat_214:out0
I Match concat_2 [['Concat_214']] [['Concat']] to [['concat']]
I Try match LeakyRelu_181:out0
I Match r_leakrelu [['LeakyRelu_181']] [['LeakyRelu']] to [['leakyrelu']]
I Try match LeakyRelu_173:out0
I Match r_leakrelu [['LeakyRelu_173']] [['LeakyRelu']] to [['leakyrelu']]
I Try match Upsample_213:out0
I Match upsample_l9_to_resize [['Upsample_213', 'Initializer_212']] [['Upsample', 'Constant']] to [['image_resize']]
I Try match BatchNormalization_180:out0
I Match r_bn_v6 [['BatchNormalization_180', 'Initializer_conv_for_P5.bn.weight', 'Initializer_conv_for_P5.bn.bias', 'Initializer_conv_for_P5.bn.running_mean', 'Initializer_conv_for_P5.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match BatchNormalization_172:out0
I Match r_bn_v6 [['BatchNormalization_172', 'Initializer_backbone.resblock_body3.conv4.bn.weight', 'Initializer_backbone.resblock_body3.conv4.bn.bias', 'Initializer_backbone.resblock_body3.conv4.bn.running_mean', 'Initializer_backbone.resblock_body3.conv4.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match LeakyRelu_188:out0
I Match r_leakrelu [['LeakyRelu_188']] [['LeakyRelu']] to [['leakyrelu']]
I Try match Conv_179:out0
I Match r_conv_no_bias [['Conv_179', 'Initializer_conv_for_P5.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Conv_171:out0
I Match r_conv_no_bias [['Conv_171', 'Initializer_backbone.resblock_body3.conv4.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match BatchNormalization_187:out0
I Match r_bn_v6 [['BatchNormalization_187', 'Initializer_upsample.upsample.0.bn.weight', 'Initializer_upsample.upsample.0.bn.bias', 'Initializer_upsample.upsample.0.bn.running_mean', 'Initializer_upsample.upsample.0.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match LeakyRelu_178:out0
I Match r_leakrelu [['LeakyRelu_178']] [['LeakyRelu']] to [['leakyrelu']]
I Try match Concat_170:out0
I Match concat_2 [['Concat_170']] [['Concat']] to [['concat']]
I Try match Conv_186:out0
I Match r_conv_no_bias [['Conv_186', 'Initializer_upsample.upsample.0.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match BatchNormalization_177:out0
I Match r_bn_v6 [['BatchNormalization_177', 'Initializer_backbone.conv3.bn.weight', 'Initializer_backbone.conv3.bn.bias', 'Initializer_backbone.conv3.bn.running_mean', 'Initializer_backbone.conv3.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match LeakyRelu_169:out0
I Match r_leakrelu [['LeakyRelu_169']] [['LeakyRelu']] to [['leakyrelu']]
I Try match LeakyRelu_166:out0
I Match r_leakrelu [['LeakyRelu_166']] [['LeakyRelu']] to [['leakyrelu']]
I Try match BatchNormalization_165:out0
I Match r_bn_v6 [['BatchNormalization_165', 'Initializer_backbone.resblock_body3.conv2.bn.weight', 'Initializer_backbone.resblock_body3.conv2.bn.bias', 'Initializer_backbone.resblock_body3.conv2.bn.running_mean', 'Initializer_backbone.resblock_body3.conv2.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match Conv_176:out0
I Match r_conv_no_bias [['Conv_176', 'Initializer_backbone.conv3.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match BatchNormalization_168:out0
I Match r_bn_v6 [['BatchNormalization_168', 'Initializer_backbone.resblock_body3.conv3.bn.weight', 'Initializer_backbone.resblock_body3.conv3.bn.bias', 'Initializer_backbone.resblock_body3.conv3.bn.running_mean', 'Initializer_backbone.resblock_body3.conv3.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match Conv_164:out0
I Match r_conv_no_bias [['Conv_164', 'Initializer_backbone.resblock_body3.conv2.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match MaxPool_175:out0
I Match r_maxpool [['MaxPool_175']] [['MaxPool']] to [['pooling']]
I Try match Conv_167:out0
I Match r_conv_no_bias [['Conv_167', 'Initializer_backbone.resblock_body3.conv3.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Split_162:out1
I Match r_split_2 [['Split_162']] [['Split']] to [['split']]
I Try match Concat_174:out0
I Match concat_2 [['Concat_174']] [['Concat']] to [['concat']]
I Try match LeakyRelu_161:out0
I Match r_leakrelu [['LeakyRelu_161']] [['LeakyRelu']] to [['leakyrelu']]
I Try match BatchNormalization_160:out0
I Match r_bn_v6 [['BatchNormalization_160', 'Initializer_backbone.resblock_body3.conv1.bn.weight', 'Initializer_backbone.resblock_body3.conv1.bn.bias', 'Initializer_backbone.resblock_body3.conv1.bn.running_mean', 'Initializer_backbone.resblock_body3.conv1.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match Conv_159:out0
I Match r_conv_no_bias [['Conv_159', 'Initializer_backbone.resblock_body3.conv1.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match MaxPool_158:out0
I Match r_maxpool [['MaxPool_158']] [['MaxPool']] to [['pooling']]
I Try match Concat_157:out0
I Match concat_2 [['Concat_157']] [['Concat']] to [['concat']]
I Try match LeakyRelu_144:out0
I Match r_leakrelu [['LeakyRelu_144']] [['LeakyRelu']] to [['leakyrelu']]
I Try match LeakyRelu_156:out0
I Match r_leakrelu [['LeakyRelu_156']] [['LeakyRelu']] to [['leakyrelu']]
I Try match BatchNormalization_143:out0
I Match r_bn_v6 [['BatchNormalization_143', 'Initializer_backbone.resblock_body2.conv1.bn.weight', 'Initializer_backbone.resblock_body2.conv1.bn.bias', 'Initializer_backbone.resblock_body2.conv1.bn.running_mean', 'Initializer_backbone.resblock_body2.conv1.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match BatchNormalization_155:out0
I Match r_bn_v6 [['BatchNormalization_155', 'Initializer_backbone.resblock_body2.conv4.bn.weight', 'Initializer_backbone.resblock_body2.conv4.bn.bias', 'Initializer_backbone.resblock_body2.conv4.bn.running_mean', 'Initializer_backbone.resblock_body2.conv4.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match Conv_142:out0
I Match r_conv_no_bias [['Conv_142', 'Initializer_backbone.resblock_body2.conv1.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Conv_154:out0
I Match r_conv_no_bias [['Conv_154', 'Initializer_backbone.resblock_body2.conv4.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match MaxPool_141:out0
I Match r_maxpool [['MaxPool_141']] [['MaxPool']] to [['pooling']]
I Try match Concat_153:out0
I Match concat_2 [['Concat_153']] [['Concat']] to [['concat']]
I Try match Concat_140:out0
I Match concat_2 [['Concat_140']] [['Concat']] to [['concat']]
I Try match LeakyRelu_152:out0
I Match r_leakrelu [['LeakyRelu_152']] [['LeakyRelu']] to [['leakyrelu']]
I Try match LeakyRelu_149:out0
I Match r_leakrelu [['LeakyRelu_149']] [['LeakyRelu']] to [['leakyrelu']]
I Try match LeakyRelu_127:out0
I Match r_leakrelu [['LeakyRelu_127']] [['LeakyRelu']] to [['leakyrelu']]
I Try match LeakyRelu_139:out0
I Match r_leakrelu [['LeakyRelu_139']] [['LeakyRelu']] to [['leakyrelu']]
I Try match BatchNormalization_151:out0
I Match r_bn_v6 [['BatchNormalization_151', 'Initializer_backbone.resblock_body2.conv3.bn.weight', 'Initializer_backbone.resblock_body2.conv3.bn.bias', 'Initializer_backbone.resblock_body2.conv3.bn.running_mean', 'Initializer_backbone.resblock_body2.conv3.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match BatchNormalization_148:out0
I Match r_bn_v6 [['BatchNormalization_148', 'Initializer_backbone.resblock_body2.conv2.bn.weight', 'Initializer_backbone.resblock_body2.conv2.bn.bias', 'Initializer_backbone.resblock_body2.conv2.bn.running_mean', 'Initializer_backbone.resblock_body2.conv2.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match BatchNormalization_126:out0
I Match r_bn_v6 [['BatchNormalization_126', 'Initializer_backbone.resblock_body1.conv1.bn.weight', 'Initializer_backbone.resblock_body1.conv1.bn.bias', 'Initializer_backbone.resblock_body1.conv1.bn.running_mean', 'Initializer_backbone.resblock_body1.conv1.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match BatchNormalization_138:out0
I Match r_bn_v6 [['BatchNormalization_138', 'Initializer_backbone.resblock_body1.conv4.bn.weight', 'Initializer_backbone.resblock_body1.conv4.bn.bias', 'Initializer_backbone.resblock_body1.conv4.bn.running_mean', 'Initializer_backbone.resblock_body1.conv4.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match Conv_150:out0
I Match r_conv_no_bias [['Conv_150', 'Initializer_backbone.resblock_body2.conv3.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Conv_147:out0
I Match r_conv_no_bias [['Conv_147', 'Initializer_backbone.resblock_body2.conv2.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Conv_125:out0
I Match r_conv_no_bias [['Conv_125', 'Initializer_backbone.resblock_body1.conv1.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Conv_137:out0
I Match r_conv_no_bias [['Conv_137', 'Initializer_backbone.resblock_body1.conv4.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Concat_136:out0
I Match concat_2 [['Concat_136']] [['Concat']] to [['concat']]
I Try match Split_145:out1
I Match r_split_2 [['Split_145']] [['Split']] to [['split']]
I Try match LeakyRelu_124:out0
I Match r_leakrelu [['LeakyRelu_124']] [['LeakyRelu']] to [['leakyrelu']]
I Try match LeakyRelu_135:out0
I Match r_leakrelu [['LeakyRelu_135']] [['LeakyRelu']] to [['leakyrelu']]
I Try match LeakyRelu_132:out0
I Match r_leakrelu [['LeakyRelu_132']] [['LeakyRelu']] to [['leakyrelu']]
I Try match BatchNormalization_131:out0
I Match r_bn_v6 [['BatchNormalization_131', 'Initializer_backbone.resblock_body1.conv2.bn.weight', 'Initializer_backbone.resblock_body1.conv2.bn.bias', 'Initializer_backbone.resblock_body1.conv2.bn.running_mean', 'Initializer_backbone.resblock_body1.conv2.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match BatchNormalization_123:out0
I Match r_bn_v6 [['BatchNormalization_123', 'Initializer_backbone.conv2.bn.weight', 'Initializer_backbone.conv2.bn.bias', 'Initializer_backbone.conv2.bn.running_mean', 'Initializer_backbone.conv2.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match BatchNormalization_134:out0
I Match r_bn_v6 [['BatchNormalization_134', 'Initializer_backbone.resblock_body1.conv3.bn.weight', 'Initializer_backbone.resblock_body1.conv3.bn.bias', 'Initializer_backbone.resblock_body1.conv3.bn.running_mean', 'Initializer_backbone.resblock_body1.conv3.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match Conv_130:out0
I Match r_conv_no_bias [['Conv_130', 'Initializer_backbone.resblock_body1.conv2.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Conv_122:out0
I Match r_conv_no_bias [['Conv_122', 'Initializer_backbone.conv2.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Conv_133:out0
I Match r_conv_no_bias [['Conv_133', 'Initializer_backbone.resblock_body1.conv3.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I Try match Split_128:out1
I Match r_split_2 [['Split_128']] [['Split']] to [['split']]
I Try match LeakyRelu_121:out0
I Match r_leakrelu [['LeakyRelu_121']] [['LeakyRelu']] to [['leakyrelu']]
I Try match BatchNormalization_120:out0
I Match r_bn_v6 [['BatchNormalization_120', 'Initializer_backbone.conv1.bn.weight', 'Initializer_backbone.conv1.bn.bias', 'Initializer_backbone.conv1.bn.running_mean', 'Initializer_backbone.conv1.bn.running_var']] [['BatchNormalization', 'Constant_0', 'Constant_1', 'Constant_2', 'Constant_3']] to [['batchnormalize']]
I Try match Conv_119:out0
I Match r_conv_no_bias [['Conv_119', 'Initializer_backbone.conv1.conv.weight']] [['Conv', 'Constant_0']] to [['convolution']]
I build input layer Input_input0:out0
D connect LeakyRelu_217_4 0  ~ Conv_output1_2 0
D connect LeakyRelu_184_5 0  ~ Conv_output0_3 0
D connect BatchNormalization_216_6 0  ~ LeakyRelu_217_4 0
D connect BatchNormalization_183_7 0  ~ LeakyRelu_184_5 0
D connect Conv_215_8 0  ~ BatchNormalization_216_6 0
D connect Conv_182_9 0  ~ BatchNormalization_183_7 0
D connect Concat_214_10 0  ~ Conv_215_8 0
D connect LeakyRelu_181_11 0  ~ Conv_182_9 0
D connect LeakyRelu_173_12 0  ~ Concat_214_10 0
D connect Upsample_213_13 0  ~ Concat_214_10 1
D connect BatchNormalization_180_14 0  ~ LeakyRelu_181_11 0
D connect BatchNormalization_172_15 0  ~ LeakyRelu_173_12 0
D connect LeakyRelu_188_16 0  ~ Upsample_213_13 0
D connect Conv_179_17 0  ~ BatchNormalization_180_14 0
D connect Conv_171_18 0  ~ BatchNormalization_172_15 0
D connect BatchNormalization_187_19 0  ~ LeakyRelu_188_16 0
D connect LeakyRelu_178_20 0  ~ Conv_179_17 0
D connect Concat_170_21 0  ~ Conv_171_18 0
D connect Conv_186_22 0  ~ BatchNormalization_187_19 0
D connect BatchNormalization_177_23 0  ~ LeakyRelu_178_20 0
D connect LeakyRelu_169_24 0  ~ Concat_170_21 0
D connect LeakyRelu_166_25 0  ~ Concat_170_21 1
D connect LeakyRelu_181_11 0  ~ Conv_186_22 0
D connect Conv_176_27 0  ~ BatchNormalization_177_23 0
D connect BatchNormalization_168_28 0  ~ LeakyRelu_169_24 0
D connect BatchNormalization_165_26 0  ~ LeakyRelu_166_25 0
D connect Conv_164_29 0  ~ BatchNormalization_165_26 0
D connect MaxPool_175_30 0  ~ Conv_176_27 0
D connect Conv_167_31 0  ~ BatchNormalization_168_28 0
D connect Split_162_32 1  ~ Conv_164_29 0
D connect Concat_174_33 0  ~ MaxPool_175_30 0
D connect LeakyRelu_166_25 0  ~ Conv_167_31 0
D connect LeakyRelu_161_34 0  ~ Split_162_32 0
D connect LeakyRelu_161_34 0  ~ Concat_174_33 0
D connect LeakyRelu_173_12 0  ~ Concat_174_33 1
D connect BatchNormalization_160_35 0  ~ LeakyRelu_161_34 0
D connect Conv_159_36 0  ~ BatchNormalization_160_35 0
D connect MaxPool_158_37 0  ~ Conv_159_36 0
D connect Concat_157_38 0  ~ MaxPool_158_37 0
D connect LeakyRelu_144_39 0  ~ Concat_157_38 0
D connect LeakyRelu_156_40 0  ~ Concat_157_38 1
D connect BatchNormalization_143_41 0  ~ LeakyRelu_144_39 0
D connect BatchNormalization_155_42 0  ~ LeakyRelu_156_40 0
D connect Conv_142_43 0  ~ BatchNormalization_143_41 0
D connect Conv_154_44 0  ~ BatchNormalization_155_42 0
D connect MaxPool_141_45 0  ~ Conv_142_43 0
D connect Concat_153_46 0  ~ Conv_154_44 0
D connect Concat_140_47 0  ~ MaxPool_141_45 0
D connect LeakyRelu_152_48 0  ~ Concat_153_46 0
D connect LeakyRelu_149_49 0  ~ Concat_153_46 1
D connect LeakyRelu_127_50 0  ~ Concat_140_47 0
D connect LeakyRelu_139_51 0  ~ Concat_140_47 1
D connect BatchNormalization_151_52 0  ~ LeakyRelu_152_48 0
D connect BatchNormalization_148_53 0  ~ LeakyRelu_149_49 0
D connect BatchNormalization_126_54 0  ~ LeakyRelu_127_50 0
D connect BatchNormalization_138_55 0  ~ LeakyRelu_139_51 0
D connect Conv_150_56 0  ~ BatchNormalization_151_52 0
D connect Conv_147_57 0  ~ BatchNormalization_148_53 0
D connect Conv_125_58 0  ~ BatchNormalization_126_54 0
D connect Conv_137_59 0  ~ BatchNormalization_138_55 0
D connect LeakyRelu_149_49 0  ~ Conv_150_56 0
D connect Split_145_61 1  ~ Conv_147_57 0
D connect LeakyRelu_124_62 0  ~ Conv_125_58 0
D connect Concat_136_60 0  ~ Conv_137_59 0
D connect LeakyRelu_135_63 0  ~ Concat_136_60 0
D connect LeakyRelu_132_64 0  ~ Concat_136_60 1
D connect LeakyRelu_144_39 0  ~ Split_145_61 0
D connect BatchNormalization_123_66 0  ~ LeakyRelu_124_62 0
D connect BatchNormalization_134_67 0  ~ LeakyRelu_135_63 0
D connect BatchNormalization_131_65 0  ~ LeakyRelu_132_64 0
D connect Conv_130_68 0  ~ BatchNormalization_131_65 0
D connect Conv_122_69 0  ~ BatchNormalization_123_66 0
D connect Conv_133_70 0  ~ BatchNormalization_134_67 0
D connect Split_128_71 1  ~ Conv_130_68 0
D connect LeakyRelu_121_72 0  ~ Conv_122_69 0
D connect LeakyRelu_132_64 0  ~ Conv_133_70 0
D connect LeakyRelu_127_50 0  ~ Split_128_71 0
D connect BatchNormalization_120_73 0  ~ LeakyRelu_121_72 0
D connect Conv_119_74 0  ~ BatchNormalization_120_73 0
D connect input_75 0  ~ Conv_119_74 0
D connect Conv_output0_3 0  ~ attach_Conv_output0/out0_0 0
D connect Conv_output1_2 0  ~ attach_Conv_output1/out0_1 0
D Process input_75 ...
D RKNN output shape(input): (1 416 416 3)
D Process Conv_119_74 ...
D RKNN output shape(convolution): (1 208 208 32)
D Process BatchNormalization_120_73 ...
D RKNN output shape(batchnormalize): (1 208 208 32)
D Process LeakyRelu_121_72 ...
D RKNN output shape(leakyrelu): (1 208 208 32)
D Process Conv_122_69 ...
D RKNN output shape(convolution): (1 104 104 64)
D Process BatchNormalization_123_66 ...
D RKNN output shape(batchnormalize): (1 104 104 64)
D Process LeakyRelu_124_62 ...
D RKNN output shape(leakyrelu): (1 104 104 64)
D Process Conv_125_58 ...
D RKNN output shape(convolution): (1 104 104 64)
D Process BatchNormalization_126_54 ...
D RKNN output shape(batchnormalize): (1 104 104 64)
D Process LeakyRelu_127_50 ...
D RKNN output shape(leakyrelu): (1 104 104 64)
D Process Split_128_71 ...
E Catch exception when loading onnx model: /home/zengwb/Documents/yolov4-tiny-pytorch-master/yolov4-tiny.onnx!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 565, in rknn.api.rknn_base.RKNNBase.load_onnx
E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 286, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build
E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 305, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 305, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 305, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
E   [Previous line repeated 29 more times]
E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 311, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
E   File "rknn/base/RKNNlib/layer/RKNNlayer.py", line 265, in rknn.base.RKNNlib.layer.RKNNlayer.RKNNLayer.compute_shape
E AttributeError: 'NoneType' object has no attribute 'shape'

回复

使用道具 举报

Zzh

注册会员

积分
106
发表于 2020-12-11 15:52:18 | 显示全部楼层
你好,遇到了同样的问题,请问有解决方法吗?
回复

使用道具 举报

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

本版积分规则

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


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