MCPcopy Create free account
hub / github.com/AdaptiveMotorControlLab/FMPose3D / mpjpe_cal

Function mpjpe_cal

fmpose3d/common/utils.py:62–64  ·  view source on GitHub ↗
(predicted, target)

Source from the content-addressed store, hash-verified

60 return int(raw_value / (2**32 - 1) * (max_value - min_value)) + min_value
61
62def mpjpe_cal(predicted, target):
63 assert predicted.shape == target.shape
64 return torch.mean(torch.norm(predicted - target, dim=len(target.shape) - 1))
65
66
67def test_calculation(predicted, target, action, error_sum, data_type, subject):

Callers 1

stepFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected