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

Demo.py showing error after weight file conversion #27

Open
sadiqamin opened this issue Oct 2, 2020 · 1 comment
Open

Demo.py showing error after weight file conversion #27

sadiqamin opened this issue Oct 2, 2020 · 1 comment

Comments

@sadiqamin
Copy link

Hello i changed my custom trained weight file inti .h5 file and then run the python demo.py - i get this error. anybody having any idea about this ?

InvalidArgumentError (see above for traceback): Input to reshape is a tensor with 81120 values, but the requested shape requires a multiple of 689520
[[node Reshape_15 (defined at /home/tubo/anaconda3/envs/yolo/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py:2440) ]]
[[node boolean_mask_147/GatherV2 (defined at /home/tubo/YOLOv4/tensorflow2.0/deep-sort-yolov4/yolo4/model.py:279) ]]

@sadiqamin
Copy link
Author

After this issue i changed the line self.yolo4_model = yolo4_body(Input(shape=(608, 608, 3)), num_anchors//3, 5)#num_classes) to this and i got new error.

ValueError: Cannot feed value of shape (1, 416, 416, 3) for Tensor 'input_1:0', which has shape '(?, 608, 608, 3)'

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

1 participant