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

Testing returns all cases matching with batch size one #3

Closed
Sumes opened this issue Sep 18, 2018 · 2 comments
Closed

Testing returns all cases matching with batch size one #3

Sumes opened this issue Sep 18, 2018 · 2 comments

Comments

@Sumes
Copy link

Sumes commented Sep 18, 2018

In all the case we are taking L1 distance of siamese fc outputs which leads to negative values. When taking sigmoid on this it always gives 0. eventually leading all values predicted correctly

@fangpin
Copy link
Owner

fangpin commented Sep 27, 2018

@Sumes

In all the case we are taking L1 distance of siamese fc outputs which leads to negative values. When taking sigmoid on this it always gives 0. eventually leading all values predicted correctly

What do you mean? There is no negative value since I use absolute L1 distance. See model.py

dis = torch.abs(out1 - out2)

@fangpin fangpin closed this as completed Oct 27, 2018
@Sumes
Copy link
Author

Sumes commented Nov 14, 2018 via email

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