mirror of
https://github.com/JDAI-CV/fast-reid.git
synced 2025-06-03 14:50:47 +08:00
Update dsr_distance.py
This commit is contained in:
parent
f8d468647c
commit
115de22532
@ -39,5 +39,6 @@ def compute_dsr_dist(array1, array2, distmat, scores, topk=30):
|
||||
dist[i, index[i, j]] = (min_value * score).sum()
|
||||
dist = dist.cpu()
|
||||
dist = dist.numpy()
|
||||
dist = 0.98 * dist + 0.02 * distmat
|
||||
|
||||
return dist
|
||||
|
Loading…
x
Reference in New Issue
Block a user