MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / compute_loss_l1

Function compute_loss_l1

losses/losses.py:15–18  ·  view source on GitHub ↗
(gt_hair_strands, pred_hair_strands)

Source from the content-addressed store, hash-verified

13 return loss_l2
14
15def compute_loss_l1(gt_hair_strands, pred_hair_strands):
16 loss_l1 = torch.nn.functional.l1_loss(pred_hair_strands, gt_hair_strands).mean()
17
18 return loss_l1
19
20def compute_loss_dir_dot(gt_hair_strands, pred_hair_strands):
21 nr_verts_per_strand=256

Callers 1

forwardMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected