Toybrick

load caffe模型发生错误

LSC

注册会员

积分
142
楼主
发表于 2019-12-19 11:11:36    查看: 2492|回复: 2 | [复制链接]    打印 | 只看该作者
  1. D Process data_0 ...
  2. D RKNN output shape(input): (0 512 512 3)
  3. D Process output_244 ...
  4. D RKNN output shape(output): (0 512 512 3)
  5. D Process conv1_1 ...
  6. E Catch exception when loading caffe model: /home/lsc/CenterNet/CenterNet/models/ctdet_coco_dlav0_1x_2.prototxt!
  7. E Traceback (most recent call last):
  8. E   File "rknn/api/rknn_base.py", line 287, in rknn.api.rknn_base.RKNNBase.load_caffe
  9. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 281, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build
  10. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 300, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
  11. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 300, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
  12. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 300, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
  13. E   [Previous line repeated 35 more times]
  14. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 306, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
  15. E   File "rknn/base/RKNNlib/layer/RKNNlayer.py", line 262, in rknn.base.RKNNlib.layer.RKNNlayer.RKNNLayer.compute_shape
  16. E   File "rknn/base/RKNNlib/layer/convolution.py", line 62, in rknn.base.RKNNlib.layer.convolution.Convolution.compute_out_shape
  17. E AttributeError: 'NoneType' object has no attribute 'format'
  18. Load model failed!
复制代码
我的caffe模型是使用pytorch转caffe的工具转换的CenterNet,Load时出现上面的错误,请问如何解决?
我已经将prototxt文件开头改成了如下所示。
  1. name: "ctdet_coco_dlav0_1x_2"
  2. layer {
  3.   name: "data"
  4.   type: "Input"
  5.   top: "image"
  6.   input_param {
  7.     shape {
  8.       dim:1
  9.       dim:3
  10.       dim:512
  11.       dim:512
  12.     }
  13.   }
  14. }
复制代码
日志文件参见附件。





回复

使用道具 举报

LSC

注册会员

积分
142
沙发
 楼主| 发表于 2019-12-19 11:14:50 | 只看该作者
日志文件传不了>_<
  1. D Save log info to: export.log
  2. I Set caffe proto to caffe
  3. I Load caffe model /home/lsc/CenterNet/CenterNet/models/ctdet_coco_dlav0_1x_2.prototxt
  4. I Parsing net parameters ...
  5. D import clients finished
  6. I Parsing layer parameters ...
  7. D Convert layer data
  8. D Convert layer conv1
  9. D Convert layer batch_norm1
  10. D Convert layer bn_scale1
  11. D Convert layer relu1
  12. D Convert layer conv2
  13. D Convert layer batch_norm2
  14. D Convert layer bn_scale2
  15. D Convert layer relu2
  16. D Convert layer conv3
  17. D Convert layer batch_norm3
  18. D Convert layer bn_scale3
  19. D Convert layer relu3
  20. D Convert layer max_pool1
  21. D Convert layer conv4
  22. D Convert layer batch_norm4
  23. D Convert layer bn_scale4
  24. D Convert layer conv5
  25. D Convert layer batch_norm5
  26. D Convert layer bn_scale5
  27. D Convert layer relu4
  28. D Convert layer conv6
  29. D Convert layer batch_norm6
  30. D Convert layer bn_scale6
  31. D Convert layer add1
  32. D Convert layer relu5
  33. D Convert layer conv7
  34. D Convert layer batch_norm7
  35. D Convert layer bn_scale7
  36. D Convert layer relu6
  37. D Convert layer conv8
  38. D Convert layer batch_norm8
  39. D Convert layer bn_scale8
  40. D Convert layer add2
  41. D Convert layer relu7
  42. D Convert layer cat1
  43. D Convert layer conv9
  44. D Convert layer batch_norm9
  45. D Convert layer bn_scale9
  46. D Convert layer relu8
  47. D Convert layer max_pool2
  48. D Convert layer conv10
  49. D Convert layer batch_norm10
  50. D Convert layer bn_scale10
  51. D Convert layer max_pool3
  52. D Convert layer conv11
  53. D Convert layer batch_norm11
  54. D Convert layer bn_scale11
  55. D Convert layer conv12
  56. D Convert layer batch_norm12
  57. D Convert layer bn_scale12
  58. D Convert layer relu9
  59. D Convert layer conv13
  60. D Convert layer batch_norm13
  61. D Convert layer bn_scale13
  62. D Convert layer add3
  63. D Convert layer relu10
  64. D Convert layer conv14
  65. D Convert layer batch_norm14
  66. D Convert layer bn_scale14
  67. D Convert layer relu11
  68. D Convert layer conv15
  69. D Convert layer batch_norm15
  70. D Convert layer bn_scale15
  71. D Convert layer add4
  72. D Convert layer relu12
  73. D Convert layer cat2
  74. D Convert layer conv16
  75. D Convert layer batch_norm16
  76. D Convert layer bn_scale16
  77. D Convert layer relu13
  78. D Convert layer conv17
  79. D Convert layer batch_norm17
  80. D Convert layer bn_scale17
  81. D Convert layer relu14
  82. D Convert layer conv18
  83. D Convert layer batch_norm18
  84. D Convert layer bn_scale18
  85. D Convert layer add5
  86. D Convert layer relu15
  87. D Convert layer conv19
  88. D Convert layer batch_norm19
  89. D Convert layer bn_scale19
  90. D Convert layer relu16
  91. D Convert layer conv20
  92. D Convert layer batch_norm20
  93. D Convert layer bn_scale20
  94. D Convert layer add6
  95. D Convert layer relu17
  96. D Convert layer cat3
  97. D Convert layer conv21
  98. D Convert layer batch_norm21
  99. D Convert layer bn_scale21
  100. D Convert layer relu18
  101. D Convert layer max_pool4
  102. D Convert layer conv22
  103. D Convert layer batch_norm22
  104. D Convert layer bn_scale22
  105. D Convert layer max_pool5
  106. D Convert layer conv23
  107. D Convert layer batch_norm23
  108. D Convert layer bn_scale23
  109. D Convert layer conv24
  110. D Convert layer batch_norm24
  111. D Convert layer bn_scale24
  112. D Convert layer relu19
  113. D Convert layer conv25
  114. D Convert layer batch_norm25
  115. D Convert layer bn_scale25
  116. D Convert layer add7
  117. D Convert layer relu20
  118. D Convert layer conv26
  119. D Convert layer batch_norm26
  120. D Convert layer bn_scale26
  121. D Convert layer relu21
  122. D Convert layer conv27
  123. D Convert layer batch_norm27
  124. D Convert layer bn_scale27
  125. D Convert layer add8
  126. D Convert layer relu22
  127. D Convert layer cat4
  128. D Convert layer conv28
  129. D Convert layer batch_norm28
  130. D Convert layer bn_scale28
  131. D Convert layer relu23
  132. D Convert layer conv29
  133. D Convert layer batch_norm29
  134. D Convert layer bn_scale29
  135. D Convert layer relu24
  136. D Convert layer conv30
  137. D Convert layer batch_norm30
  138. D Convert layer bn_scale30
  139. D Convert layer add9
  140. D Convert layer relu25
  141. D Convert layer conv31
  142. D Convert layer batch_norm31
  143. D Convert layer bn_scale31
  144. D Convert layer relu26
  145. D Convert layer conv32
  146. D Convert layer batch_norm32
  147. D Convert layer bn_scale32
  148. D Convert layer add10
  149. D Convert layer relu27
  150. D Convert layer cat5
  151. D Convert layer conv33
  152. D Convert layer batch_norm33
  153. D Convert layer bn_scale33
  154. D Convert layer relu28
  155. D Convert layer max_pool6
  156. D Convert layer conv34
  157. D Convert layer batch_norm34
  158. D Convert layer bn_scale34
  159. D Convert layer conv35
  160. D Convert layer batch_norm35
  161. D Convert layer bn_scale35
  162. D Convert layer relu29
  163. D Convert layer conv36
  164. D Convert layer batch_norm36
  165. D Convert layer bn_scale36
  166. D Convert layer add11
  167. D Convert layer relu30
  168. D Convert layer conv37
  169. D Convert layer batch_norm37
  170. D Convert layer bn_scale37
  171. D Convert layer relu31
  172. D Convert layer conv38
  173. D Convert layer batch_norm38
  174. D Convert layer bn_scale38
  175. D Convert layer add12
  176. D Convert layer relu32
  177. D Convert layer cat6
  178. D Convert layer conv39
  179. D Convert layer batch_norm39
  180. D Convert layer bn_scale39
  181. D Convert layer relu33
  182. D Convert layer conv40
  183. D Convert layer batch_norm40
  184. D Convert layer bn_scale40
  185. D Convert layer relu34
  186. D Convert layer conv_transpose1
  187. D Convert layer cat7
  188. D Convert layer conv41
  189. D Convert layer batch_norm41
  190. D Convert layer bn_scale41
  191. D Convert layer relu35
  192. D Convert layer conv42
  193. D Convert layer batch_norm42
  194. D Convert layer bn_scale42
  195. D Convert layer relu36
  196. D Convert layer conv_transpose2
  197. D Convert layer conv43
  198. D Convert layer batch_norm43
  199. D Convert layer bn_scale43
  200. D Convert layer relu37
  201. D Convert layer conv_transpose3
  202. D Convert layer cat8
  203. D Convert layer conv44
  204. D Convert layer batch_norm44
  205. D Convert layer bn_scale44
  206. D Convert layer relu38
  207. D Convert layer cat9
  208. D Convert layer conv45
  209. D Convert layer batch_norm45
  210. D Convert layer bn_scale45
  211. D Convert layer relu39
  212. D Convert layer conv46
  213. D Convert layer batch_norm46
  214. D Convert layer bn_scale46
  215. D Convert layer relu40
  216. D Convert layer conv_transpose4
  217. D Convert layer conv47
  218. D Convert layer batch_norm47
  219. D Convert layer bn_scale47
  220. D Convert layer relu41
  221. D Convert layer conv_transpose5
  222. D Convert layer conv48
  223. D Convert layer batch_norm48
  224. D Convert layer bn_scale48
  225. D Convert layer relu42
  226. D Convert layer conv_transpose6
  227. D Convert layer cat10
  228. D Convert layer conv49
  229. D Convert layer batch_norm49
  230. D Convert layer bn_scale49
  231. D Convert layer relu43
  232. D Convert layer cat11
  233. D Convert layer conv50
  234. D Convert layer batch_norm50
  235. D Convert layer bn_scale50
  236. D Convert layer relu44
  237. D Convert layer cat12
  238. D Convert layer conv51
  239. D Convert layer batch_norm51
  240. D Convert layer bn_scale51
  241. D Convert layer relu45
  242. D Convert layer conv52
  243. D Convert layer relu46
  244. D Convert layer conv53
  245. D Convert layer conv54
  246. D Convert layer relu47
  247. D Convert layer conv55
  248. D Convert layer conv56
  249. D Convert layer relu48
  250. D Convert layer conv57
  251. I Parsing connections ...
  252. D Connect: data_0,0 to output_244,0,
  253. D Connect: conv1_1,0 to batch_norm1_2,0
  254. D Connect: batch_norm1_2,0 to bn_scale1_3,0
  255. D Connect: bn_scale1_3,0 to relu1_4,0
  256. D Connect: relu1_4,0 to conv2_5,0
  257. D Connect: conv2_5,0 to batch_norm2_6,0
  258. D Connect: batch_norm2_6,0 to bn_scale2_7,0
  259. D Connect: bn_scale2_7,0 to relu2_8,0
  260. D Connect: relu2_8,0 to conv3_9,0
  261. D Connect: conv3_9,0 to batch_norm3_10,0
  262. D Connect: batch_norm3_10,0 to bn_scale3_11,0
  263. D Connect: bn_scale3_11,0 to relu3_12,0
  264. D Connect: relu3_12,0 to max_pool1_13,0
  265. D Connect: relu3_12,0 to conv5_17,0
  266. D Connect: max_pool1_13,0 to conv4_14,0
  267. D Connect: conv4_14,0 to batch_norm4_15,0
  268. D Connect: batch_norm4_15,0 to bn_scale4_16,0
  269. D Connect: bn_scale4_16,0 to add1_24,1
  270. D Connect: conv5_17,0 to batch_norm5_18,0
  271. D Connect: batch_norm5_18,0 to bn_scale5_19,0
  272. D Connect: bn_scale5_19,0 to relu4_20,0
  273. D Connect: relu4_20,0 to conv6_21,0
  274. D Connect: conv6_21,0 to batch_norm6_22,0
  275. D Connect: batch_norm6_22,0 to bn_scale6_23,0
  276. D Connect: bn_scale6_23,0 to add1_24,0
  277. D Connect: add1_24,0 to relu5_25,0
  278. D Connect: relu5_25,0 to conv7_26,0
  279. D Connect: relu5_25,0 to add2_33,1
  280. D Connect: relu5_25,0 to cat1_35,1
  281. D Connect: conv7_26,0 to batch_norm7_27,0
  282. D Connect: batch_norm7_27,0 to bn_scale7_28,0
  283. D Connect: bn_scale7_28,0 to relu6_29,0
  284. D Connect: relu6_29,0 to conv8_30,0
  285. D Connect: conv8_30,0 to batch_norm8_31,0
  286. D Connect: batch_norm8_31,0 to bn_scale8_32,0
  287. D Connect: bn_scale8_32,0 to add2_33,0
  288. D Connect: add2_33,0 to relu7_34,0
  289. D Connect: relu7_34,0 to cat1_35,0
  290. D Connect: cat1_35,0 to conv9_36,0
  291. D Connect: conv9_36,0 to batch_norm9_37,0
  292. D Connect: batch_norm9_37,0 to bn_scale9_38,0
  293. D Connect: bn_scale9_38,0 to relu8_39,0
  294. D Connect: relu8_39,0 to max_pool2_40,0
  295. D Connect: relu8_39,0 to max_pool3_44,0
  296. D Connect: relu8_39,0 to conv12_48,0
  297. D Connect: relu8_39,0 to cat10_220,0
  298. D Connect: max_pool2_40,0 to conv10_41,0
  299. D Connect: max_pool2_40,0 to cat3_89,2
  300. D Connect: conv10_41,0 to batch_norm10_42,0
  301. D Connect: batch_norm10_42,0 to bn_scale10_43,0
  302. D Connect: bn_scale10_43,0 to output_245,0,
  303. D Connect: max_pool3_44,0 to conv11_45,0
  304. D Connect: conv11_45,0 to batch_norm11_46,0
  305. D Connect: batch_norm11_46,0 to bn_scale11_47,0
  306. D Connect: bn_scale11_47,0 to add3_55,1
  307. D Connect: conv12_48,0 to batch_norm12_49,0
  308. D Connect: batch_norm12_49,0 to bn_scale12_50,0
  309. D Connect: bn_scale12_50,0 to relu9_51,0
  310. D Connect: relu9_51,0 to conv13_52,0
  311. D Connect: conv13_52,0 to batch_norm13_53,0
  312. D Connect: batch_norm13_53,0 to bn_scale13_54,0
  313. D Connect: bn_scale13_54,0 to add3_55,0
  314. D Connect: add3_55,0 to relu10_56,0
  315. D Connect: relu10_56,0 to conv14_57,0
  316. D Connect: relu10_56,0 to add4_64,1
  317. D Connect: relu10_56,0 to cat2_66,1
  318. D Connect: conv14_57,0 to batch_norm14_58,0
  319. D Connect: batch_norm14_58,0 to bn_scale14_59,0
  320. D Connect: bn_scale14_59,0 to relu11_60,0
  321. D Connect: relu11_60,0 to conv15_61,0
  322. D Connect: conv15_61,0 to batch_norm15_62,0
  323. D Connect: batch_norm15_62,0 to bn_scale15_63,0
  324. D Connect: bn_scale15_63,0 to add4_64,0
  325. D Connect: add4_64,0 to relu12_65,0
  326. D Connect: relu12_65,0 to cat2_66,0
  327. D Connect: cat2_66,0 to conv16_67,0
  328. D Connect: conv16_67,0 to batch_norm16_68,0
  329. D Connect: batch_norm16_68,0 to bn_scale16_69,0
  330. D Connect: bn_scale16_69,0 to relu13_70,0
  331. D Connect: relu13_70,0 to conv17_71,0
  332. D Connect: relu13_70,0 to add5_78,1
  333. D Connect: relu13_70,0 to cat3_89,3
  334. D Connect: conv17_71,0 to batch_norm17_72,0
  335. D Connect: batch_norm17_72,0 to bn_scale17_73,0
  336. D Connect: bn_scale17_73,0 to relu14_74,0
  337. D Connect: relu14_74,0 to conv18_75,0
  338. D Connect: conv18_75,0 to batch_norm18_76,0
  339. D Connect: batch_norm18_76,0 to bn_scale18_77,0
  340. D Connect: bn_scale18_77,0 to add5_78,0
  341. D Connect: add5_78,0 to relu15_79,0
  342. D Connect: relu15_79,0 to conv19_80,0
  343. D Connect: relu15_79,0 to add6_87,1
  344. D Connect: relu15_79,0 to cat3_89,1
  345. D Connect: conv19_80,0 to batch_norm19_81,0
  346. D Connect: batch_norm19_81,0 to bn_scale19_82,0
  347. D Connect: bn_scale19_82,0 to relu16_83,0
  348. D Connect: relu16_83,0 to conv20_84,0
  349. D Connect: conv20_84,0 to batch_norm20_85,0
  350. D Connect: batch_norm20_85,0 to bn_scale20_86,0
  351. D Connect: bn_scale20_86,0 to add6_87,0
  352. D Connect: add6_87,0 to relu17_88,0
  353. D Connect: relu17_88,0 to cat3_89,0
  354. D Connect: cat3_89,0 to conv21_90,0
  355. D Connect: conv21_90,0 to batch_norm21_91,0
  356. D Connect: batch_norm21_91,0 to bn_scale21_92,0
  357. D Connect: bn_scale21_92,0 to relu18_93,0
  358. D Connect: relu18_93,0 to max_pool4_94,0
  359. D Connect: relu18_93,0 to max_pool5_98,0
  360. D Connect: relu18_93,0 to conv24_102,0
  361. D Connect: relu18_93,0 to cat8_195,0
  362. D Connect: relu18_93,0 to conv46_205,0
  363. D Connect: max_pool4_94,0 to conv22_95,0
  364. D Connect: max_pool4_94,0 to cat5_143,2
  365. D Connect: conv22_95,0 to batch_norm22_96,0
  366. D Connect: batch_norm22_96,0 to bn_scale22_97,0
  367. D Connect: bn_scale22_97,0 to output_246,0,
  368. D Connect: max_pool5_98,0 to conv23_99,0
  369. D Connect: conv23_99,0 to batch_norm23_100,0
  370. D Connect: batch_norm23_100,0 to bn_scale23_101,0
  371. D Connect: bn_scale23_101,0 to add7_109,1
  372. D Connect: conv24_102,0 to batch_norm24_103,0
  373. D Connect: batch_norm24_103,0 to bn_scale24_104,0
  374. D Connect: bn_scale24_104,0 to relu19_105,0
  375. D Connect: relu19_105,0 to conv25_106,0
  376. D Connect: conv25_106,0 to batch_norm25_107,0
  377. D Connect: batch_norm25_107,0 to bn_scale25_108,0
  378. D Connect: bn_scale25_108,0 to add7_109,0
  379. D Connect: add7_109,0 to relu20_110,0
  380. D Connect: relu20_110,0 to conv26_111,0
  381. D Connect: relu20_110,0 to add8_118,1
  382. D Connect: relu20_110,0 to cat4_120,1
  383. D Connect: conv26_111,0 to batch_norm26_112,0
  384. D Connect: batch_norm26_112,0 to bn_scale26_113,0
  385. D Connect: bn_scale26_113,0 to relu21_114,0
  386. D Connect: relu21_114,0 to conv27_115,0
  387. D Connect: conv27_115,0 to batch_norm27_116,0
  388. D Connect: batch_norm27_116,0 to bn_scale27_117,0
  389. D Connect: bn_scale27_117,0 to add8_118,0
  390. D Connect: add8_118,0 to relu22_119,0
  391. D Connect: relu22_119,0 to cat4_120,0
  392. D Connect: cat4_120,0 to conv28_121,0
  393. D Connect: conv28_121,0 to batch_norm28_122,0
  394. D Connect: batch_norm28_122,0 to bn_scale28_123,0
  395. D Connect: bn_scale28_123,0 to relu23_124,0
  396. D Connect: relu23_124,0 to conv29_125,0
  397. D Connect: relu23_124,0 to add9_132,1
  398. D Connect: relu23_124,0 to cat5_143,3
  399. D Connect: conv29_125,0 to batch_norm29_126,0
  400. D Connect: batch_norm29_126,0 to bn_scale29_127,0
  401. D Connect: bn_scale29_127,0 to relu24_128,0
  402. D Connect: relu24_128,0 to conv30_129,0
  403. D Connect: conv30_129,0 to batch_norm30_130,0
  404. D Connect: batch_norm30_130,0 to bn_scale30_131,0
  405. D Connect: bn_scale30_131,0 to add9_132,0
  406. D Connect: add9_132,0 to relu25_133,0
  407. D Connect: relu25_133,0 to conv31_134,0
  408. D Connect: relu25_133,0 to add10_141,1
  409. D Connect: relu25_133,0 to cat5_143,1
  410. D Connect: conv31_134,0 to batch_norm31_135,0
  411. D Connect: batch_norm31_135,0 to bn_scale31_136,0
  412. D Connect: bn_scale31_136,0 to relu26_137,0
  413. D Connect: relu26_137,0 to conv32_138,0
  414. D Connect: conv32_138,0 to batch_norm32_139,0
  415. D Connect: batch_norm32_139,0 to bn_scale32_140,0
  416. D Connect: bn_scale32_140,0 to add10_141,0
  417. D Connect: add10_141,0 to relu27_142,0
  418. D Connect: relu27_142,0 to cat5_143,0
  419. D Connect: cat5_143,0 to conv33_144,0
  420. D Connect: conv33_144,0 to batch_norm33_145,0
  421. D Connect: batch_norm33_145,0 to bn_scale33_146,0
  422. D Connect: bn_scale33_146,0 to relu28_147,0
  423. D Connect: relu28_147,0 to max_pool6_148,0
  424. D Connect: relu28_147,0 to conv35_152,0
  425. D Connect: relu28_147,0 to cat7_180,0
  426. D Connect: relu28_147,0 to conv42_185,0
  427. D Connect: max_pool6_148,0 to conv34_149,0
  428. D Connect: max_pool6_148,0 to cat6_170,2
  429. D Connect: conv34_149,0 to batch_norm34_150,0
  430. D Connect: batch_norm34_150,0 to bn_scale34_151,0
  431. D Connect: bn_scale34_151,0 to add11_159,1
  432. D Connect: conv35_152,0 to batch_norm35_153,0
  433. D Connect: batch_norm35_153,0 to bn_scale35_154,0
  434. D Connect: bn_scale35_154,0 to relu29_155,0
  435. D Connect: relu29_155,0 to conv36_156,0
  436. D Connect: conv36_156,0 to batch_norm36_157,0
  437. D Connect: batch_norm36_157,0 to bn_scale36_158,0
  438. D Connect: bn_scale36_158,0 to add11_159,0
  439. D Connect: add11_159,0 to relu30_160,0
  440. D Connect: relu30_160,0 to conv37_161,0
  441. D Connect: relu30_160,0 to add12_168,1
  442. D Connect: relu30_160,0 to cat6_170,1
  443. D Connect: conv37_161,0 to batch_norm37_162,0
  444. D Connect: batch_norm37_162,0 to bn_scale37_163,0
  445. D Connect: bn_scale37_163,0 to relu31_164,0
  446. D Connect: relu31_164,0 to conv38_165,0
  447. D Connect: conv38_165,0 to batch_norm38_166,0
  448. D Connect: batch_norm38_166,0 to bn_scale38_167,0
  449. D Connect: bn_scale38_167,0 to add12_168,0
  450. D Connect: add12_168,0 to relu32_169,0
  451. D Connect: relu32_169,0 to cat6_170,0
  452. D Connect: cat6_170,0 to conv39_171,0
  453. D Connect: conv39_171,0 to batch_norm39_172,0
  454. D Connect: batch_norm39_172,0 to bn_scale39_173,0
  455. D Connect: bn_scale39_173,0 to relu33_174,0
  456. D Connect: relu33_174,0 to conv40_175,0
  457. D Connect: conv40_175,0 to batch_norm40_176,0
  458. D Connect: batch_norm40_176,0 to bn_scale40_177,0
  459. D Connect: bn_scale40_177,0 to relu34_178,0
  460. D Connect: relu34_178,0 to conv_transpose1_179,0
  461. D Connect: conv_transpose1_179,0 to cat7_180,1
  462. D Connect: cat7_180,0 to conv41_181,0
  463. D Connect: conv41_181,0 to batch_norm41_182,0
  464. D Connect: batch_norm41_182,0 to bn_scale41_183,0
  465. D Connect: bn_scale41_183,0 to relu35_184,0
  466. D Connect: relu35_184,0 to conv43_190,0
  467. D Connect: conv42_185,0 to batch_norm42_186,0
  468. D Connect: batch_norm42_186,0 to bn_scale42_187,0
  469. D Connect: bn_scale42_187,0 to relu36_188,0
  470. D Connect: relu36_188,0 to conv_transpose2_189,0
  471. D Connect: conv_transpose2_189,0 to cat8_195,1
  472. D Connect: conv43_190,0 to batch_norm43_191,0
  473. D Connect: batch_norm43_191,0 to bn_scale43_192,0
  474. D Connect: bn_scale43_192,0 to relu37_193,0
  475. D Connect: relu37_193,0 to conv_transpose3_194,0
  476. D Connect: conv_transpose3_194,0 to cat9_200,1
  477. D Connect: cat8_195,0 to conv44_196,0
  478. D Connect: conv44_196,0 to batch_norm44_197,0
  479. D Connect: batch_norm44_197,0 to bn_scale44_198,0
  480. D Connect: bn_scale44_198,0 to relu38_199,0
  481. D Connect: relu38_199,0 to cat9_200,0
  482. D Connect: relu38_199,0 to conv47_210,0
  483. D Connect: cat9_200,0 to conv45_201,0
  484. D Connect: conv45_201,0 to batch_norm45_202,0
  485. D Connect: batch_norm45_202,0 to bn_scale45_203,0
  486. D Connect: bn_scale45_203,0 to relu39_204,0
  487. D Connect: relu39_204,0 to conv48_215,0
  488. D Connect: conv46_205,0 to batch_norm46_206,0
  489. D Connect: batch_norm46_206,0 to bn_scale46_207,0
  490. D Connect: bn_scale46_207,0 to relu40_208,0
  491. D Connect: relu40_208,0 to conv_transpose4_209,0
  492. D Connect: conv_transpose4_209,0 to cat10_220,1
  493. D Connect: conv47_210,0 to batch_norm47_211,0
  494. D Connect: batch_norm47_211,0 to bn_scale47_212,0
  495. D Connect: bn_scale47_212,0 to relu41_213,0
  496. D Connect: relu41_213,0 to conv_transpose5_214,0
  497. D Connect: conv_transpose5_214,0 to cat11_225,1
  498. D Connect: conv48_215,0 to batch_norm48_216,0
  499. D Connect: batch_norm48_216,0 to bn_scale48_217,0
  500. D Connect: bn_scale48_217,0 to relu42_218,0
  501. D Connect: relu42_218,0 to conv_transpose6_219,0
  502. D Connect: conv_transpose6_219,0 to cat12_230,1
  503. D Connect: cat10_220,0 to conv49_221,0
  504. D Connect: conv49_221,0 to batch_norm49_222,0
  505. D Connect: batch_norm49_222,0 to bn_scale49_223,0
  506. D Connect: bn_scale49_223,0 to relu43_224,0
  507. D Connect: relu43_224,0 to cat11_225,0
  508. D Connect: cat11_225,0 to conv50_226,0
  509. D Connect: conv50_226,0 to batch_norm50_227,0
  510. D Connect: batch_norm50_227,0 to bn_scale50_228,0
  511. D Connect: bn_scale50_228,0 to relu44_229,0
  512. D Connect: relu44_229,0 to cat12_230,0
  513. D Connect: cat12_230,0 to conv51_231,0
  514. D Connect: conv51_231,0 to batch_norm51_232,0
  515. D Connect: batch_norm51_232,0 to bn_scale51_233,0
  516. D Connect: bn_scale51_233,0 to relu45_234,0
  517. D Connect: relu45_234,0 to conv52_235,0
  518. D Connect: relu45_234,0 to conv54_238,0
  519. D Connect: relu45_234,0 to conv56_241,0
  520. D Connect: conv52_235,0 to relu46_236,0
  521. D Connect: relu46_236,0 to conv53_237,0
  522. D Connect: conv53_237,0 to output_247,0,
  523. D Connect: conv54_238,0 to relu47_239,0
  524. D Connect: relu47_239,0 to conv55_240,0
  525. D Connect: conv55_240,0 to output_248,0,
  526. D Connect: conv56_241,0 to relu48_242,0
  527. D Connect: relu48_242,0 to conv57_243,0
  528. D Connect: conv57_243,0 to output_249,0,
  529. I Load net complete.
  530. D Process data_0 ...
  531. D RKNN output shape(input): (0 512 512 3)
  532. D Process output_244 ...
  533. D RKNN output shape(output): (0 512 512 3)
  534. D Process conv1_1 ...
  535. E Catch exception when loading caffe model: /home/lsc/CenterNet/CenterNet/models/ctdet_coco_dlav0_1x_2.prototxt!
  536. E Traceback (most recent call last):
  537. E   File "rknn/api/rknn_base.py", line 287, in rknn.api.rknn_base.RKNNBase.load_caffe
  538. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 281, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build
  539. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 300, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
  540. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 300, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
  541. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 300, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
  542. E   [Previous line repeated 35 more times]
  543. E   File "rknn/base/RKNNlib/RKNNnetbuilder.py", line 306, in rknn.base.RKNNlib.RKNNnetbuilder.RKNNNetBuilder.build_layer
  544. E   File "rknn/base/RKNNlib/layer/RKNNlayer.py", line 262, in rknn.base.RKNNlib.layer.RKNNlayer.RKNNLayer.compute_shape
  545. E   File "rknn/base/RKNNlib/layer/convolution.py", line 62, in rknn.base.RKNNlib.layer.convolution.Convolution.compute_out_shape
  546. E AttributeError: 'NoneType' object has no attribute 'format'
复制代码
回复

使用道具 举报

LSC

注册会员

积分
142
板凳
 楼主| 发表于 2019-12-19 13:29:33 | 只看该作者
哈哈,了解了下prototxt的结构自己解决啦,把input层的输出改成第一层的输入名称就好了,我晕
回复

使用道具 举报

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

本版积分规则

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


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