MCPcopy Create free account
hub / github.com/Zhiyuan-R/Tiger-Diffusion / NN_loss

Function NN_loss

metrics/ChamferDistancePytorch/chamfer_python.py:12–15  ·  view source on GitHub ↗
(x, y, dim=0)

Source from the content-addressed store, hash-verified

10
11
12def NN_loss(x, y, dim=0):
13 dist = pairwise_dist(x, y)
14 values, indices = dist.min(dim=dim)
15 return values.mean()
16
17
18def distChamfer(a, b):

Callers

nothing calls this directly

Calls 1

pairwise_distFunction · 0.85

Tested by

no test coverage detected