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
Thank you for providing the coding and implementation for density and coverage. It is awesome to have the code ready for use in practice. I cite the paper whenever possible.
I took the liberty to research possible improvements. I found that using an exact similarity search as offered by faiss can speed up the calculation of density and coverage by a great deal.
Here are my results for num_real_samples = num_fake_samples = 1024, feature_dim = 12, nearest_k = 5:
Thank you for your interest in the paper and the awesome suggestion!
As you worry, though, I would be careful with changes that would require heavier dependencies and significantly longer installation time (not sure how much longer though). Moreover, I think a good evaluation code should not depend too much on external libraries, for the sake of constancy.
I understand that the current naive implementation of NN search is not fully efficient, but do you think it is an important bottleneck in your (or any potential) application scenario?
Thank you for providing the coding and implementation for density and coverage. It is awesome to have the code ready for use in practice. I cite the paper whenever possible.
I took the liberty to research possible improvements. I found that using an exact similarity search as offered by
faiss
can speed up the calculation of density and coverage by a great deal.Here are my results for
num_real_samples = num_fake_samples = 1024
,feature_dim = 12
,nearest_k = 5
:I tagged, any algorithm using
faiss
withtest_bench_my
. Using a similarity tree approach, this linein the original code is accelerated big time due to the efficient lookup of samples with the tree structure.
As such a change would drag in a dependency to
faiss
, I am reluctant to send a PR to this repo. Let me know what you think!The text was updated successfully, but these errors were encountered: