mystic123 / tensorflow-yolo-v3

Implementation of YOLO v3 object detector in Tensorflow (TF-Slim)
https://medium.com/@pawekapica_31302/implementing-yolo-v3-in-tensorflow-tf-slim-c3c55ff59dbe
Apache License 2.0
893 stars 353 forks source link

cannot reshape array of size 4275965 into shape (1024,512,3,3) #87

Open OctaM opened 4 years ago

OctaM commented 4 years ago

Hello, I'm trying to convert yolov3 trained on 20 classes. I have checked my .names file in order to remove any newlines at the end of the file, but I still got the same error.

In my .cfg file the input size is 416x416, as it is in the convert_weights_pb.py.

I still have no idea why this happens and I already tried everything from the other answers.

dsienkiewicz-lab4motion commented 4 years ago

Hi, did you solved this problem ?

Jacobsolawetz commented 4 years ago

@OctaM @dsienkiewicz-lab4motion have you solved this problem?

hutgun11 commented 4 years ago

ValueError: cannot reshape array of size 232304 into shape (512,256,3,3) In .cfg file my input is 608x608

hutgun11 commented 4 years ago

python convert_weights_pb.py --class_names objects.names --data_format NHWC --weights_file ylv3-c11_400000.weights --size 608

ic-gcp commented 3 years ago

@hutgun11 did u manage to solve this?