aboutsummaryrefslogtreecommitdiff
path: root/evaluate.py
diff options
context:
space:
mode:
authornunzip <np.scarh@gmail.com>2018-12-12 19:02:42 +0000
committernunzip <np.scarh@gmail.com>2018-12-12 19:02:42 +0000
commit4a287d8af1bf67c96b2116a4614272769c69cc43 (patch)
tree0a8c219ac5df1f4b14b6408fad61215fce6d33ae /evaluate.py
parentd8b633d900cacb2582e54aa3b9c772a5b95b2e87 (diff)
downloadvz215_np1915-4a287d8af1bf67c96b2116a4614272769c69cc43.tar.gz
vz215_np1915-4a287d8af1bf67c96b2116a4614272769c69cc43.tar.bz2
vz215_np1915-4a287d8af1bf67c96b2116a4614272769c69cc43.zip
Rewrite some paper
Diffstat (limited to 'evaluate.py')
-rwxr-xr-xevaluate.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/evaluate.py b/evaluate.py
index 4c1264e..0f8fe48 100755
--- a/evaluate.py
+++ b/evaluate.py
@@ -158,10 +158,8 @@ def test_model(gallery_data, probe_data, gallery_label, probe_label, gallery_cam
for i in range(probe_label.shape[0]):
for j in range(11):
max_level_precision[i][j] = np.max(precision[i][np.where(recall[i]>=(j/10))])
- #print(mAP[i])
for i in range(probe_label.shape[0]):
mAP[i] = sum(max_level_precision[i])/11
- #mAP[i] = sum(precision[i])/args.neighbors
print('mAP:',np.mean(mAP))
return target_pred