-
Notifications
You must be signed in to change notification settings - Fork 434
Lip Vertex Error (LVE) Metrics for 3D Talking Heads Evaluation #3003
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rittik9 sound good to me, feel free to open a PR ! |
when ,very need, |
Hi @hugleecool I'm occupied with some other stuff at this moment, So I'm planning this for mid April. But if you are willing to open a pr, please go ahead, I'll be happy to help :) |
sorry, I'm very poor in code, a product manager, learning ongoing
Rittik Panda ***@***.***> 于2025年4月5日周六 11:14写道:
… Hi @hugleecool <https://github.com/hugleecool> I'm occupied with some
other stuff at this moment, So I'm planning this for mid April. But if you
are willing to open a pr, please go ahead, I'll be happy to help :)
—
Reply to this email directly, view it on GitHub
<#3003 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABG3TE5NNIDULLPBSNGICIL2X5C73AVCNFSM6AAAAABYZWC6VKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBQGE3DOMZRHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
[image: rittik9]*rittik9* left a comment (Lightning-AI/torchmetrics#3003)
<#3003 (comment)>
Hi @hugleecool <https://github.com/hugleecool> I'm occupied with some
other stuff at this moment, So I'm planning this for mid April. But if you
are willing to open a pr, please go ahead, I'll be happy to help :)
—
Reply to this email directly, view it on GitHub
<#3003 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABG3TE5NNIDULLPBSNGICIL2X5C73AVCNFSM6AAAAABYZWC6VKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOOBQGE3DOMZRHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@rittik9 I am wrong for thinking the metric is simply calculated as: def lip_vertex_error(vertices_pred: torch.Tensor, vertices_gt: torch.Tensor, mouth_map: list[int]) -> torch.Tensor:
"""
Computes Lip Vertex Error (LVE) as used in CodeTalker.
Args:
vertices_pred (Tensor): (T, V, 3) predicted vertices
vertices_gt (Tensor): (T, V, 3) ground truth vertices
mouth_map (list[int]): list of mouth vertex indices
Returns:
Tensor: scalar LVE value
"""
# Difference only for mouth vertices
diff = vertices_gt[:, mouth_map, :] - vertices_pred[:, mouth_map, :] # (T, M, 3)
sq_dist = torch.sum(diff ** 2, dim=-1) # (T, M)
max_per_frame = torch.max(sq_dist, dim=1).values # (T,)
return torch.mean(max_per_frame) if so I can probably do it fairly easy within the next couple of days |
@SkafteNicki Sure pls.... |
🚀 Feature
I would like to propose incorporating an essential evaluation metric for 3D talking heads into the TorchMetrics library: Lip Vertex Error (LVE) . This metric is widely used in speech-driven facial animation research to assess lip synchronization accuracy respectively.
Motivation
Current TorchMetrics offerings lack dedicated metrics for evaluating 3D talking heads, particularly in assessing the quality of lip synchronization . I think this metric also fits in multimodal folder of this library.
Pitch
The Lip Vertex Error (LVE) metric evaluates the quality of lip synchronization in 3D facial animations by measuring the maximum Euclidean distance (L2 error) between corresponding lip vertices of the generated and ground truth meshes for each frame. This metric assesses how accurately the animated lip movements align with the intended speech input.
References
Paper: MeshTalk
Additional context
I would like to open a PR for the same.
The text was updated successfully, but these errors were encountered: