You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if not self.training:
a, b = feat.chunk(2)
return a + b
else:
return self.loss(feat, t, partial_index)
how can it be used for testing or validation dataset?
The text was updated successfully, but these errors were encountered:
have u handle with this problem.I write some code to test for facial recognization but seem not work.
def compare(f1, f2):
return torch.cosine_similarity(f1, f2)
if not self.training:
a, b = feat.chunk(2)
return a + b
else:
return self.loss(feat, t, partial_index)
how can it be used for testing or validation dataset?
The text was updated successfully, but these errors were encountered: