xiaochus / YOLOv3

Keras implementation of yolo v3 object detection.
MIT License
605 stars 264 forks source link

TypeError: buffer is too small for requested array #3

Closed xiaosuzhang closed 6 years ago

xiaosuzhang commented 6 years ago

When i convert my own trained yolov3.weights to .h5, the error will shown as follows: Traceback (most recent call last): File "yad2k.py", line 275, in _main(parser.parse_args()) File "yad2k.py", line 151, in _main buffer=weights_file.read(weights_size * 4)) TypeError: buffer is too small for requested array

How to solve this problem Thanks!

xiaochus commented 6 years ago

@xiaosuzhang The conversion program is based on the cfg file provided by the author. If your network structure is different from the original, you should use your own cfg file.