MCPcopy Create free account
hub / github.com/TeleHuman/TextOp / expand_dof_23_to_29

Function expand_dof_23_to_29

TextOpDeploy/src/textop_ctrl/scripts/rmdar.py:101–112  ·  view source on GitHub ↗

v: shape [T, 23] return: shape [T, 29]

(v: np.ndarray)

Source from the content-addressed store, hash-verified

99
100
101def expand_dof_23_to_29(v: np.ndarray) -> np.ndarray:
102 """
103 v: shape [T, 23]
104 return: shape [T, 29]
105 """
106 T = v.shape[0]
107 out = np.zeros((T, 29), dtype=v.dtype)
108
109 out[:, :19] = v[:, :19]
110 out[:, 22:26] = v[:, 19:23]
111
112 return out
113
114
115def jetson_compatible_torch_compile(vae, denoiser, dar_cfg):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected