I am trying to estimate pairwise distances between features for a dataset of ~300,000 images to a subset of the data for computing their minimums. However, the computed distance