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