We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e491efb commit c2a0a3eCopy full SHA for c2a0a3e
pytorch3d/loss/mesh_edge_loss.py
@@ -7,8 +7,8 @@
7
def mesh_edge_loss(meshes, target_length: float = 0.0):
8
"""
9
Computes mesh edge length regularization loss averaged across all meshes
10
- in a batch. Each edge contributes equally to the final loss, regardless of
11
- numbers of edges per mesh in the batch by weighting each mesh with the
+ in a batch. Each mesh contributes equally to the final loss, regardless of
+ the number of edges per mesh in the batch by weighting each mesh with the
12
inverse number of edges. For example, if mesh 3 (out of N) has only E=4
13
edges, then the loss for each edge in mesh 3 should be multiplied by 1/E to
14
contribute to the final loss.
0 commit comments