changed metrics indicator
This commit is contained in:
parent
8591c2edad
commit
21e3f92461
@ -68,9 +68,10 @@ def sequence_loss(disp_preds, disp_init_pred, disp_gt, valid, loss_gamma=0.9, ma
|
||||
|
||||
metrics = {
|
||||
'epe': epe.mean().item(),
|
||||
'1px': (epe < 1).float().mean().item(),
|
||||
'3px': (epe < 3).float().mean().item(),
|
||||
'5px': (epe < 5).float().mean().item(),
|
||||
'0.5px': (epe < 0.5).float().mean().item(),
|
||||
'1.0px': (epe < 1.0).float().mean().item(),
|
||||
'2.0px': (epe < 2.0).float().mean().item(),
|
||||
'4.0px': (epe < 4.0).float().mean().item(),
|
||||
}
|
||||
|
||||
return disp_loss, metrics
|
||||
|
Loading…
Reference in New Issue
Block a user