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

Why do you flip the data in evaluation? #33

Open
vinits5 opened this issue Mar 22, 2024 · 1 comment
Open

Why do you flip the data in evaluation? #33

vinits5 opened this issue Mar 22, 2024 · 1 comment

Comments

@vinits5
Copy link

vinits5 commented Mar 22, 2024

Hey @ydwen, Thanks for such an amazing work of SimPLE: Pairwise Similarity Learning and sharing the code for further research. It will be great if you help me understand below function and it's use.

Below function is used in validation step as well as in the main_inference.py file. Can you please explain following points?

  1. Why are you flipping the data about axis [3]? (Data shape is BxCxHxW. So, the data will be flipped about the last axis which is width)
  2. What is the intention behind concatenating feats and feats_flip? This creates a significant gap in the process of training and testing.

image

@Hzzone
Copy link

Hzzone commented Apr 15, 2024

You should search test time data augmentation.
Test-time flip is a common trick used in face recognition to improve performance.

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