fast-reid icon indicating copy to clipboard operation
fast-reid copied to clipboard

No normalization in demo/visualize_result.py

Open jsheo96 opened this issue 1 year ago • 4 comments

In demo/visualie_result.py file there is following code snippet at line 125~126

 # compute cosine distance
    distmat = 1 - torch.mm(q_feat, g_feat.t())

I think there should be a nomalization before torch.mm like "postprocess" function in demo/demo.py

The resulting jpg outputs also show the similarities over 1, which is weird behavior.

jsheo96 avatar Jul 31 '24 01:07 jsheo96