yxgeee / FD-GAN

[NeurIPS-2018] FD-GAN: Pose-guided Feature Distilling GAN for Robust Person Re-identification.
https://yxgeee.github.io/projects/fdgan.html
281 stars 80 forks source link

which distance measure is used? #37

Closed MuadDev closed 4 years ago

MuadDev commented 4 years ago

What is the used distance measure for measuring the distance between the features? Is it euclidean? Because if I use scipy to calculate these distances instead I get very different values.

yxgeee commented 4 years ago

The function of measuring feature distance referring to: https://github.com/yxgeee/FD-GAN/blob/master/reid/evaluators.py#L76

Actually, it is L2-distance, which is the square of Euclidean distance.