About gt distance using faiss
HospitableHost opened this issue · 8 comments
Hi, I have tried to get gt distance of AMASS‘s plausible poses using faiss, but found that some plausible poses' gt distance were not 0. Obviously, they should be. For example, for some poses from SSM_synced, the gt distance using faiss is shown in the screenshot below.
So, is it necessary to use faiss search for AMASS‘s ’plausible poses? Can I directly assign gt distance of AMASS‘s ’plausible poses to 0?
For AMASS you should directly use 0 as the distance.
For a sample pose for SSM_synced distance is not 0, because SSM_synced is not part of training set.
Are you using the complete code to get this distance or this is just with faiss??
Note that we use faiss to get approximate distance and then we calculate geodesic distance based on the 500 nearest neighbour we get using faiss.
For AMASS you should directly use 0 as the distance. For a sample pose for SSM_synced distance is not 0, because SSM_synced is not part of training set.
Are you using the complete code to get this distance or this is just with faiss?? Note that we use faiss to get approximate distance and then we calculate geodesic distance based on the 500 nearest neighbour we get using faiss.
Hi, thank you for your reply!
I got your point. The training set is the zero level. Though the poses from SSM_synced are all plausible, their distance also should be calculated by faiss and knn. But the distance result seems unreasonable.
I use the complete code to get this distance(including faiss, knn and geodesic distance).
Hi, Yes the poses from SSM_synced are plausible, but since they are not part of the training data, the distance will not be zero. Instead you should get some non-zero small distance.
Can you share the exact poses, you are using here?
Hi, thanks for sharing this plot. I have some questions
- Are you using AMASS training for finding distance?
- What is x-axis in the plot ?
Hi, thanks for sharing this plot. I have some questions
- Are you using AMASS training for finding distance?
- What is x-axis in the plot ?
Yes, I only use AMASS training set for finging the distance.
The x-asis refers to npz file name, which has no specific meaning.
Hi, Yes the poses from SSM_synced are plausible, but since they are not part of the training data, the distance will not be zero. Instead you should get some non-zero small distance. Can you share the exact poses, you are using here?
Hi, I fixed this bug. It's caused by a bug in sample_poses.py, which is showed in the screenshot below.
The original version of the code will lead to poses redundancy. As a result, the data is redundant from 1.2GB to 33GB. And thus, faiss will not be so accurate when performing similarity searches
Hi, thanks for noticing this. We had already corrected this here :
1dc1466#diff-bd55344acf61c76e853ff870efd9eb190466da0913cc3ee52bfff911ed78a1d4