Closed haemi closed 5 years ago
Are you using Python 2?
no, python 3, like the command in the readme says:
python3 yad2k.py -p ../tiny-yolo-voc.cfg ../tiny-yolo-voc.weights model_data/tiny-yolo-voc.h5
I suggest using the latest version of YAD2K (it's on GitHub somewhere). I only included it in this repo because coremltools needed Keras 1.x at the time.
with that, I get
Traceback (most recent call last):
File "./yad2k.py", line 270, in <module>
_main(parser.parse_args())
File "./yad2k.py", line 156, in _main
buffer=weights_file.read(weights_size * 4))
TypeError: buffer is too small for requested array
:(
Ah, the fun of converting between different deep learning packages that are constantly changing... ;-)
Unfortunately, I don't have time right now to investigate this -- and the script works for the weights that come with this repo, just not for custom models, apparently.
when converting my weights file to h5, I get the following:
When using the downloaded weights-file it works as all the weights are read:
What am I doing wrong?