JDAI-CV / fast-reid

SOTA Re-identification Methods and Toolbox
Apache License 2.0
3.42k stars 837 forks source link

请问par 的evaluation代码对多类适用吗? #640

Closed zhangshitoday closed 2 years ago

zhangshitoday commented 2 years ago

`fast-reid/projects/FastAttr/fastattr/attr_evaluation.py def get_attr_metrics(gt_labels, pred_logits, thres):

    eps = 1e-20

    pred_labels = copy.deepcopy(pred_logits)
    pred_labels[pred_logits < thres] = 0
    pred_labels[pred_logits >= thres] = 1

` 请问这里只考虑2类吗,像age属性有[0,1,2,3] 四类,是适用的吗

L1aoXingyu commented 2 years ago

应该是不行的,可能需要自己改写一下

github-actions[bot] commented 2 years ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 years ago

This issue was closed because it has been inactive for 14 days since being marked as stale.