MCPcopy Create free account
hub / github.com/bbaaii/DreamDiffusion / normalize

Function normalize

code/dataset.py:32–35  ·  view source on GitHub ↗
(x, mean=None, std=None)

Source from the content-addressed store, hash-verified

30 return np.pad(x, ((0,0),(0,0), (0, length - x.shape[-1])), 'wrap')
31
32def normalize(x, mean=None, std=None):
33 mean = np.mean(x) if mean is None else mean
34 std = np.std(x) if std is None else std
35 return (x - mean) / (std * 1.0)
36
37def process_voxel_ts(v, p, t=8):
38 '''

Callers 1

process_voxel_tsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected