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

Function unpatchify

code/sc_mbm/utils.py:115–124  ·  view source on GitHub ↗

x: (N, L, patch_size) imgs: (N, 1, num_voxels)

(x, patch_size)

Source from the content-addressed store, hash-verified

113 return x
114
115def unpatchify(x, patch_size):
116 """
117 x: (N, L, patch_size)
118 imgs: (N, 1, num_voxels)
119 """
120 p = patch_size
121 h = x.shape[1]
122
123 imgs = x.reshape(shape=(x.shape[0], 1, h * p))
124 return imgs

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected