mirror of
https://github.com/deepinsight/insightface.git
synced 2026-05-18 22:57:49 +00:00
tiny fix
This commit is contained in:
@@ -13,7 +13,7 @@ class AccMetric(mx.metric.EvalMetric):
|
||||
def update(self, labels, preds):
|
||||
self.count+=1
|
||||
label = labels[0]
|
||||
pred_label = preds[0]
|
||||
pred_label = preds[1]
|
||||
#print('ACC', label.shape, pred_label.shape)
|
||||
if pred_label.shape != label.shape:
|
||||
pred_label = mx.ndarray.argmax(pred_label, axis=self.axis)
|
||||
|
||||
Reference in New Issue
Block a user