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

operands could not be broadcast together with shapes (1560224,) (1489274,) #75

Open
mansooreh1 opened this issue Aug 24, 2022 · 2 comments

Comments

@mansooreh1
Copy link

Hello
when I run "python ./-Results/Generate_detection.py --model <your test output directory, under ./-Results by default>"
I get the following error:
ValueError: operands could not be broadcast together with shapes (1560224,) (1489274,)
This error is related to line 62 that is:
mask = inter_det_mask * nis_mask
please help

@Foruck
Copy link
Collaborator

Foruck commented Aug 31, 2022

It is because the inter_det_mask and nis_mask are using different detections. If you are using customized object detection result, you might need to also generate a customized NIS file (to provide the nis_mask), or you could also drop the nis_mask term though considerable performance drop might be observed.

@mansooreh1
Copy link
Author

Hello
When I removed the nis_mask, the performance decreased greatly. I used the object detection that you used, I don't know why the sizes are different. How can I generate a customized NIS file?

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

2 participants