mirror of https://github.com/JDAI-CV/fast-reid.git
fix evaluator
parent
3880b23ab4
commit
1db050b51f
fastreid/evaluation
|
@ -18,7 +18,7 @@ class PairScoreEvaluator(PairEvaluator):
|
|||
|
||||
def process(self, inputs, outputs):
|
||||
prediction = {
|
||||
'distances': outputs['cls_outputs'].to(self._cpu_device).numpy(),
|
||||
'labels': inputs["targets"].to(self._cpu_device).numpy()
|
||||
'distances': outputs['cls_outputs'][:, 1].to(self._cpu_device).numpy(),
|
||||
'labels': inputs["targets"].to(self._cpu_device).numpy()
|
||||
}
|
||||
self._predictions.append(prediction)
|
||||
|
|
Loading…
Reference in New Issue