Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
OctaM opened this issue Oct 7, 2019 · 5 comments
Open

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

OctaM opened this issue Oct 7, 2019 · 5 comments

Comments

@OctaM
Copy link

OctaM commented Oct 7, 2019

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
Copy link

Hi, did you solved this problem ?

@Jacobsolawetz
Copy link

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

@hutgun11
Copy link

hutgun11 commented Aug 6, 2020

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

@hutgun11
Copy link

hutgun11 commented Aug 6, 2020

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

@ic-gcp
Copy link

ic-gcp commented May 24, 2021

@hutgun11 did u manage to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants