Is there lip error script?
yoolish opened this issue · 1 comments
yoolish commented
Is there lip error script?
alexanderrichard commented
There is no explicit script provided but this is how we computed the lip error:
geom = geom[:, lip_mask, :]
pred = pred[:, lip_mask, :]
geom = geom - th.mean(geom, dim=-2, keepdim=True)
pred = pred - th.mean(pred, dim=-2, keepdim=True)
error = th.max(th.sum((pred - geom) ** 2, dim=-1) ** 0.5, dim=1)[0]
geom
and pred
are B x V x 3 tensors containing the ground truth and predicted vertices, and lip_mask
contains the lip vertices, which were manually selected.