Skip to content

parse_darknet_yolo2.py #8

@gengmujian10

Description

@gengmujian10

INFO:tensorflow:yolo2_darknet/conv20/BatchNorm/moving_variance: [1024]=1024
<class 'numpy.int32'>
INFO:tensorflow:yolo2_darknet/conv20/weights: [3, 3, 3072, 1024]=28311552
<class 'numpy.int32'>
Traceback (most recent call last):
File "parse_darknet_yolo2.py", line 137, in
main()
File "parse_darknet_yolo2.py", line 94, in main
p = struct.unpack('%df' % cnt, f.read(4 * cnt))
struct.error: unpack requires a bytes object of length 113246208

I print the value of(4*cnt). It actually equals to 113246208, and the type of cnt is int32.
And I do not know how to solve this problem.....
Could anyone tell me about it ?
Thank you !

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