Created
November 5, 2021 14:20
-
-
Save seanbenhur/eadf72bff0aa8d298cd0cd09bb78a835 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i, data in enumerate(test_dataloader, 0): | |
x0, x1 = data | |
concat = torch.cat((x0, x1), 0) | |
output1, output2 = model(x0.to(device), x1.to(device)) | |
eucledian_distance = F.pairwise_distance(output1, output2) | |
if label == torch.FloatTensor([[0]]): | |
label = "Original Pair Of Signature" | |
else: | |
label = "Forged Pair Of Signature" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment