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

Gettting eror while running main_test.py. #4 #28

Open
m22aie221 opened this issue Oct 31, 2023 · 0 comments
Open

Gettting eror while running main_test.py. #4 #28

m22aie221 opened this issue Oct 31, 2023 · 0 comments

Comments

@m22aie221
Copy link

We are trying to recreate your execellent work.

We are using facenet = torch.load('../Model/InceptionResNetV1_ArcFace.pt') from the shared gDrive
we are getting error in the line distance = torch.norm(eval_out - eval_pait_out, dim=1)
can you please help in getting over this issue ?


(model-training) C:\Users\ranji\AML-ReferenceCode\Masked_Face_Recognition\Code>python ./main_test.py
Device: cpu
0%| | 0/456 [00:22<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\ranji\AML-ReferenceCode\Masked_Face_Recognition\Code\main_test.py", line 72, in
dist_threshold = evalulate(facenet, eval_loader1, eval_loader2, device)
File "C:\Users\ranji\AML-ReferenceCode\Masked_Face_Recognition\Code\test.py", line 56, in evalulate
dist1 = result(model,eval_loader1, device)
File "C:\Users\ranji\AML-ReferenceCode\Masked_Face_Recognition\Code\test.py", line 42, in result
distance = torch.norm(eval_out - eval_pait_out, dim=1)
TypeError: unsupported operand type(s) for -: 'dict' and 'dict'

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