You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/usr/local/bin/convert-darknet-weights", line 8, in <module>
sys.exit(convert_darknet_weights())
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/tf2_yolov4/tools/convert_darknet_weights.py", line 103, in convert_darknet_weights
.reshape((filters, input_filters, kernel_size[0], kernel_size[1]))
ValueError: cannot reshape array of size 687 into shape (32,3,3,3)
ls: cannot access './yolov4.h5': No such file or directory
I confirmed yolov4.weights was downloaded successfully. Clearly 'reshape array of size 687 into shape (32,3,3,3)' is not going to succeed
The text was updated successfully, but these errors were encountered:
Hi @AntoineToubhans
reran the notebook just now and completed fine this time. I guess it was a corrupted download.
Thanks and keep up the great work.
Cheers
Hello, the problem is with the wget command, I download it always incomplete (just 3 KB) so maybe better to download it directly from google or with wget -P --no-check-certificate --no-proxy <url>
In colab notebook
YoloV4_Dectection_Example.ipynb
, at the cell:I hit error:
I confirmed
yolov4.weights
was downloaded successfully. Clearly 'reshape array of size 687 into shape (32,3,3,3)' is not going to succeedThe text was updated successfully, but these errors were encountered: