mirror of https://github.com/JDAI-CV/fast-reid.git
Merge 8ed0b0b97f
into c9bc3ceb2f
commit
c848eb0004
|
@ -124,7 +124,7 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
# compute cosine distance
|
# compute cosine distance
|
||||||
distmat = 1 - torch.mm(q_feat, g_feat.t())
|
distmat = 1 - torch.mm(q_feat, g_feat.t())
|
||||||
distmat = distmat.numpy()
|
distmat = distmat.cpu().numpy()
|
||||||
|
|
||||||
logger.info("Computing APs for all query images ...")
|
logger.info("Computing APs for all query images ...")
|
||||||
cmc, all_ap, all_inp = evaluate_rank(distmat, q_pids, g_pids, q_camids, g_camids)
|
cmc, all_ap, all_inp = evaluate_rank(distmat, q_pids, g_pids, q_camids, g_camids)
|
||||||
|
|
Loading…
Reference in New Issue