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

TypeError: 'int' object is not subscriptable #2

Closed
vink1994 opened this issue Dec 13, 2021 · 1 comment
Closed

TypeError: 'int' object is not subscriptable #2

vink1994 opened this issue Dec 13, 2021 · 1 comment

Comments

@vink1994
Copy link

File "D:\Initital_code\CSA-main\CSA-main\test.py", line 119, in
main(args)
File "D:\Initital_code\CSA-main\CSA-main\test.py", line 95, in main
test(datasets=['roxford5k', 'rparis6k'], name=args.test_name, net=model, topk=args.topk, device=device)
File "C:\ProgramData\Anaconda3\envs\pytorch\lib\site-packages\torch\autograd\grad_mode.py", line 28, in decorate_context
return func(*args, **kwargs)
File "D:\Initital_code\CSA-main\CSA-main\test.py", line 37, in test
vecs = torch.tensor(feature['db'])
TypeError: 'int' object is not subscriptable

@MCC-WH
Copy link
Owner

MCC-WH commented Dec 13, 2021

I have updated the test.py file and you can check it for details.

@MCC-WH MCC-WH closed this as completed Dec 13, 2021
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