Skip to content

Commit c2a0a3e

Browse files
gkioxarifacebook-github-bot
authored andcommitted
fix docstring of mesh edge loss
Summary: Fix docstring for mesh edge loss Reviewed By: jcjohnson Differential Revision: D20040560 fbshipit-source-id: 01a3ee9473c7d11583684bf4cd200caa1d3f0260
1 parent e491efb commit c2a0a3e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch3d/loss/mesh_edge_loss.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
def mesh_edge_loss(meshes, target_length: float = 0.0):
88
"""
99
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
10+
in a batch. Each mesh contributes equally to the final loss, regardless of
11+
the number of edges per mesh in the batch by weighting each mesh with the
1212
inverse number of edges. For example, if mesh 3 (out of N) has only E=4
1313
edges, then the loss for each edge in mesh 3 should be multiplied by 1/E to
1414
contribute to the final loss.

0 commit comments

Comments
 (0)