diff options
-rwxr-xr-x | part2.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -97,8 +97,10 @@ def test_model(gallery_data, probe_data, gallery_label, probe_label, gallery_cam nneighbors = np.zeros((ranklist.shape[0],nsize)) nnshowrank = (np.zeros((ranklist.shape[0],nsize))).astype(object) + for i in range(args.multrank): - args.neighbors = test_table[i] + if args.multrank!= 1: + args.neighbors = test_table[i] for probe_idx in range(probe_data.shape[0]): row = ranklist[probe_idx] n = 0 |