Skip to content

TypeError: buffer is too small for requested array #99

@XiangZhang2

Description

@XiangZhang2

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions