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
@prakharcode used your changed file as well, but it says (buffer is too small for requested array) for last two layers (conv_20 and yolo_1). i'm actually trying to convert YOLO v4-tiny .weights file into .h5 format so that i can access those weights and reuse them in my own code in c++. i've tried all convert.py files and yad2k.py files on internet but same issue. the cfg and weights file works fine itself when read from cv.dnn.readfromdarkent("cfg path", "weights path") but i need to acess weights as floating point values arrays and always stuck on last two layers, can you plzz help me in this case, i'd be grateful to you. i've attached my cfg file and weights file along with some convert files i tried but each time ended up having the same issue. yolov4-tiny.zip
i use ‘python yad2k.py yolov3-tiny.cfg yolov3-tiny.weights model_data/yolov3-tiny.h5’ .But Throw an exception:
Parsing section yolo_0
Traceback (most recent call last):
File "yad2k.py", line 270, in
_main(parser.parse_args())
File "yad2k.py", line 249, in _main
'Unsupported section header type: {}'.format(section))
ValueError: Unsupported section header type: yolo_0
The text was updated successfully, but these errors were encountered: