vanko 发表于 2021-4-5 04:06:15

关于跑官方yolov3的demo的问题

求助各位大佬,我在跑官方给的darknet yolov3的的模式后报了以下的错误,不知道该咋办。我的tensorflow是1.14.0,scipy是1.6.0, rknn是1.4.0


E Catch exception when loading darknet model: ./yolov3.cfg!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 601, in rknn.api.rknn_base.RKNNBase.load_darknet
E   File "rknn/base/RKNNlib/converter/convert_darknet.py", line 741, in rknn.base.RKNNlib.converter.convert_darknet.Converter.load_blobs
E MemoryError
load caffe model failed!

zehao 发表于 2021-6-21 14:31:12

你这个用的darknet load,为什么最后会报错caffe failed呢

jjcz 发表于 2021-11-18 10:39:31

我的也是这样的报错。请问你解决了吗?
yolov3.weight exist.
--> Loading model
E Catch exception when loading darknet model: ./yolov3.cfg!
E Traceback (most recent call last):
E   File "rknn/api/rknn_base.py", line 601, in rknn.api.rknn_base.RKNNBase.load_darknet
E   File "rknn/base/RKNNlib/converter/convert_darknet.py", line 754, in rknn.base.RKNNlib.converter.convert_darknet.Converter.load_blobs
E   File "rknn/base/RKNNlib/converter/convert_darknet.py", line 452, in rknn.base.RKNNlib.converter.convert_darknet.Convolution_Blob_Assign.assign
E   File "/home/wenjing/venv/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 292, in reshape
E   return _wrapfunc(a, 'reshape', newshape, order=order)
E   File "/home/wenjing/venv/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 56, in _wrapfunc
E   return getattr(obj, method)(*args, **kwds)
E ValueError: cannot reshape array of size 897435 into shape (512,256,3,3)
load caffe model failed!
页: [1]
查看完整版本: 关于跑官方yolov3的demo的问题