Closed zgq91 closed 4 years ago
Hi, @zgq91 I've reproduced this problem and I'll try to solve it.
Hi, @zgq91 I have fixed it .Please git clone and try again. And let me know if it works! if you want to use 640*480 remember to change this line https://github.com/TNTWEN/OpenVINO-YOLOV4/blob/ab8b6454e3f59044095ba8914c5c36e09360ba08/convert_weights_pb.py#L38
to inputs = tf.placeholder(tf.float32, [None, 640, 480, 3], "inputs")
Thanks for your trying!
change the yolo_v4.py file " if data_format == 'NCHW': new_height = out_shape[2] new_width = out_shape[3]
#new_width = out_shape[2]
else:
new_height = out_shape[1]
new_width = out_shape[2]
#new_height = out_shape[2]
#new_width = out_shape[1]" to work
Hi: When the image width and height are not equal, for example 640*480 "ValueError: Dimension 1 in both shapes must be equal, but are 40 and 30. Shapes are [?,40,30] and [?,30,40]"