Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: buffer is too small for requested array #99

Open
XiangZhang2 opened this issue Apr 22, 2021 · 2 comments
Open

TypeError: buffer is too small for requested array #99

XiangZhang2 opened this issue Apr 22, 2021 · 2 comments

Comments

@XiangZhang2
Copy link

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
Copy link

I am having exactly the same isssue

@Liuzirui666
Copy link

Anyone got a solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants