MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / normalize

Method normalize

mGPT/data/Kit.py:61–65  ·  view source on GitHub ↗
(self, features)

Source from the content-addressed store, hash-verified

59 return features
60
61 def normalize(self, features):
62 mean = torch.tensor(self.hparams.mean).to(features)
63 std = torch.tensor(self.hparams.std).to(features)
64 features = (features - mean) / std
65 return features
66
67 def renorm4t2m(self, features):
68 # renorm to t2m norms for using t2m evaluators

Callers 6

load_example_inputFunction · 0.45
rotation_6d_to_matrixFunction · 0.45
rotation_6d_to_matrixFunction · 0.45
rot6d_to_rotmat_spinFunction · 0.45
rot6d_to_rotmatFunction · 0.45
save_npyMethod · 0.45

Calls 1

toMethod · 0.45

Tested by

no test coverage detected