e9d5373461b0a037716722a461cb12416aa5d1bc,evaluate.py,,,#,44

Before Change


    CMC_tmp = evaluate(query_feature[i],query_label[i],query_cam[i],gallery_feature,gallery_label,gallery_cam)
    if CMC_tmp[0]==-1:
        continue
    CMC = torch.cat((CMC,CMC_tmp.view(1,len(CMC_tmp))), 0)
    print(i, CMC_tmp[0])

CMC = CMC.float()
CMC = CMC.mean(dim=0) //average CMC

After Change


gallery_cam = result["gallery_cam"][0]
gallery_label = result["gallery_label"][0]

CMC = torch.IntTensor(len(gallery_label)).zero_()
ap = 0.0
//print(query_label)
for i in range(len(query_label)):
    ap_tmp, CMC_tmp = evaluate(query_feature[i],query_label[i],query_cam[i],gallery_feature,gallery_label,gallery_cam)
    if CMC_tmp[0]==-1:
        continue
    CMC = CMC + CMC_tmp
    ap += ap_tmp
    print(i, CMC_tmp[0])

CMC = CMC.float()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: layumi/Person_reID_baseline_pytorch
Commit Name: e9d5373461b0a037716722a461cb12416aa5d1bc
Time: 2018-01-01
Author: zzheng@joo-ml1-dev.j.cinglevue.com
File Name: evaluate.py
Class Name:
Method Name:


Project Name: HyperGAN/HyperGAN
Commit Name: 0389fda574d618ec22b488208a1d597a18d7ce72
Time: 2020-12-24
Author: martyn@255bits.com
File Name: examples/next-frame.py
Class Name: NextFrameGAN
Method Name: forward_pass


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 012daf57ac31d82366323e7ec27ab7c2cb678a09
Time: 2018-05-27
Author: eriklindernoren@gmail.com
File Name: utils.py
Class Name:
Method Name: non_max_suppression