MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / unpatchify

Method unpatchify

diffsynth/models/cog_dit.py:230–232  ·  view source on GitHub ↗
(self, hidden_states, height, width)

Source from the content-addressed store, hash-verified

228
229
230 def unpatchify(self, hidden_states, height, width):
231 hidden_states = rearrange(hidden_states, "B (T H W) (C P Q) -> B C T (H P) (W Q)", P=2, Q=2, H=height//2, W=width//2)
232 return hidden_states
233
234
235 def build_mask(self, T, H, W, dtype, device, is_bound):

Callers 9

forwardMethod · 0.95
usp_dit_forwardFunction · 0.45
model_fn_wan_videoFunction · 0.45
lets_dance_hunyuan_videoFunction · 0.45
model_fn_wan_videoFunction · 0.45
lets_dance_fluxFunction · 0.45
model_fn_wan_videoFunction · 0.45
model_fn_wan_videoFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected