diff options
-rwxr-xr-x | evaluate.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/evaluate.py b/evaluate.py index e8468a2..38b20bb 100755 --- a/evaluate.py +++ b/evaluate.py @@ -84,7 +84,7 @@ def test_model(gallery_data, probe_data, gallery_label, probe_label, gallery_cam else: if args.mahalanobis: # metric = 'jaccard' is also valid - cov_inv = np.linalg.inv(np.cov(gallery_data.T)) + cov_inv = np.linalg.inv(np.cov(gallery_data.T)).T distances = cdist(probe_data, gallery_data, 'mahalanobis', VI=cov_inv) else: distances = cdist(probe_data, gallery_data, 'euclidean') |