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

Thanks for earlier changes, I have been getting this error in test file, kindly look into it. Thanks #5

Closed
vink1994 opened this issue Jan 28, 2022 · 1 comment

Comments

@vink1994
Copy link

File "D:\Initital_code\CSA-main\CSA-main\test.py", line 121, in
main(args)
File "D:\Initital_code\CSA-main\CSA-main\test.py", line 97, in main
test(datasets=['roxford5k', 'rparis6k'], name=args.test_name, net=model, topk=args.topk, anchor_len=args.anchor_len, 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']).float()
TypeError: 'int' object is not subscriptable
Press any key to continue . . .

@cvbird
Copy link

cvbird commented Feb 1, 2022

File "D:\Initital_code\CSA-main\CSA-main\test.py", line 121, in main(args) File "D:\Initital_code\CSA-main\CSA-main\test.py", line 97, in main test(datasets=['roxford5k', 'rparis6k'], name=args.test_name, net=model, topk=args.topk, anchor_len=args.anchor_len, 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']).float() TypeError: 'int' object is not subscriptable Press any key to continue . . .

Hi, have you trained this project successfully? I am curious about generate_topk in ImageFromList.py
#6

@MCC-WH MCC-WH closed this as completed Feb 1, 2022
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

3 participants