(predicted, target)
| 60 | return int(raw_value / (2**32 - 1) * (max_value - min_value)) + min_value |
| 61 | |
| 62 | def 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 | |
| 67 | def test_calculation(predicted, target, action, error_sum, data_type, subject): |