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

Function identity

code/dataset.py:18–19  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

16
17from transformers import AutoProcessor
18def identity(x):
19 return x
20def pad_to_patch_size(x, patch_size):
21 assert x.ndim == 2
22 return np.pad(x, ((0,0),(0, patch_size-x.shape[1]%patch_size)), 'wrap')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected