yehengchen / Object-Detection-and-Tracking

Object Detection and Multi-Object Tracking
MIT License
1.82k stars 753 forks source link

TypeError: buffer is too small for requested array #99

Open XiangZhang2 opened 3 years ago

XiangZhang2 commented 3 years ago

Hi there I need some help. Before explaining problem I share some information about my environment. OS: mac os Python: 3.8 Tensorflow: 2.4.0 Keras: 2.4.3

When I use the convert.py to convert the darknet weights to yolo h5 , I get the following error:

「TypeError: buffer is too small for requested array」

error code:

conv_weights = np.ndarray(shape=darknet_w_shape,dtype='float32',buffer=weights_file.read(weights_size * 4))

I'm not sure what caused it, but did anyone make the switch?

minhna1112 commented 3 years ago

I am having exactly the same isssue

Liuzirui666 commented 2 years ago

Anyone got a solution?