Dear Khadas Team,
I use “aml_npu_sdk_6.4.0.10” to transform yolo model. When using “0_import_model.sh” to import yolo4-tiny model, the following error message appears.
Please help me to solve the issue. Thanks a lot.
~/aml_npu_sdk_6.4.0.10/acuity-toolkit/conversion_scripts$ ./0_import_model.sh
WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
- https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md
-
https://github.com/tensorflow/addons
If you depend on functionality not listed there, please file an issue.
/home/allanwang/aml_npu_sdk_6.4.0.10/acuity-toolkit/bin/acuitylib/onnx_tf/common/init.py:87: UserWarning: FrontendHandler.get_outputs_names is deprecated. It will be removed in future release… Use node.outputs instead.
warnings.warn(message)
I Start importing darknet…
I Convert -1 net
I Convert 0 convolutional
I Convert 1 convolutional
I Convert 2 convolutional
I Convert 3 route
I Convert 4 convolutional
I Convert 5 convolutional
I Convert 6 route
I Convert 7 convolutional
I Convert 8 route
I Convert 9 maxpool
I Convert 10 convolutional
I Convert 11 route
I Convert 12 convolutional
I Convert 13 convolutional
I Convert 14 route
I Convert 15 convolutional
I Convert 16 route
I Convert 17 maxpool
I Convert 18 convolutional
I Convert 19 route
I Convert 20 convolutional
I Convert 21 convolutional
I Convert 22 route
I Convert 23 convolutional
I Convert 24 route
I Convert 25 maxpool
I Convert 26 convolutional
I Convert 27 convolutional
I Convert 28 convolutional
I Convert 29 convolutional
I Convert 30 yolo
I Convert 31 route
I Convert 32 convolutional
I Convert 33 upsample
I Convert 34 route
I Convert 35 convolutional
Traceback (most recent call last):
File “convertdarknet.py”, line 34, in
File “convertdarknet.py”, line 27, in main
File “acuitylib/vsi_nn.py”, line 130, in load_darknet
File “acuitylib/converter/convert_darknet.py”, line 517, in converte
File “acuitylib/converter/convert_darknet.py”, line 583, in build_graph
File “acuitylib/converter/convert_darknet.py”, line 418, in assign
File “numpy/core/fromnumeric.py”, line 292, in reshape
File “numpy/core/fromnumeric.py”, line 56, in _wrapfunc
ValueError: cannot reshape array of size 756735 into shape (256,384,3,3)
[4079] Failed to execute script convertdarknet
(Download yolov4-tiny.cfg & yolov4-tiny.weights to test)
https://raw.githubusercontent.com/AlexeyAB/darknet/master/cfg/yolov4-tiny.cfg
https://github.com/AlexeyAB/darknet/releases/download/darknet_yolo_v4_pre/yolov4-tiny.weights