tensorflow-yolov3 icon indicating copy to clipboard operation
tensorflow-yolov3 copied to clipboard

cannot reshape array of size 134277 into shape (256,128,3,3)

Open akarshsoman opened this issue 4 years ago • 6 comments

raceback (most recent call last): File "from_darknet_weights_to_pb.py", line 3, in from from_darknet_weights_to_ckpt import load_weights File "/home/tl/tensorflow-yolov3/from_darknet_weights_to_ckpt.py", line 69, in load_ops = load_weights(tf.global_variables(), darknet_weights) File "/home/tl/tensorflow-yolov3/from_darknet_weights_to_ckpt.py", line 56, in load_weights (shape[3], shape[2], shape[0], shape[1])) ValueError: cannot reshape array of size 134277 into shape (256,128,3,3)

this is the error i get when i try to convert yolo darknet weights to pb file. please could some one suggest whats wrong

akarshsoman avatar Dec 17 '19 13:12 akarshsoman

+1

CharonMing avatar Dec 20 '19 06:12 CharonMing

Whats your tf version?

tangvis avatar Dec 21 '19 06:12 tangvis

tensorflow-gpu 1.14

Whats your tf version?

akarshsoman avatar Dec 23 '19 08:12 akarshsoman

Is there any solution?

ebegen avatar May 12 '20 06:05 ebegen

+1

lavender37 avatar Nov 13 '20 11:11 lavender37

+1

wycrystal avatar May 12 '21 08:05 wycrystal