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 (1014,) (2,) #138

Open
ccw122 opened this issue Apr 28, 2024 · 1 comment
Open

operands could not be broadcast together with shapes (1014,) (2,) #138

ccw122 opened this issue Apr 28, 2024 · 1 comment

Comments

@ccw122
Copy link

ccw122 commented Apr 28, 2024

Hi,Thank you for your good codes!
When I run Retrieval.py,i have finished a train stage and start to Calculating Results,i meet the question:
File "/root/ccw/Retrieval.py", line 324,in evaluate
copes = np.where(inds == txt2img[index])[0]
ValueError: operands could not be broadcast together with shapes (1014,)(2,)
Would you tell me the reason?

@ccw122
Copy link
Author

ccw122 commented Apr 28, 2024

i run Retrieval.py with batch_size_train: 16 and batch_size_test: 32 in Retrieval_flickr.yaml. if it has some influences?

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