|
Hello,
I encountered a problem while trying to convert yolov4 tiny to rknn model, using your visualization rknn tool.
https://raw.githubusercontent.co ... cfg/yolov4-tiny.cfg
https://github.com/AlexeyAB/dark ... yolov4-tiny.weights
E Catch exception when loading darknet model: /home/kadir/Desktop/rknn-toolkit-v1.3.0/yolov4-tiny.cfg!
E Traceback (most recent call last):
E File "rknn/api/rknn_base.py", line 555, in rknn.api.rknn_base.RKNNBase.load_darknet
E File "rknn/base/RKNNlib/converter/convert_darknet.py", line 685, in rknn.base.RKNNlib.converter.convert_darknet.Converter.load_blobs
E File "rknn/base/RKNNlib/converter/convert_darknet.py", line 403, in rknn.base.RKNNlib.converter.convert_darknet.Convolution_Blob_Assign.assign
E File "/home/kadir/anaconda3/envs/rknn/lib/python3.6/site-packages/numpy/core/fromnumeric.py", line 292, in reshape
E return _wrapfunc(a, 'reshape', newshape, order=order)
E File "/home/kadir/anaconda3/envs/rknn/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 756735 into shape (256,384,3,3)
--> Load darknet model failed!
After some through searching and trials, I came to the conclusion that this error occurs when I try to convert a darknet model that has groups, group id parameters in them. Such as this from yolov4 tiny:
[route]
layers=-1
groups=2
group_id=1
What do you suggest to solve this issue?
Last time I asked help here, you guys told me that you will contact npu team about it, and I didn't hear anything else on the matter.
So please give a more solid response this me.
|
|